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

Function test_sync_streaming_response

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

Source from the content-addressed store, hash-verified

682
683
684def test_sync_streaming_response():
685 response = httpx.Response(
686 200,
687 content=streaming_body(),
688 )
689
690 assert response.status_code == 200
691 assert not response.is_closed
692
693 content = response.read()
694
695 assert content == b"Hello, world!"
696 assert response.content == b"Hello, world!"
697 assert response.is_closed
698
699
700@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
streaming_bodyFunction · 0.70

Tested by

no test coverage detected