()
| 670 | |
| 671 | @pytest.mark.anyio |
| 672 | async def test_aiter_lines(): |
| 673 | response = httpx.Response( |
| 674 | 200, |
| 675 | content=b"Hello,\nworld!", |
| 676 | ) |
| 677 | |
| 678 | content = [] |
| 679 | async for line in response.aiter_lines(): |
| 680 | content.append(line) |
| 681 | assert content == ["Hello,", "world!"] |
| 682 | |
| 683 | |
| 684 | def test_sync_streaming_response(): |
nothing calls this directly
no test coverage detected