"""The trash API is routed: list, restore and purge reach handlers on the running app. What they do is the trash service's to prove (tests/test_services_trash.py, tests/test_mcp_tool_trash.py).""" def test_the_trash_routes_are_on_the_app(): from grimoire.app import create_app rules = { (str(r.rule), m) for r in create_app().url_map.iter_rules() for m in r.methods } for route in (("/api/trash", "GET"), ("/api/trash//restore", "POST"), ("/api/trash/", "DELETE")): assert route in rules, route