test(contract): align response contract test with the verified green run
contract-openapi / openapi-contract (push) Failing after 40s
contract-openapi / ts-client-is-current (push) Failing after 1m24s

This commit is contained in:
2026-10-28 21:06:55 +03:00
parent c6150bd5fd
commit c53e2ef9b1
+1 -1
View File
@@ -314,7 +314,7 @@ def test_websocket_requires_token(client: TestClient) -> None:
def test_response_schema_lookup_fails_for_unknown_response(spec: dict[str, Any], client: TestClient) -> None:
"""Неописанный в контракте ответ — ошибка контракта, не молчаливый пропуск."""
"""Неописанный в контракте ответ — ошибка контракта, а не молчаливый пропуск."""
response = client.get("/api/v1/health")
with pytest.raises(ContractViolationError):
validate_response(spec, "/api/v1/health", "get", 418, response.json())