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

Method setUp

tests/test_platform_collector.py:7–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestPlatformCollector(unittest.TestCase):
7 def setUp(self):
8 self.registry = CollectorRegistry()
9 self.platform = _MockPlatform()
10
11 def test_python_info(self):
12 PlatformCollector(registry=self.registry, platform=self.platform)

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.90
_MockPlatformClass · 0.85

Tested by

no test coverage detected