46 PyroRQLSource_get_connection = PyroRQLSource.get_connection |
46 PyroRQLSource_get_connection = PyroRQLSource.get_connection |
47 Connection_close = Connection.close |
47 Connection_close = Connection.close |
48 |
48 |
49 def setup_module(*args): |
49 def setup_module(*args): |
50 global repo2, cnx2, repo3, cnx3 |
50 global repo2, cnx2, repo3, cnx3 |
51 repo2, cnx2 = init_test_database(config=ExternalSource1Configuration('data')) |
51 cfg1 = ExternalSource1Configuration('data', apphome=TwoSourcesTC.datadir) |
52 repo3, cnx3 = init_test_database(config=ExternalSource2Configuration('data')) |
52 repo2, cnx2 = init_test_database(config=cfg1) |
|
53 cfg2 = ExternalSource2Configuration('data', apphome=TwoSourcesTC.datadir) |
|
54 repo3, cnx3 = init_test_database(config=cfg2) |
53 cnx3.request().create_entity('CWSource', name=u'extern', type=u'pyrorql', |
55 cnx3.request().create_entity('CWSource', name=u'extern', type=u'pyrorql', |
54 config=EXTERN_SOURCE_CFG) |
56 config=EXTERN_SOURCE_CFG) |
55 cnx3.commit() |
57 cnx3.commit() |
56 |
58 |
57 TestServerConfiguration.no_sqlite_wrap = True |
59 TestServerConfiguration.no_sqlite_wrap = True |