- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_websocket_handle_disconnection (0.09 sec)
-
tests/test_tutorial/test_websockets/test_tutorial003.py
client = TestClient(mod.app) return client def test_get(client: TestClient, html: str): response = client.get("/") assert response.text == html def test_websocket_handle_disconnection(client: TestClient): with ( client.websocket_connect("/ws/1234") as connection, client.websocket_connect("/ws/5678") as connection_two, ): connection.send_text("Hello from 1234")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.3K bytes - Viewed (0)