(client: TestClient)
| 305 | |
| 306 | |
| 307 | def test_router_add_websocket_route(client: TestClient) -> None: |
| 308 | with client.websocket_connect("/ws") as session: |
| 309 | text = session.receive_text() |
| 310 | assert text == "Hello, world!" |
| 311 | |
| 312 | with client.websocket_connect("/ws/test") as session: |
| 313 | text = session.receive_text() |
| 314 | assert text == "Hello, test!" |
| 315 | |
| 316 | |
| 317 | def test_router_middleware(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected