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 43d629a commit 9ba318e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/processor/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 9ba318e

Please sign in to comment.