server/test/unittest_multisources.py
changeset 6631 26c303c3f1aa
parent 6427 c8a5ac2d1eaa
child 6724 24bf6f181d0e
child 6758 28b11ecf319b
--- a/server/test/unittest_multisources.py	Mon Oct 25 16:28:05 2010 +0200
+++ b/server/test/unittest_multisources.py	Mon Oct 25 17:15:46 2010 +0200
@@ -48,8 +48,10 @@
 
 def setup_module(*args):
     global repo2, cnx2, repo3, cnx3
-    repo2, cnx2 = init_test_database(config=ExternalSource1Configuration('data'))
-    repo3, cnx3 = init_test_database(config=ExternalSource2Configuration('data'))
+    cfg1 = ExternalSource1Configuration('data', apphome=TwoSourcesTC.datadir)
+    repo2, cnx2 = init_test_database(config=cfg1)
+    cfg2 = ExternalSource2Configuration('data', apphome=TwoSourcesTC.datadir)
+    repo3, cnx3 = init_test_database(config=cfg2)
     cnx3.request().create_entity('CWSource', name=u'extern', type=u'pyrorql',
                                  config=EXTERN_SOURCE_CFG)
     cnx3.commit()