Spaces:
Sleeping
Sleeping
| import importlib | |
| def test_evaluation_dashboard_importable(): | |
| # Import using the package path to mimic runtime imports | |
| module = importlib.import_module("src.evaluation.dashboard") | |
| assert hasattr(module, "evaluation_bp"), "evaluation_bp not found in dashboard module" | |
| def test_app_factory_registers_evaluation_blueprint(): | |
| # Import create_app and ensure blueprint is registered on app | |
| app_factory = importlib.import_module("src.app_factory") | |
| create_app = getattr(app_factory, "create_app") | |
| app = create_app() | |
| # Look for the blueprint name in the app's blueprints dict | |
| assert "evaluation" in app.blueprints, "Evaluation blueprint not registered in Flask app" | |