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

Function test_wsgi_exc

tests/test_wsgi.py:118–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117
118def test_wsgi_exc():
119 transport = httpx.WSGITransport(app=raise_exc)
120 client = httpx.Client(transport=transport)
121 with pytest.raises(ValueError):
122 client.get("http://www.example.org/")
123
124
125def test_wsgi_http_error():

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected