MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_continuation

Function test_continuation

tests/test_websocket_parser.py:418–428  ·  view source on GitHub ↗
(
    out: WebSocketDataQueue, parser: PatchableWebSocketReader
)

Source from the content-addressed store, hash-verified

416
417
418def test_continuation(
419 out: WebSocketDataQueue, parser: PatchableWebSocketReader
420) -> None:
421 data1 = build_frame(b"line1", WSMsgType.TEXT, is_fin=False)
422 parser._feed_data(data1)
423
424 data2 = build_frame(b"line2", WSMsgType.CONTINUATION)
425 parser._feed_data(data2)
426
427 res = out._buffer[0]
428 assert res == (WSMessage(WSMsgType.TEXT, "line1line2", ""), 10)
429
430
431def test_continuation_with_ping(

Callers

nothing calls this directly

Calls 3

WSMessageClass · 0.90
build_frameFunction · 0.85
_feed_dataMethod · 0.45

Tested by

no test coverage detected