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

Function test_stream

tests/test_api.py:75–82  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

73
74
75def test_stream(server):
76 with httpx.stream("GET", server.url) as response:
77 response.read()
78
79 assert response.status_code == 200
80 assert response.reason_phrase == "OK"
81 assert response.text == "Hello, world!"
82 assert response.http_version == "HTTP/1.1"
83
84
85def test_get_invalid_url():

Callers

nothing calls this directly

Calls 2

streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected