system-prompts-and-models-o.../salesflow-saas/backend/tests/test_contradiction_severity_evidence.py
Sami Assiri 1ceeea9004 feat(tier1): finalize production activation and revenue execution pack
Complete Tier-1 closure follow-through by wiring docs governance gates, RC release readiness checks, source-of-truth enforcement, executive weekly contract surface, and go-live severity notes.
Add full go-live revenue execution documentation set (production activation, real production playbook, trust expansion, first 3 clients, live deployment, and automated revenue engine) and register all canonical paths.

Made-with: Cursor
2026-04-17 14:13:57 +03:00

37 lines
1.0 KiB
Python

"""Trust CI: critical / V3 contradictions require evidence."""
import pytest
from httpx import ASGITransport, AsyncClient
from app.main import app
@pytest.mark.asyncio
async def test_contradiction_critical_requires_evidence():
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
r = await client.post(
"/api/v1/contradictions/",
json={
"source_a": "a",
"source_b": "b",
"claim_a": "x",
"claim_b": "y",
"severity": "critical",
"evidence": None,
},
)
assert r.status_code == 422
r2 = await client.post(
"/api/v1/contradictions/",
json={
"source_a": "a",
"source_b": "b",
"claim_a": "x",
"claim_b": "y",
"severity": "critical",
"evidence": {"receipt": "r1"},
},
)
assert r2.status_code == 200