This commit is contained in:
Romain Dorgueil
2017-04-30 11:19:29 +02:00
parent 4ee3fd3be9
commit 95eeaf61b9

View File

@ -17,7 +17,7 @@ def test_write_json_to_file(tmpdir):
context.step() context.step()
context.stop() context.stop()
assert fs.open(filename).read() == '[\n{"foo": "bar"}\n]' assert fs.open(filename).read() == '[{"foo": "bar"}]'
with pytest.raises(AttributeError): with pytest.raises(AttributeError):
getattr(context, 'file') getattr(context, 'file')