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

Function test_wsgi_http_error

tests/test_wsgi.py:125–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def test_wsgi_http_error():
126 transport = httpx.WSGITransport(app=partial(raise_exc, exc=RuntimeError))
127 client = httpx.Client(transport=transport)
128 with pytest.raises(RuntimeError):
129 client.get("http://www.example.org/")
130
131
132def test_wsgi_generator():

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected