(test_client_factory: TestClientFactory)
| 81 | |
| 82 | |
| 83 | def test_wsgi_exception(test_client_factory: TestClientFactory) -> None: |
| 84 | # Note that we're testing the WSGI app directly here. |
| 85 | # The HTTP protocol implementations would catch this error and return 500. |
| 86 | app = WSGIMiddleware(raise_exception) |
| 87 | client = test_client_factory(app) |
| 88 | with pytest.raises(RuntimeError): |
| 89 | client.get("/") |
| 90 | |
| 91 | |
| 92 | def test_wsgi_exc_info(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected