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

Method test_info

tests/test_core.py:540–544  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

538 self.assertEqual(repr(self.labels), "prometheus_client.metrics.Info(il)")
539
540 def test_info(self):
541 self.assertEqual(1, self.registry.get_sample_value('i_info', {}))
542 self.info.info({'a': 'b', 'c': 'd'})
543 self.assertEqual(None, self.registry.get_sample_value('i_info', {}))
544 self.assertEqual(1, self.registry.get_sample_value('i_info', {'a': 'b', 'c': 'd'}))
545
546 def test_labels(self):
547 self.assertRaises(ValueError, self.labels.labels('a').info, {'l': ''})

Callers

nothing calls this directly

Calls 2

get_sample_valueMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected