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

Function test_iter_raw_increments_updates_counter

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

Source from the content-addressed store, hash-verified

459
460
461def test_iter_raw_increments_updates_counter():
462 response = httpx.Response(200, content=streaming_body())
463
464 num_downloaded = response.num_bytes_downloaded
465 for part in response.iter_raw():
466 assert len(part) == (response.num_bytes_downloaded - num_downloaded)
467 num_downloaded = response.num_bytes_downloaded
468
469
470@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

iter_rawMethod · 0.95
streaming_bodyFunction · 0.70

Tested by

no test coverage detected