MCPcopy
hub / github.com/encode/starlette / test_request_client

Function test_request_client

tests/test_requests.py:76–79  ·  view source on GitHub ↗
(scope: Scope, expected_client: Address | None)

Source from the content-addressed store, hash-verified

74 ],
75)
76def test_request_client(scope: Scope, expected_client: Address | None) -> None:
77 scope.update({"type": "http"}) # required by Request's constructor
78 client = Request(scope).client
79 assert client == expected_client
80
81
82def test_request_body(test_client_factory: TestClientFactory) -> None:

Callers

nothing calls this directly

Calls 2

RequestClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected