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

Method test_empty_metadata

tests/openmetrics/test_parser.py:453–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

451 self.assertEqual([metric_family], list(families))
452
453 def test_empty_metadata(self):
454 families = text_string_to_metric_families("""# HELP a
455# UNIT a
456# EOF
457""")
458 metric_family = Metric("a", "", "untyped")
459 self.assertEqual([metric_family], list(families))
460
461 def test_untyped(self):
462 # https://github.com/prometheus/client_python/issues/79

Callers

nothing calls this directly

Calls 2

MetricClass · 0.90

Tested by

no test coverage detected