diff --git a/tests/unit/metrics/test_exporter.py b/tests/unit/metrics/test_exporter.py index 32463949a..4ff498888 100644 --- a/tests/unit/metrics/test_exporter.py +++ b/tests/unit/metrics/test_exporter.py @@ -107,7 +107,7 @@ def test_is_running_returns_true_when_server_thread_is_alive(self): @mock.patch( - "logprep.metrics.exporter.PrometheusExporter._prepare_multiprocessing", + "logprep.metrics.exporter.PrometheusExporter.prepare_multiprocessing", new=lambda *args, **kwargs: None, ) class TestHealthEndpoint: