(server)
| 80 | |
| 81 | @pytest.mark.anyio |
| 82 | async 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 |