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

Method test_nolabels

tests/test_graphite_bridge.py:40–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self.gb = GraphiteBridge(self.address, self.registry, tags=True, _timer=fake_timer)
39
40 def test_nolabels(self):
41 gauge = Gauge('g', 'help', registry=self.registry)
42 gauge.inc()
43
44 self.gb.push()
45 self.t.join()
46
47 self.assertEqual(b'g 1.0 1434898897\n', self.data)
48
49 def test_labels(self):
50 labels = Gauge('labels', 'help', ['a', 'b'], registry=self.registry)

Callers

nothing calls this directly

Calls 4

incMethod · 0.95
GaugeClass · 0.90
joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected