Skip to content

Commit

Permalink
remove redundant init call
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Nov 12, 2024
1 parent 52a8a33 commit 8fde055
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/metrics/test_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 8fde055

Please sign in to comment.