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

Method setUp

tests/test_asgi.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26
27class ASGITest(TestCase):
28 def setUp(self):
29 self.registry = CollectorRegistry()
30 self.captured_status = None
31 self.captured_headers = None
32 # Setup ASGI scope
33 self.scope = {}
34 setup_testing_defaults(self.scope)
35 self.communicator = None
36
37 def tearDown(self):
38 if self.communicator:

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.90
setup_testing_defaultsFunction · 0.85

Tested by

no test coverage detected