Skip to content

Commit

Permalink
include missing close call in test_NamedTupleWriter() assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
xflr6 committed Jul 22, 2023
1 parent ffad534 commit d212635
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ def test_NamedTupleWriter(mocker, rows, lines):
writer = NamedTupleWriter(f)
assert writer.dialect.delimiter == ','
writer.writerows(rows)
assert f.method_calls == [mocker.call.write(l) for l in lines]
expected = [mocker.call.write(l) for l in lines] + [mocker.call.close()]
assert f.method_calls == expected

0 comments on commit d212635

Please sign in to comment.