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

Function test_aiter_raw

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

Source from the content-addressed store, hash-verified

469
470@pytest.mark.anyio
471async def test_aiter_raw():
472 response = httpx.Response(200, content=async_streaming_body())
473
474 raw = b""
475 async for part in response.aiter_raw():
476 raw += part
477 assert raw == b"Hello, world!"
478
479
480@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

aiter_rawMethod · 0.95
async_streaming_bodyFunction · 0.85

Tested by

no test coverage detected