#!/usr/bin/env python3 """Test script to verify the dashboard module can be imported.""" import sys import os # Add parent directory to path sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) try: # Try to import the module import cardio_dashboard print("✅ cardio_dashboard module imported successfully!") # Check if required functions exist required_functions = ['load_and_clean_data', 'create_filters', 'apply_filters', 'display_summary_metrics', 'create_visualizations', 'main'] for func_name in required_functions: if hasattr(cardio_dashboard, func_name): print(f"✅ Function '{func_name}' found") else: print(f"❌ Function '{func_name}' not found") except ImportError as e: print(f"❌ Import error: {e}") except Exception as e: print(f"❌ Other error: {e}") print("\n✅ Syntax check passed!")