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

Function test_wsgi_upload_with_response_stream

tests/test_wsgi.py:110–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110def test_wsgi_upload_with_response_stream():
111 transport = httpx.WSGITransport(app=echo_body_with_response_stream)
112 client = httpx.Client(transport=transport)
113 response = client.post("http://www.example.org/", content=b"example")
114 assert response.status_code == 200
115 assert response.text == "example"
116
117
118def test_wsgi_exc():

Callers

nothing calls this directly

Calls 1

postMethod · 0.95

Tested by

no test coverage detected