Skip to content

Commit

Permalink
fix tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 2, 2023
1 parent 80b9b41 commit f7625a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions logprep/abc/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__(self, input_connector: "Input", message, raw_input):
class CriticalInputParsingError(CriticalInputError):
"""The input couldn't be parsed correctly."""

def __init__(self, input_connector: "Input", message, raw_input):
super().__init__(input_connector, message, raw_input)


class FatalInputError(InputError):
"""Must not be catched."""
Expand Down Expand Up @@ -219,7 +216,7 @@ def _add_log_arrival_timedelta_information(self):
)
return log_arrival_time_target_field_present & log_arrival_timedelta_present

def _get_raw_event(self, timeout: float) -> bytearray:
def _get_raw_event(self, timeout: float) -> bytearray: # pylint: disable=unused-argument
"""Implements the details how to get the raw event
Parameters
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/connector/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=missing-docstring
# pylint: disable=protected-access
# pylint: disable=line-too-long
import base64
import json
import zlib
Expand Down Expand Up @@ -466,7 +467,7 @@ def test_pipeline_preprocessing_does_not_add_timestamp_delta_if_configured_but_l
test_event = {"any": "content"}
connector._get_event = mock.MagicMock(return_value=(test_event, None))
result, _ = connector.get_next(0.01)
assert test_event == {"any": "content"}
assert result == {"any": "content"}

def test_get_next_returns_event_with_active_time_measurement(self):
TimeMeasurement.TIME_MEASUREMENT_ENABLED = True
Expand Down

0 comments on commit f7625a6

Please sign in to comment.