quart.testing.connections module#
- exception quart.testing.connections.HTTPDisconnectError#
Bases:
Exception
- class quart.testing.connections.TestHTTPConnection(app: Quart, scope: HTTPScope, _preserve_context: bool = False)#
Bases:
object
- async disconnect() None #
- async receive() bytes #
- async send(data: bytes) None #
- async send_complete() None #
- class quart.testing.connections.TestWebsocketConnection(app: Quart, scope: WebsocketScope)#
Bases:
object
- async close(code: int) None #
- async disconnect() None #
- async receive() AnyStr #
- async receive_json() Any #
- async send(data: AnyStr) None #
- async send_json(data: Any) None #
- exception quart.testing.connections.WebsocketDisconnectError#
Bases:
Exception