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

Function test_iter_text

tests/models/test_responses.py:600–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598
599
600def test_iter_text():
601 response = httpx.Response(
602 200,
603 content=b"Hello, world!",
604 )
605
606 content = ""
607 for part in response.iter_text():
608 content += part
609 assert content == "Hello, world!"
610
611
612def test_iter_text_with_chunk_size():

Callers

nothing calls this directly

Calls 1

iter_textMethod · 0.95

Tested by

no test coverage detected