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

Function test_aiter_lines

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

Source from the content-addressed store, hash-verified

670
671@pytest.mark.anyio
672async def test_aiter_lines():
673 response = httpx.Response(
674 200,
675 content=b"Hello,\nworld!",
676 )
677
678 content = []
679 async for line in response.aiter_lines():
680 content.append(line)
681 assert content == ["Hello,", "world!"]
682
683
684def test_sync_streaming_response():

Callers

nothing calls this directly

Calls 1

aiter_linesMethod · 0.95

Tested by

no test coverage detected