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

Function test_request_state

tests/test_applications.py:241–244  ·  view source on GitHub ↗
(client: TestClient)

Source from the content-addressed store, hash-verified

239
240
241def test_request_state(client: TestClient) -> None:
242 response = client.get("/state")
243 assert response.status_code == 200
244 assert response.json() == {"count": 1}
245
246
247def test_websocket_raise_websocket_exception(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected