--- a/server/test/unittest_rqlannotation.py Mon Oct 25 16:28:05 2010 +0200
+++ b/server/test/unittest_rqlannotation.py Mon Oct 25 17:15:46 2010 +0200
@@ -22,7 +22,10 @@
from cubicweb.devtools import init_test_database
from cubicweb.devtools.repotest import BaseQuerierTC
-repo, cnx = init_test_database()
+
+def setup_module(*args):
+ global repo, cnx
+ repo, cnx = init_test_database(apphome=SQLGenAnnotatorTC.datadir)
def teardown_module(*args):
global repo, cnx
@@ -30,7 +33,10 @@
class SQLGenAnnotatorTC(BaseQuerierTC):
- repo = repo
+
+ def setUp(self):
+ self.__class__.repo = repo
+ super(SQLGenAnnotatorTC, self).setUp()
def get_max_eid(self):
# no need for cleanup here