diff --git a/tests/unit/utils/test_javascript.py b/tests/unit/utils/test_javascript.py index c2af199a1..896b8f025 100644 --- a/tests/unit/utils/test_javascript.py +++ b/tests/unit/utils/test_javascript.py @@ -139,6 +139,6 @@ def test_convert_js_arg(arg, expected): def test_assemble(monkeypatch): monkeypatch.setattr(javascript.utils, 'read_file', - lambda name: ''.format(name)) + ''.format) expected = '\nfunc(23);' assert javascript.assemble('foo', 'func', 23) == expected