()
| 116 | |
| 117 | |
| 118 | def 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 | |
| 125 | def test_wsgi_http_error(): |