server/test/unittest_querier.py
changeset 6631 26c303c3f1aa
parent 6427 c8a5ac2d1eaa
child 6781 5062d86d6ffe
--- a/server/test/unittest_querier.py	Mon Oct 25 16:28:05 2010 +0200
+++ b/server/test/unittest_querier.py	Mon Oct 25 17:15:46 2010 +0200
@@ -62,7 +62,9 @@
                           ('C0 text,C1 integer', {'A': 'table0.C0', 'B': 'table0.C1'}))
 
 
-repo, cnx = init_test_database()
+def setup_module(*args):
+    global repo, cnx
+    repo, cnx = init_test_database(apphome=UtilsTC.datadir)
 
 def teardown_module(*args):
     global repo, cnx
@@ -72,7 +74,9 @@
 
 
 class UtilsTC(BaseQuerierTC):
-    repo = repo
+    def setUp(self):
+        self.__class__.repo = repo
+        super(UtilsTC, self).setUp()
 
     def get_max_eid(self):
         # no need for cleanup here
@@ -225,7 +229,9 @@
 
 
 class QuerierTC(BaseQuerierTC):
-    repo = repo
+    def setUp(self):
+        self.__class__.repo = repo
+        super(QuerierTC, self).setUp()
 
     def test_encoding_pb(self):
         self.assertRaises(RQLSyntaxError, self.execute,