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

Method setUp

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

Source from the content-addressed store, hash-verified

136
137class TestDisableCreated(unittest.TestCase):
138 def setUp(self):
139 self.registry = CollectorRegistry()
140 os.environ['PROMETHEUS_DISABLE_CREATED_SERIES'] = 'True'
141 metrics._use_created = _get_use_created()
142
143 def tearDown(self):
144 os.environ.pop('PROMETHEUS_DISABLE_CREATED_SERIES', None)

Callers

nothing calls this directly

Calls 2

_get_use_createdFunction · 0.90
CollectorRegistryClass · 0.85

Tested by

no test coverage detected