server/test/unittest_ssplanner.py
branchstable
changeset 6781 5062d86d6ffe
parent 6632 78878f5a8166
child 6957 ffda12be2e9f
equal deleted inserted replaced
6780:92e4c07f86c0 6781:5062d86d6ffe
    19 from cubicweb.devtools import init_test_database
    19 from cubicweb.devtools import init_test_database
    20 from cubicweb.devtools.repotest import BasePlannerTC, test_plan
    20 from cubicweb.devtools.repotest import BasePlannerTC, test_plan
    21 from cubicweb.server.ssplanner import SSPlanner
    21 from cubicweb.server.ssplanner import SSPlanner
    22 
    22 
    23 # keep cnx so it's not garbage collected and the associated session closed
    23 # keep cnx so it's not garbage collected and the associated session closed
    24 def setup_module(*args):
    24 def setUpModule(*args):
    25     global repo, cnx
    25     global repo, cnx
    26     repo, cnx = init_test_database(apphome=SSPlannerTC.datadir)
    26     repo, cnx = init_test_database(apphome=SSPlannerTC.datadir)
    27 
    27 
    28 def teardown_module(*args):
    28 def tearDownModule(*args):
    29     global repo, cnx
    29     global repo, cnx
    30     del repo, cnx
    30     del repo, cnx
    31 
    31 
    32 class SSPlannerTC(BasePlannerTC):
    32 class SSPlannerTC(BasePlannerTC):
    33     _test = test_plan
    33     _test = test_plan