We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456cbf8 commit 9c48236Copy full SHA for 9c48236
test/unit/test_autoflush.py
@@ -29,11 +29,11 @@ class TestAutoflush:
29
def test_flushed(self, mock_obj):
30
with Autoflush(mock_obj):
31
pass
32
- assert mock_obj.flush.called
+ mock_obj.flush.assert_called()
33
34
def test_transfer_err_not_flushed(self, mock_obj):
35
with pytest.raises(TransferError):
36
37
raise TransferError("bad joojoo")
38
- assert mock_obj.flush.not_called
+ mock_obj.flush.assert_not_called()
39
0 commit comments