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

Function test_wsgi_upload

tests/test_wsgi.py:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def test_wsgi_upload():
103 transport = httpx.WSGITransport(app=echo_body)
104 client = httpx.Client(transport=transport)
105 response = client.post("http://www.example.org/", content=b"example")
106 assert response.status_code == 200
107 assert response.text == "example"
108
109
110def test_wsgi_upload_with_response_stream():

Callers

nothing calls this directly

Calls 1

postMethod · 0.95

Tested by

no test coverage detected