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

Method setUp

tests/test_multiprocess.py:51–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49
50class TestMultiProcess(unittest.TestCase):
51 def setUp(self):
52 self.tempdir = tempfile.mkdtemp()
53 os.environ['PROMETHEUS_MULTIPROC_DIR'] = self.tempdir
54 values.ValueClass = MultiProcessValue(lambda: 123)
55 self.registry = CollectorRegistry(support_collectors_without_names=True)
56 self.collector = MultiProcessCollector(self.registry)
57
58 @property
59 def _value_class(self):

Callers

nothing calls this directly

Calls 3

MultiProcessValueFunction · 0.90
CollectorRegistryClass · 0.85

Tested by

no test coverage detected