MCPcopy Create free account
hub / github.com/prometheus/client_python / test_simple_info

Method test_simple_info

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

Source from the content-addressed store, hash-verified

398 self.assertEqual([cfm], list(families))
399
400 def test_simple_info(self):
401 families = text_string_to_metric_families("""# TYPE a info
402# HELP a help
403a_info{foo="bar"} 1
404# EOF
405""")
406 self.assertEqual([InfoMetricFamily("a", "help", {'foo': 'bar'})], list(families))
407
408 def test_info_timestamps(self):
409 families = text_string_to_metric_families("""# TYPE a info

Callers

nothing calls this directly

Calls 2

InfoMetricFamilyClass · 0.90

Tested by

no test coverage detected