# HG changeset patch # User Sylvain Thénault # Date 1308230218 -7200 # Node ID 6f6b334a14b7c9245f382a5fc7530594ad357525 # Parent a5a5eea29c1b9f5c0223f5d7fbc154b9431e8671 [test] update to new db handler api diff -r a5a5eea29c1b -r 6f6b334a14b7 server/test/unittest_rqlannotation.py --- a/server/test/unittest_rqlannotation.py Thu Jun 16 15:16:22 2011 +0200 +++ b/server/test/unittest_rqlannotation.py Thu Jun 16 15:16:58 2011 +0200 @@ -18,13 +18,16 @@ # with CubicWeb. If not, see . """unit tests for modules cubicweb.server.rqlannotation""" -from cubicweb.devtools import init_test_database +from cubicweb.devtools import TestServerConfiguration, get_test_db_handler from cubicweb.devtools.repotest import BaseQuerierTC def setUpModule(*args): + handler = get_test_db_handler(TestServerConfiguration( + 'data2', apphome=SQLGenAnnotatorTC.datadir)) + handler.build_db_cache() global repo, cnx - repo, cnx = init_test_database(apphome=SQLGenAnnotatorTC.datadir) + repo, cnx = handler.get_repo_and_cnx() def tearDownModule(*args): global repo, cnx