MCPcopy
hub / github.com/encode/httpx / test_streaming_text_decoder

Function test_streaming_text_decoder

tests/test_decoders.py:296–300  ·  view source on GitHub ↗
(
    data: typing.Iterable[bytes], expected: list[str]
)

Source from the content-addressed store, hash-verified

294 [((b"Hello,", b" world!"), ["Hello,", " world!"])],
295)
296def test_streaming_text_decoder(
297 data: typing.Iterable[bytes], expected: list[str]
298) -> None:
299 response = httpx.Response(200, content=iter(data))
300 assert list(response.iter_text()) == expected
301
302
303def test_line_decoder_nl():

Callers

nothing calls this directly

Calls 1

iter_textMethod · 0.95

Tested by

no test coverage detected