MCPcopy Index your code
hub / github.com/prometheus/client_python / setUp

Method setUp

tests/test_django.py:36–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34class MetricsResourceTest(TestCase):
35 @skipUnless(HAVE_DJANGO, "Don't have django installed.")
36 def setUp(self):
37 self.registry = CollectorRegistry()
38 self.factory = RequestFactory()
39
40 def test_reports_metrics(self):
41 c = Counter('cc', 'A counter', registry=self.registry)

Callers

nothing calls this directly

Calls 1

CollectorRegistryClass · 0.90

Tested by

no test coverage detected