()
| 479 | |
| 480 | @pytest.mark.anyio |
| 481 | async def test_aiter_raw_with_chunksize(): |
| 482 | response = httpx.Response(200, content=async_streaming_body()) |
| 483 | |
| 484 | parts = [part async for part in response.aiter_raw(chunk_size=5)] |
| 485 | assert parts == [b"Hello", b", wor", b"ld!"] |
| 486 | |
| 487 | response = httpx.Response(200, content=async_streaming_body()) |
| 488 | |
| 489 | parts = [part async for part in response.aiter_raw(chunk_size=13)] |
| 490 | assert parts == [b"Hello, world!"] |
| 491 | |
| 492 | response = httpx.Response(200, content=async_streaming_body()) |
| 493 | |
| 494 | parts = [part async for part in response.aiter_raw(chunk_size=20)] |
| 495 | assert parts == [b"Hello, world!"] |
| 496 | |
| 497 | |
| 498 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected