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

Function test_stream_response

tests/client/test_client.py:92–97  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

90
91
92def test_stream_response(server):
93 with httpx.Client() as client:
94 with client.stream("GET", server.url) as response:
95 content = response.read()
96 assert response.status_code == 200
97 assert content == b"Hello, world!"
98
99
100def test_stream_iterator(server):

Callers

nothing calls this directly

Calls 2

streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected