added tests

This commit is contained in:
2026-04-12 09:35:35 -03:00
parent 5c82703ebe
commit 4de44baf98
14 changed files with 1056 additions and 49 deletions

View File

@@ -53,7 +53,9 @@ async def run_fce(
status = flight_status.get("status", "")
delay_minutes = flight_status.get("delay_minutes", 0)
should_notify = status in ("DELAYED", "CANCELLED", "DIVERTED") and delay_minutes >= 10
should_notify = status in ("CANCELLED", "DIVERTED") or (
status == "DELAYED" and delay_minutes >= 10
)
await emit("node_exit", node="triage", result={"should_notify": should_notify})