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

Function test_websocket_route

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

Source from the content-addressed store, hash-verified

210
211
212def test_websocket_route(client: TestClient) -> None:
213 with client.websocket_connect("/ws") as session:
214 text = session.receive_text()
215 assert text == "Hello, world!"
216
217
218def test_400(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

websocket_connectMethod · 0.80
receive_textMethod · 0.45

Tested by

no test coverage detected