- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_override_server_error_exception_response (0.14 sec)
-
tests/test_exception_handlers.py
def test_override_server_error_exception_raises(): with pytest.raises(RuntimeError): client.get("/server-error") def test_override_server_error_exception_response(): client = TestClient(app, raise_server_exceptions=False) response = client.get("/server-error") assert response.status_code == 500
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Feb 17 12:40:12 UTC 2022 - 1.9K bytes - Viewed (0)