(
test_client_factory: TestClientFactory,
)
| 604 | |
| 605 | |
| 606 | def test_standalone_ws_route_matches( |
| 607 | test_client_factory: TestClientFactory, |
| 608 | ) -> None: |
| 609 | app = WebSocketRoute("/", ws_helloworld) |
| 610 | client = test_client_factory(app) |
| 611 | with client.websocket_connect("/") as websocket: |
| 612 | text = websocket.receive_text() |
| 613 | assert text == "Hello, world!" |
| 614 | |
| 615 | |
| 616 | def test_standalone_ws_route_does_not_match( |
nothing calls this directly
no test coverage detected