Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_websocket_handle_disconnection (0.63 sec)

  1. 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)
Back to top