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

Method assert_not_metrics

tests/test_asgi.py:92–95  ·  view source on GitHub ↗
(self, output, metric_name, help_text, increments)

Source from the content-addressed store, hash-verified

90 self.assertIn(metric_name + "_total " + str(increments) + ".0\n", output)
91
92 def assert_not_metrics(self, output, metric_name, help_text, increments):
93 self.assertNotIn("# HELP " + metric_name + "_total " + help_text + "\n", output)
94 self.assertNotIn("# TYPE " + metric_name + "_total counter\n", output)
95 self.assertNotIn(metric_name + "_total " + str(increments) + ".0\n", output)
96
97 def assert_outputs(self, outputs, metric_name, help_text, increments, compressed):
98 self.assertEqual(len(outputs), 2)

Callers 2

test_qs_parsingMethod · 0.95
test_qs_parsing_multiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected