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

Method assert_is_prom

tests/test_exposition.py:550–551  ·  view source on GitHub ↗
(self, exp)

Source from the content-addressed store, hash-verified

548 self.assertRegex(exp, r'.*\n{"dotted.counter_total"} 1.0\n.*')
549
550 def assert_is_prom(self, exp):
551 self.assertNotRegex(exp, r'# EOF')
552
553 def assert_is_openmetrics(self, exp):
554 self.assertRegex(exp, r'# EOF')

Callers 7

test_default_encoderMethod · 0.95
test_plain_encoderMethod · 0.95
test_prom_latestMethod · 0.95
test_prom_plain_1_0_0Method · 0.95
test_prom_utf8Method · 0.95
test_prom_no_versionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected