(server)
| 98 | |
| 99 | |
| 100 | def test_stream_iterator(server): |
| 101 | body = b"" |
| 102 | |
| 103 | with httpx.Client() as client: |
| 104 | with client.stream("GET", server.url) as response: |
| 105 | for chunk in response.iter_bytes(): |
| 106 | body += chunk |
| 107 | |
| 108 | assert response.status_code == 200 |
| 109 | assert body == b"Hello, world!" |
| 110 | |
| 111 | |
| 112 | def test_raw_iterator(server): |
nothing calls this directly
no test coverage detected