(test_client_factory: TestClientFactory)
| 232 | |
| 233 | |
| 234 | def test_500(test_client_factory: TestClientFactory) -> None: |
| 235 | client = test_client_factory(app, raise_server_exceptions=False) |
| 236 | response = client.get("/500") |
| 237 | assert response.status_code == 500 |
| 238 | assert response.json() == {"detail": "Server Error"} |
| 239 | |
| 240 | |
| 241 | def test_request_state(client: TestClient) -> None: |
nothing calls this directly
no test coverage detected