(client: TestClient)
| 222 | |
| 223 | |
| 224 | def test_405(client: TestClient) -> None: |
| 225 | response = client.post("/func") |
| 226 | assert response.status_code == 405 |
| 227 | assert response.json() == {"detail": "Custom message"} |
| 228 | |
| 229 | response = client.post("/class") |
| 230 | assert response.status_code == 405 |
| 231 | assert response.json() == {"detail": "Custom message"} |
| 232 | |
| 233 | |
| 234 | def test_500(test_client_factory: TestClientFactory) -> None: |