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

Function test_aiter_text

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

Source from the content-addressed store, hash-verified

633
634@pytest.mark.anyio
635async def test_aiter_text():
636 response = httpx.Response(
637 200,
638 content=b"Hello, world!",
639 )
640
641 content = ""
642 async for part in response.aiter_text():
643 content += part
644 assert content == "Hello, world!"
645
646
647@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

aiter_textMethod · 0.95

Tested by

no test coverage detected