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

Function test_access_content_stream_response

tests/client/test_async_client.py:82–89  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

80
81@pytest.mark.anyio
82async def test_access_content_stream_response(server):
83 async with httpx.AsyncClient() as client:
84 async with client.stream("GET", server.url) as response:
85 pass
86
87 assert response.status_code == 200
88 with pytest.raises(httpx.ResponseNotRead):
89 response.content # noqa: B018
90
91
92@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

streamMethod · 0.45

Tested by

no test coverage detected