(http_client: HttpClient, server_url: URL)
| 167 | |
| 168 | |
| 169 | async def test_stream(http_client: HttpClient, server_url: URL) -> None: |
| 170 | content_body: bytes = b'' |
| 171 | |
| 172 | async with http_client.stream(str(server_url)) as response: |
| 173 | assert response.status_code == 200 |
| 174 | async for chunk in response.read_stream(): |
| 175 | content_body += chunk |
| 176 | |
| 177 | assert content_body == HELLO_WORLD |
| 178 | |
| 179 | |
| 180 | async def test_stream_error_double_read_stream(http_client: HttpClient, server_url: URL) -> None: |
nothing calls this directly
no test coverage detected