From 79a3e9665de93ed7297b6c4fc2b3dfa7ee1f4694 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Sat, 7 Oct 2023 14:01:21 +0000 Subject: [PATCH] fix test --- tests/unit/processor/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/processor/base.py b/tests/unit/processor/base.py index dc491aede..e4a8e0228 100644 --- a/tests/unit/processor/base.py +++ b/tests/unit/processor/base.py @@ -246,12 +246,11 @@ def test_process_measurements_appended_under_processor_config_name(self): assert isinstance(processing_times[config_name], float) @mock.patch("logging.Logger.debug") - @mock.patch("logging.Logger.isEnabledFor", return_value=True) - def test_process_writes_debug_messages(self, mock_is_enabled, mock_debug): + def test_process_writes_debug_messages(self, mock_debug): event = {} self.object.process(event) - mock_is_enabled.assert_called() mock_debug.assert_called() + mock_debug.assert_called_with(f"{self.object.describe()} processing event {event}") def test_config_attribute_is_config_object(self): assert isinstance(self.object._config, self.object.Config)