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

Method test_prom_no_version

tests/test_exposition.py:627–633  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

625 self.assert_is_openmetrics(exp)
626
627 def test_prom_no_version(self):
628 generator, content_type = choose_encoder('text/plain; charset=utf-8; escaping=allow-utf-8')
629 assert content_type == 'text/plain; version=0.0.4; charset=utf-8'
630 exp = generator(self.registry).decode('utf-8')
631 # No version -- allow-utf-8 rejected.
632 self.assert_is_escaped(exp)
633 self.assert_is_prom(exp)
634
635
636@pytest.mark.parametrize("scenario", [

Callers

nothing calls this directly

Calls 3

assert_is_escapedMethod · 0.95
assert_is_promMethod · 0.95
choose_encoderFunction · 0.90

Tested by

no test coverage detected