Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrai2 committed Nov 14, 2023
1 parent 4a827af commit b3772a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/metrics/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,12 @@ def decorated_function_append(self, document):

@mock.patch("logprep.metrics.metrics.gethostname", return_value="testhost")
@mock.patch.dict("os.environ", {"LOGPREP_APPEND_MEASUREMENT_TO_EVENT": "1"}, clear=True)
def test_measure_time_measures_and_appends_pipeline_processing_times_and_hostname(self, mock_gethostname):
def test_measure_time_measures_and_appends_pipeline_processing_times_and_hostname(
self, mock_gethostname
):
# set logprep_config to mimic an attribute of a pipeline, is used to identify pipelines
self._logprep_config = "some value"

@Metric.measure_time(metric_name="test_metric_histogram")
def decorated_function_append(self, document):
pass
Expand Down

0 comments on commit b3772a8

Please sign in to comment.