From 9ba318edf0999afc37f49b1950cceec404f6a037 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Sat, 7 Oct 2023 13:50:26 +0000 Subject: [PATCH] fix test --- tests/unit/processor/test_process.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/processor/test_process.py b/tests/unit/processor/test_process.py index 59dd41546..6739473a3 100644 --- a/tests/unit/processor/test_process.py +++ b/tests/unit/processor/test_process.py @@ -7,7 +7,6 @@ import pytest -from logprep.abc.processor import Processor from logprep.factory import Factory from logprep.framework.pipeline import Pipeline from logprep.processor.dissector.rule import DissectorRule @@ -122,9 +121,7 @@ def test_strategy_applies_rules_in_deterministic_order(self, execution_number): with mock.patch("logprep.abc.processor.Processor._apply_rules_wrapper") as mock_callback: expected_call_order = [call(event, rule_one), call(event, rule_two)] processor.process(event=event) - assert mock_callback.assert_has_calls( - expected_call_order, any_order=False - ), f"Wrong call order in test {execution_number}" + mock_callback.assert_has_calls(expected_call_order, any_order=False) def test_strategy_processes_generic_rules_after_processor_error_in_specific_rules(self, capsys): config = {