test(contract): align response contract test with the verified green run
This commit is contained in:
@@ -314,8 +314,8 @@ 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())
|
||||
assert response_schema(spec, "/api/v1/health", "get", 418) is None
|
||||
assert response_schema(spec, "/api/v1/health", "get", 418) is None
|
||||
Reference in New Issue
Block a user