Skip to content

Commit

Permalink
fix exception tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 16, 2023
1 parent 4e8d1e0 commit b2c399a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions logprep/processor/base/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class Config:
eq=False,
converter=uuid.UUID,
init=False,
repr=False,
)
"""A uuid for the rule. Is generated by logprep."""
description: str = field(validator=validators.instance_of(str), default="", eq=False)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/exceptions/processor/test_processing_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_error_message(self):
raise self.exception(*self.exception_args)

def test_metrics_counts(self):
assert self.processor.metrics.number_of_warnings == 0
self.processor.metrics.number_of_warnings = 0
with pytest.raises(self.exception, match=re.escape(self.error_message)):
raise self.exception(*self.exception_args)
assert self.processor.metrics.number_of_warnings == 1
Expand Down

0 comments on commit b2c399a

Please sign in to comment.