Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_websocket_handle_disconnection (0.11 seconds)

  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")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.3K bytes
    - Click Count (0)
Back to Top