From ed0d6558eda3e7af9710fa85ec74725ba4b02d31 Mon Sep 17 00:00:00 2001 From: Pete Dietl Date: Fri, 1 Nov 2024 16:49:18 -0700 Subject: [PATCH] Fix autoflush unit test --- test/unit/test_autoflush.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/test_autoflush.py b/test/unit/test_autoflush.py index 2579055a7..ae58c97b4 100644 --- a/test/unit/test_autoflush.py +++ b/test/unit/test_autoflush.py @@ -29,11 +29,11 @@ class TestAutoflush: def test_flushed(self, mock_obj): with Autoflush(mock_obj): pass - assert mock_obj.flush.called + mock_obj.flush.assert_called() def test_transfer_err_not_flushed(self, mock_obj): with pytest.raises(TransferError): with Autoflush(mock_obj): raise TransferError("bad joojoo") - assert mock_obj.flush.not_called + mock_obj.flush.assert_not_called()