no-mistakes(review): Make Cancelled reachable from all active states; wire phone PATCH; exclude cancelled from CEO resolution avg

This commit is contained in:
root
2026-08-02 14:12:46 +00:00
parent 1dd88a141e
commit 237284b012
4 changed files with 12 additions and 7 deletions
+5 -1
View File
@@ -60,7 +60,11 @@ async def test_cancelled_reachable_from_active_states(client):
"""Logged/Triage/In Progress → Cancelled are all valid transitions."""
from app.services.ticket import VALID_TRANSITIONS
for state in ("Logged", "Triage", "Assigned", "Accepted", "In Progress", "Escalated"):
for state in (
"New", "Logged", "Triage", "Assigned", "Accepted", "Travelling", "On Site",
"In Progress", "Waiting Parts", "Escalated", "On-Field Verification",
"Wahab Review", "Reopened",
):
assert "Cancelled" in VALID_TRANSITIONS[state], f"{state} should allow Cancelled"