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

Function test_iter_bytes_with_empty_response

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

Source from the content-addressed store, hash-verified

551
552
553def test_iter_bytes_with_empty_response():
554 response = httpx.Response(200, content=b"")
555 parts = list(response.iter_bytes())
556 assert parts == []
557
558
559def test_iter_bytes_doesnt_return_empty_chunks():

Callers

nothing calls this directly

Calls 1

iter_bytesMethod · 0.95

Tested by

no test coverage detected