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

Method setUp

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

Source from the content-addressed store, hash-verified

529
530class TestInfo(unittest.TestCase):
531 def setUp(self):
532 self.registry = CollectorRegistry()
533 self.info = Info('i', 'help', registry=self.registry)
534 self.labels = Info('il', 'help', ['l'], registry=self.registry)
535
536 def test_repr(self):
537 self.assertEqual(repr(self.info), "prometheus_client.metrics.Info(i)")

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.85
InfoClass · 0.85

Tested by

no test coverage detected