Skip to content

Commit fd200f2

Browse files
committed
Fix test failure
1 parent 456cbf8 commit fd200f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_autoflush.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class TestAutoflush:
2929
def test_flushed(self, mock_obj):
3030
with Autoflush(mock_obj):
3131
pass
32-
assert mock_obj.flush.called
32+
mock_obj.flush.assert_called
3333

3434
def test_transfer_err_not_flushed(self, mock_obj):
3535
with pytest.raises(TransferError):
3636
with Autoflush(mock_obj):
3737
raise TransferError("bad joojoo")
38-
assert mock_obj.flush.not_called
38+
mock_obj.flush.assert_not_called
3939

0 commit comments

Comments
 (0)