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

Method test_overlapping_labels

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

Source from the content-addressed store, hash-verified

578 self.assertRaises(ValueError, self.labels.state, 'a')
579
580 def test_overlapping_labels(self):
581 with pytest.raises(ValueError):
582 Enum('e', 'help', registry=None, labelnames=['e'])
583
584
585class TestMetricWrapper(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

EnumClass · 0.85

Tested by

no test coverage detected