feat: add return to service workflow

This commit is contained in:
lussierj committed 2026-07-29 19:02:23 +00:00
1 parent 72ad19a071
commit f2b736b08e
19 files changed
+2883 -46

No files matched your search

+5
View File
@@ -715,6 +715,11 @@ class RepairTimelineArchitectureTests(unittest.TestCase):
"minerops_repair_parts_summary_api",
),
("POST", "/api/repairs", "begin_repair"),
(
"POST",
"/api/repairs/{repair_id}/complete",
"complete_repair",
),
("GET", "/api/repairs/{repair_id}", "get_repair"),
(
"GET",
+4 -2
View File
@@ -232,11 +232,13 @@ class RepairRouterTests(unittest.TestCase):
self.assertEqual(response.status_code, 422)
self.assertIsNone(self.service.request)
def test_router_registers_exactly_one_post_route(self):
def test_router_registers_exact_begin_repair_route(self):
routes = [
(route.path, route.methods)
for route in router.routes
if hasattr(route, "methods") and "POST" in route.methods
if hasattr(route, "methods")
and "POST" in route.methods
and route.path == "/api/repairs"
]
self.assertEqual(routes, [("/api/repairs", {"POST"})])
File diff suppressed because it is too large. Load diff