MCPcopy
hub / github.com/encode/uvicorn / test_websocket_auto

Function test_websocket_auto

tests/test_auto_detection.py:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51@pytest.mark.anyio
52async def test_websocket_auto():
53 config = Config(app=app)
54 server_state = ServerState()
55
56 assert AutoWebSocketsProtocol is not None
57 protocol = AutoWebSocketsProtocol(config=config, server_state=server_state, app_state={})
58 assert type(protocol).__name__ == expected_websockets

Callers

nothing calls this directly

Calls 2

ConfigClass · 0.90
ServerStateClass · 0.90

Tested by

no test coverage detected