From 3de366dcf94d6ab0998156ec61664054f1477116 Mon Sep 17 00:00:00 2001 From: Jesse Zoldak Date: Fri, 23 Sep 2016 17:09:13 -0400 Subject: [PATCH] Fix pylint errors --- common/lib/capa/capa/tests/helpers.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/common/lib/capa/capa/tests/helpers.py b/common/lib/capa/capa/tests/helpers.py index 7bd12bb65f..7ae7a3020d 100644 --- a/common/lib/capa/capa/tests/helpers.py +++ b/common/lib/capa/capa/tests/helpers.py @@ -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
@@ -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