Files
sad_test01/aicodes/module1_dashboard/test_import.py
anthony-s526 ffc4192ff0 Add CardioAI project with three modules
- Module 1: Dashboard for cardiovascular disease data visualization
- Module 2: Machine learning predictor with Flask API
- Module 3: Voice assistant with DeepSeek and CosyVoice integration
- Add .gitignore for proper file exclusion
- Update requirements and documentation

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 21:26:10 +08:00

30 lines
937 B
Python

#!/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!")