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