fix(awooop): route runs list before dynamic run lookup
All checks were successful
Code Review / ai-code-review (push) Successful in 10s
CD Pipeline / tests (push) Successful in 1m3s
CD Pipeline / build-and-deploy (push) Successful in 3m22s
CD Pipeline / post-deploy-checks (push) Successful in 1m16s

This commit is contained in:
Your Name
2026-05-06 17:29:56 +08:00
parent 38b61e290e
commit 7473a01322
3 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
from __future__ import annotations
from src.api.v1.platform import router
def test_runs_list_route_is_registered_before_dynamic_run_id() -> None:
paths = [
route.path
for route in router.routes
if "GET" in getattr(route, "methods", set())
]
assert "/runs/list" in paths
assert "/runs/{run_id}" in paths
assert paths.index("/runs/list") < paths.index("/runs/{run_id}")