Remove unneeded lambda

This commit is contained in:
Florian Bruhin 2016-08-04 18:15:29 +02:00
parent 7b211e0b65
commit 74b9b0ba90

View File

@ -139,6 +139,6 @@ def test_convert_js_arg(arg, expected):
def test_assemble(monkeypatch):
monkeypatch.setattr(javascript.utils, 'read_file',
lambda name: '<code from {}>'.format(name))
'<code from {}>'.format)
expected = '<code from javascript/foo.js>\nfunc(23);'
assert javascript.assemble('foo', 'func', 23) == expected