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

Function test_aiter_bytes

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

Source from the content-addressed store, hash-verified

571
572@pytest.mark.anyio
573async def test_aiter_bytes():
574 response = httpx.Response(
575 200,
576 content=b"Hello, world!",
577 )
578
579 content = b""
580 async for part in response.aiter_bytes():
581 content += part
582 assert content == b"Hello, world!"
583
584
585@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

aiter_bytesMethod · 0.95

Tested by

no test coverage detected