From d0462e9776b586dced753ab5a30b388d5e13df5e Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Wed, 16 Oct 2024 14:49:58 -0400 Subject: [PATCH] Update mock assertion --- tests/test_error_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_error_handler.py b/tests/test_error_handler.py index 444ea39c..70b97796 100644 --- a/tests/test_error_handler.py +++ b/tests/test_error_handler.py @@ -24,4 +24,4 @@ def test_catch(): with patch('ipwb.error_handler.logger.critical', mock_logger): caught_error('boo') - assert mock_logger.called_once_with('boo') + assert mock_logger.assert_called_once_with('boo')