diff --git a/backend/tests/test_contract_responses.py b/backend/tests/test_contract_responses.py index 56aa9a3..30f56ed 100644 --- a/backend/tests/test_contract_responses.py +++ b/backend/tests/test_contract_responses.py @@ -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 \ No newline at end of file