MCPcopy Create free account
hub / github.com/pallets/quart / test_websocket_accept_connection_warns

Function test_websocket_accept_connection_warns

tests/test_asgi.py:293–302  ·  view source on GitHub ↗
(
    websocket_scope: WebsocketScope,
)

Source from the content-addressed store, hash-verified

291
292
293async def test_websocket_accept_connection_warns(
294 websocket_scope: WebsocketScope,
295) -> None:
296 connection = ASGIWebsocketConnection(Quart(__name__), websocket_scope)
297
298 async def mock_send(message: ASGISendEvent) -> None:
299 pass
300
301 with pytest.warns(UserWarning):
302 await connection.accept_connection(mock_send, Headers({"a": "b"}), None)
303
304
305def test__convert_version() -> None:

Callers

nothing calls this directly

Calls 3

accept_connectionMethod · 0.95
QuartClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…