mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 07:19:35 +00:00
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
37 lines
1.0 KiB
Python
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
|