cubicweb/server/test/unittest_querier.py
changeset 11768 b8b71dd09a2c
parent 11767 432f87a63057
child 11769 f5b815f67ce2
--- a/cubicweb/server/test/unittest_querier.py	Fri Sep 30 18:25:08 2016 +0200
+++ b/cubicweb/server/test/unittest_querier.py	Thu Oct 06 21:14:49 2016 +0200
@@ -29,11 +29,10 @@
 from rql import BadRQLQuery
 from rql.utils import register_function, FunctionDescr
 
-from cubicweb import QueryError, Unauthorized, Binary
+from cubicweb import QueryError, Unauthorized, Binary, devtools
 from cubicweb.server.sqlutils import SQL_CONNECT_HOOKS, SQL_PREFIX
 from cubicweb.server.utils import crypt_password
 from cubicweb.server.querier import manual_build_descr, _make_description
-from cubicweb.devtools import get_test_db_handler, TestServerConfiguration
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.devtools.repotest import tuplify, BaseQuerierTC
 
@@ -73,8 +72,8 @@
 
 def setUpClass(cls, *args):
     global repo, cnx
-    config = TestServerConfiguration('data', __file__)
-    handler = get_test_db_handler(config)
+    config = devtools.TestServerConfiguration('data', __file__)
+    handler = devtools.get_test_db_handler(config)
     handler.build_db_cache()
     repo, cnx = handler.get_repo_and_cnx()
     cls.repo = repo