Mercurial > p > roundup > code
diff test/test_xmlrpc.py @ 6361:58817c3bf471
Fix roundup/test
Move the test-detectors in tx_Source_detector.py to roundup/test for two
reasons: It's used in the memorydb convenience functions and it may be
useful in other tests. Make the prefix a paramter of the convenience
functions to be usable in other tests.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Tue, 30 Mar 2021 14:16:28 +0200 |
| parents | 7f3dfdd6a620 |
| children | 978285986b2c |
line wrap: on
line diff
--- a/test/test_xmlrpc.py Tue Mar 30 09:10:46 2021 +0200 +++ b/test/test_xmlrpc.py Tue Mar 30 14:16:28 2021 +0200 @@ -15,6 +15,7 @@ from roundup.backends import list_backends from roundup.hyperdb import String from roundup.cgi import TranslationService +from roundup.test.tx_Source_detector import init as tx_Source_init from . import db_test_base from .test_mysql import skip_mysql @@ -51,13 +52,7 @@ self.db.post_init() - thisdir = os.path.dirname(__file__) - vars = {} - exec(compile(open(os.path.join(thisdir, - "tx_Source_detector.py")).read(), - os.path.join(thisdir, "tx_Source_detector.py"), 'exec'), - vars) - vars['init'](self.db) + tx_Source_init(self.db) self.server = RoundupInstance(self.db, self.instance.actions, None)
