(
data: typing.Iterable[bytes], expected: list[str]
)
| 294 | [((b"Hello,", b" world!"), ["Hello,", " world!"])], |
| 295 | ) |
| 296 | def test_streaming_text_decoder( |
| 297 | data: typing.Iterable[bytes], expected: list[str] |
| 298 | ) -> None: |
| 299 | response = httpx.Response(200, content=iter(data)) |
| 300 | assert list(response.iter_text()) == expected |
| 301 | |
| 302 | |
| 303 | def test_line_decoder_nl(): |