From 74b9b0ba909c2653d588852471d86df9bd3ff2f8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 4 Aug 2016 18:15:29 +0200 Subject: [PATCH] Remove unneeded lambda --- tests/unit/utils/test_javascript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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