Commit 2d30cc37 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[test] silent warning

branch : stable
parent b2c45b7396fb
......@@ -23,7 +23,7 @@ from logilab.common.decorators import clear_cache
from yams.buildobjs import RelationDefinition
from rql import BadRQLQuery
from cubicweb.devtools import init_test_database
from cubicweb.devtools import get_test_db_handler, TestServerConfiguration
from cubicweb.devtools.repotest import BasePlannerTC, test_plan
class _SetGenerator(object):
......@@ -82,7 +82,9 @@ X_ALL_SOLS = sorted([{'X': 'Affaire'}, {'X': 'BaseTransition'}, {'X': 'Basket'},
# keep cnx so it's not garbage collected and the associated session is closed
def setUpModule(*args):
global repo, cnx
repo, cnx = init_test_database(apphome=BaseMSPlannerTC.datadir)
handler = get_test_db_handler(TestServerConfiguration(apphome=BaseMSPlannerTC.datadir))
repo, cnx = handler.get_repo_and_cnx()
def tearDownModule(*args):
global repo, cnx
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment