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

Function test_iter_raw_on_iterable

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

Source from the content-addressed store, hash-verified

427
428
429def test_iter_raw_on_iterable():
430 response = httpx.Response(
431 200,
432 content=StreamingBody(),
433 )
434
435 raw = b""
436 for part in response.iter_raw():
437 raw += part
438 assert raw == b"Hello, world!"
439
440
441def test_iter_raw_on_async():

Callers

nothing calls this directly

Calls 2

iter_rawMethod · 0.95
StreamingBodyClass · 0.85

Tested by

no test coverage detected