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

Method setUp

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

Source from the content-addressed store, hash-verified

553
554class TestEnum(unittest.TestCase):
555 def setUp(self):
556 self.registry = CollectorRegistry()
557 self.enum = Enum('e', 'help', states=['a', 'b', 'c'], registry=self.registry)
558 self.labels = Enum('el', 'help', ['l'], states=['a', 'b', 'c'], registry=self.registry)
559
560 def test_enum(self):
561 self.assertEqual(1, self.registry.get_sample_value('e', {'e': 'a'}))

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.85
EnumClass · 0.85

Tested by

no test coverage detected