Fix pylint errors

This commit is contained in:
Jesse Zoldak
2016-09-23 17:09:13 -04:00
parent 24ae284f34
commit 3de366dcf9

View File

@@ -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