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

Function make_test_scope

src/quart/testing/utils.py:154–166  ·  view source on GitHub ↗
(
    type_: Literal["http"],
    path: str,
    method: str,
    headers: Headers,
    query_string: bytes,
    scheme: str,
    root_path: str,
    http_version: str,
    scope_base: dict | None,
    *,
    _preserve_context: bool = False,
)

Source from the content-addressed store, hash-verified

152
153@overload
154def make_test_scope(
155 type_: Literal["http"],
156 path: str,
157 method: str,
158 headers: Headers,
159 query_string: bytes,
160 scheme: str,
161 root_path: str,
162 http_version: str,
163 scope_base: dict | None,
164 *,
165 _preserve_context: bool = False,
166) -> HTTPScope: ...
167
168
169@overload

Callers 5

test_request_contextMethod · 0.85
requestMethod · 0.85
websocketMethod · 0.85
_make_requestMethod · 0.85

Calls 1

encode_headersFunction · 0.85

Tested by 2

test_request_contextMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…