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

Method setUp

tests/test_wsgi.py:10–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8
9class WSGITest(TestCase):
10 def setUp(self):
11 self.registry = CollectorRegistry()
12 self.captured_status = None
13 self.captured_headers = None
14 # Setup WSGI environment
15 self.environ = {}
16 setup_testing_defaults(self.environ)
17
18 def capture(self, status, header):
19 self.captured_status = status

Callers

nothing calls this directly

Calls 2

CollectorRegistryClass · 0.90
setup_testing_defaultsFunction · 0.85

Tested by

no test coverage detected