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

35
tests/endpoints.py Normal file
View File

@@ -0,0 +1,35 @@
"""Centralized API endpoint paths — single source of truth."""
class Endpoints:
# Scenarios
SCENARIOS = "/scenarios"
SCENARIO_ACTIVE = "/scenarios/active"
# Scenario data
DATA_FLIGHTS = "/scenarios/data/flights"
DATA_CREW = "/scenarios/data/crew"
DATA_CREW_NOTES = "/scenarios/data/crew-notes"
DATA_MAINTENANCE = "/scenarios/data/maintenance"
DATA_REBOOKINGS = "/scenarios/data/rebookings"
@staticmethod
def flight(flight_id: str) -> str:
return f"/scenarios/data/flights/{flight_id}"
@staticmethod
def crew(crew_id: str) -> str:
return f"/scenarios/data/crew/{crew_id}"
@staticmethod
def crew_notes(flight_id: str) -> str:
return f"/scenarios/data/crew-notes/{flight_id}"
# Agents
AGENT_FCE = "/agents/fce"
AGENT_HANDOVER = "/agents/handover"
AGENT_RUNS = "/agents/runs"
@staticmethod
def run(run_id: str) -> str:
return f"/agents/runs/{run_id}"