From 8fde055fc4993227d48f193f07e07eebd5bde8e3 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Tue, 12 Nov 2024 13:57:38 +0100 Subject: [PATCH] remove redundant init call --- tests/unit/metrics/test_exporter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/metrics/test_exporter.py b/tests/unit/metrics/test_exporter.py index 1aa4541ec..cb0a5f455 100644 --- a/tests/unit/metrics/test_exporter.py +++ b/tests/unit/metrics/test_exporter.py @@ -8,7 +8,7 @@ import pytest from asgiref.testing import ApplicationCommunicator -from prometheus_client import REGISTRY, CollectorRegistry +from prometheus_client import CollectorRegistry from logprep.metrics.exporter import PrometheusExporter, make_patched_asgi_app from logprep.util import http @@ -21,7 +21,6 @@ ) class TestPrometheusExporter: def setup_method(self): - REGISTRY.__init__() self.metrics_config = MetricsConfig(enabled=True, port=8000) def test_correct_setup(self):