"""Structural tests for the dashboard blueprint."""


def test_dashboard_blueprint_registered():
    from scribe.routes.dashboard import dashboard_bp
    assert dashboard_bp.name == "dashboard"
    assert dashboard_bp.url_prefix == "/api/dashboard"


def test_dashboard_blueprint_registered_in_app():
    from scribe.app import create_app
    app = create_app()
    assert "dashboard" in app.blueprints


def test_dashboard_handler_callable():
    from scribe.routes import dashboard as dashboard_routes
    assert callable(dashboard_routes.get_dashboard)
