Minor test change.
This commit is contained in:
@ -55,8 +55,10 @@ def test_write_stream_json(tmpdir):
|
|||||||
|
|
||||||
with BufferingNodeExecutionContext(LdjsonWriter(filename),
|
with BufferingNodeExecutionContext(LdjsonWriter(filename),
|
||||||
services=services) as context:
|
services=services) as context:
|
||||||
context.write_sync({'foo': 'bar'})
|
context.write_sync(
|
||||||
context.write_sync({'baz': 'boz'})
|
{'foo': 'bar'},
|
||||||
|
{'baz': 'boz'},
|
||||||
|
)
|
||||||
|
|
||||||
expected = '''{"foo": "bar"}\n{"baz": "boz"}\n'''
|
expected = '''{"foo": "bar"}\n{"baz": "boz"}\n'''
|
||||||
with fs.open(filename) as fin:
|
with fs.open(filename) as fin:
|
||||||
|
|||||||
Reference in New Issue
Block a user