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

Function setup_testing_defaults

tests/test_asgi.py:11–24  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

9
10
11def setup_testing_defaults(scope):
12 scope.update(
13 {
14 "client": ("127.0.0.1", 32767),
15 "headers": [],
16 "http_version": "1.0",
17 "method": "GET",
18 "path": "/",
19 "query_string": b"",
20 "scheme": "http",
21 "server": ("127.0.0.1", 80),
22 "type": "http",
23 }
24 )
25
26
27class ASGITest(TestCase):

Callers 2

setUpMethod · 0.85
setUpMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected