"""Structural tests for the systems blueprint — registration + handler/service contracts. Full HTTP integration needs a live DB + auth the unit env lacks.""" import inspect def test_systems_blueprint_registered(): from grimoire.routes.systems import systems_bp assert systems_bp.name == "systems" assert systems_bp.url_prefix == "/api/projects" def test_systems_blueprint_registered_in_app(): from grimoire.app import create_app app = create_app() assert "systems" in app.blueprints def test_system_handlers_callable(): from grimoire.routes import systems as routes for name in ( "list_systems_route", "create_system_route", "get_system_route", "update_system_route", "delete_system_route", "system_records_route", "project_issues_route", ): assert callable(getattr(routes, name))