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

Method setUp

tests/test_core.py:288–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

286
287class TestSummary(unittest.TestCase):
288 def setUp(self):
289 self.registry = CollectorRegistry()
290 self.summary = Summary('s', 'help', registry=self.registry)
291 self.summary_with_labels = Summary('s_with_labels', 'help', labelnames=("label1",), registry=self.registry)
292
293 def test_repr(self):
294 self.assertEqual(repr(self.summary), "prometheus_client.metrics.Summary(s)")

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.85
SummaryClass · 0.85

Tested by

no test coverage detected