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

+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"})])