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

Function test_aiter_raw_increments_updates_counter

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

Source from the content-addressed store, hash-verified

519
520@pytest.mark.anyio
521async def test_aiter_raw_increments_updates_counter():
522 response = httpx.Response(200, content=async_streaming_body())
523
524 num_downloaded = response.num_bytes_downloaded
525 async for part in response.aiter_raw():
526 assert len(part) == (response.num_bytes_downloaded - num_downloaded)
527 num_downloaded = response.num_bytes_downloaded
528
529
530def test_iter_bytes():

Callers

nothing calls this directly

Calls 2

aiter_rawMethod · 0.95
async_streaming_bodyFunction · 0.85

Tested by

no test coverage detected