Commit f6202e56 by kimth

Tests provide xqueue params, rather than ModuleSystem.__init__

parent cb2fbfa5
......@@ -32,7 +32,7 @@ i4xs = ModuleSystem(
user=Mock(),
filestore=fs.osfs.OSFS(os.path.dirname(os.path.realpath(__file__))),
debug=True,
xqueue=None,
xqueue={'interface':None, 'callback_url':'/', 'default_queuename':'null'},
is_staff=False
)
......
......@@ -678,10 +678,7 @@ class ModuleSystem(object):
TODO (vshnayder): this will need to change once we have real user roles.
'''
self.ajax_url = ajax_url
if xqueue is None:
self.xqueue = {'interface':None, 'callback_url':'/', 'default_queuename':'null'}
else:
self.xqueue = xqueue
self.xqueue = xqueue
self.track_function = track_function
self.filestore = filestore
self.get_module = get_module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment