no-mistakes(review): Make Cancelled reachable from all active states; wire phone PATCH; exclude cancelled from CEO resolution avg
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user