diff test/test_xmlrpc.py @ 4795:dad18ee491a9

Fix minor problems in tests Make gpg test fault tolerant against existing directory. Fix path problems for new auditor.
author Ralf Schlatterbeck <rsc@runtux.com>
date Sat, 06 Jul 2013 12:10:50 +0200
parents d9e5539303bd
children 3b9252085ba9
line wrap: on
line diff
--- a/test/test_xmlrpc.py	Fri Jun 28 11:21:37 2013 +0530
+++ b/test/test_xmlrpc.py	Sat Jul 06 12:10:50 2013 +0200
@@ -46,10 +46,9 @@
 
         self.db.post_init()
 
-        vars = dict(globals())
-        vars['db'] = self.db
+        thisdir = os.path.dirname(__file__)
         vars = {}
-        execfile("test/tx_Source_detector.py", vars)
+        execfile(os.path.join(thisdir, "tx_Source_detector.py"), vars)
         vars['init'](self.db)
 
         self.server = RoundupInstance(self.db, self.instance.actions, None)

Roundup Issue Tracker: http://roundup-tracker.org/