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

Method assert_not_metrics

tests/test_aiohttp.py:63–72  ·  view source on GitHub ↗
(
        self,
        output: str,
        metric_name: str,
        help_text: str,
        increments: int,
    )

Source from the content-addressed store, hash-verified

61 self.assertIn(metric_name + "_total " + str(increments) + ".0\n", output)
62
63 def assert_not_metrics(
64 self,
65 output: str,
66 metric_name: str,
67 help_text: str,
68 increments: int,
69 ) -> None:
70 self.assertNotIn("# HELP " + metric_name + "_total " + help_text + "\n", output)
71 self.assertNotIn("# TYPE " + metric_name + "_total counter\n", output)
72 self.assertNotIn(metric_name + "_total " + str(increments) + ".0\n", output)
73
74 async def assert_outputs(
75 self,

Callers 1

test_qs_parsingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected