From f7625a6243454c93d4ef358e42429f7930eb29e0 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Mon, 2 Oct 2023 20:00:52 +0000 Subject: [PATCH] fix tests and linting --- logprep/abc/input.py | 5 +---- tests/unit/connector/base.py | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/logprep/abc/input.py b/logprep/abc/input.py index 8b9ffec62..9112d44d5 100644 --- a/logprep/abc/input.py +++ b/logprep/abc/input.py @@ -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.""" @@ -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 diff --git a/tests/unit/connector/base.py b/tests/unit/connector/base.py index 0895edfed..ed58e1837 100644 --- a/tests/unit/connector/base.py +++ b/tests/unit/connector/base.py @@ -1,5 +1,6 @@ # pylint: disable=missing-docstring # pylint: disable=protected-access +# pylint: disable=line-too-long import base64 import json import zlib @@ -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