We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 456cbf8 commit 9b937c1Copy full SHA for 9b937c1
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
+ assert 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
+ assert mock_obj.flush.assert_not_called
39
0 commit comments