Commit 3de366dc by Jesse Zoldak

Fix pylint errors

parent 24ae284f
......@@ -33,7 +33,7 @@ def capa_render_template(template, context):
return get_template(template).render_unicode(**context)
def tst_render_template(template, context):
def tst_render_template(template, context): # pylint: disable=unused-argument
"""
A test version of render to template. Renders to the repr of the context, completely ignoring
the template name. To make the output valid xml, quotes the content, and wraps it in a <div>
......@@ -42,9 +42,10 @@ def tst_render_template(template, context):
def calledback_url(dispatch='score_update'):
"""A callback url method to use in tests."""
return dispatch
xqueue_interface = MagicMock()
xqueue_interface = MagicMock() # pylint: disable=invalid-name
xqueue_interface.send_to_queue.return_value = (0, 'Success!')
......@@ -68,7 +69,12 @@ def test_capa_system(render_template=None):
seed=0,
STATIC_URL='/dummy-static/',
STATUS_CLASS=Status,
xqueue={'interface': xqueue_interface, 'construct_callback': calledback_url, 'default_queuename': 'testqueue', 'waittime': 10},
xqueue={
'interface': xqueue_interface,
'construct_callback': calledback_url,
'default_queuename': 'testqueue',
'waittime': 10
},
)
return the_system
......
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