MCPcopy
hub / github.com/encode/httpx / test_iter_lines

Function test_iter_lines

tests/models/test_responses.py:662–668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

660
661
662def test_iter_lines():
663 response = httpx.Response(
664 200,
665 content=b"Hello,\nworld!",
666 )
667 content = list(response.iter_lines())
668 assert content == ["Hello,", "world!"]
669
670
671@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

iter_linesMethod · 0.95

Tested by

no test coverage detected