MCPcopy Create free account
hub / github.com/pallets/quart / test_make_test_scope_with_scope_base

Function test_make_test_scope_with_scope_base

tests/test_testing.py:153–179  ·  view source on GitHub ↗
(path: str, expected_raw_path: bytes)

Source from the content-addressed store, hash-verified

151 ],
152)
153def test_make_test_scope_with_scope_base(path: str, expected_raw_path: bytes) -> None:
154 scope = make_test_scope(
155 "http",
156 path,
157 "GET",
158 Headers(),
159 b"",
160 "http",
161 "",
162 "1.1",
163 {"client": ("127.0.0.2", "1234")},
164 )
165 assert scope == {
166 "type": "http",
167 "http_version": "1.1",
168 "asgi": {"spec_version": "2.1"},
169 "method": "GET",
170 "scheme": "http",
171 "path": path,
172 "raw_path": expected_raw_path,
173 "query_string": b"",
174 "root_path": "",
175 "headers": [],
176 "extensions": {},
177 "_quart._preserve_context": False,
178 "client": ("127.0.0.2", "1234"),
179 }
180
181
182@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

make_test_scopeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…