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

Function test_websocket_state

tests/test_applications.py:257–260  ·  tests/test_applications.py::test_websocket_state
(client: TestClient)

Source from the content-addressed store, hash-verified

255
256
257def test_websocket_state(client: TestClient) -> None:
258 with client.websocket_connect(class="st">"/ws-state") as session:
259 response = session.receive_json()
260 assert response == {class="st">"count": 1}
261
262
263def test_websocket_raise_http_exception(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

websocket_connectMethod · 0.80
receive_jsonMethod · 0.45

Tested by

no test coverage detected