From 33abe92f0801ba31beb8a5b0ff1e999b3922ae53 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Wed, 16 Oct 2024 16:29:23 -0400 Subject: [PATCH] Need with 'with' variant of the assert method if passing the param, for #814 --- 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 c2ff7ba4..74609011 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') - mock_logger.assert_called_once('boo') + mock_logger.assert_called_once_with('boo')