Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 7, 2023
1 parent 9ba318e commit 79a3e96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/processor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79a3e96

Please sign in to comment.