system-prompts-and-models-o.../salesflow-saas/backend/tests/test_structured_outputs_exec_weekly_contract.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

20 lines
715 B
Python

"""Schema / contract CI: ExecWeeklyGovernanceContract round-trip."""
from app.schemas.structured_outputs import ExecWeeklyGovernanceContract, Provenance
def test_exec_weekly_governance_contract_roundtrip():
p = Provenance(generated_by="pytest", confidence=0.9)
m = ExecWeeklyGovernanceContract(
week_of="2026-W16",
changes_summary="Closed Tier-1 gates",
pending_decisions=["CFO sign-off"],
blockers_summary="None",
at_risk_items=["connector X"],
next_best_actions=["Run RC checklist"],
provenance=p,
)
d = m.model_dump(mode="json")
m2 = ExecWeeklyGovernanceContract.model_validate(d)
assert m2.pending_decisions == ["CFO sign-off"]