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

Function test_wsgi

tests/test_wsgi.py:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93
94def test_wsgi():
95 transport = httpx.WSGITransport(app=application_factory([b"Hello, World!"]))
96 client = httpx.Client(transport=transport)
97 response = client.get("http://www.example.org/")
98 assert response.status_code == 200
99 assert response.text == "Hello, World!"
100
101
102def test_wsgi_upload():

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
application_factoryFunction · 0.85

Tested by

no test coverage detected