manim-mcp / tests /test_imports.py
bhaveshgoel07's picture
Deploy code fixes (clean history)
fff13d1
#!/usr/bin/env python3
"""
Basic import tests to verify the NeuroAnim setup.
"""
import sys
from pathlib import Path
# Add project root to Python path
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))
def test_imports():
"""Test that all modules can be imported successfully."""
try:
import utils
print("βœ… utils module imported successfully")
from utils.hf_wrapper import HFInferenceWrapper, ModelConfig
print("βœ… HFInferenceWrapper and ModelConfig imported successfully")
import mcp_servers
print("βœ… mcp_servers module imported successfully")
from mcp_servers import renderer, creative
print("βœ… renderer and creative modules imported successfully")
from orchestrator import NeuroAnimOrchestrator
print("βœ… NeuroAnimOrchestrator imported successfully")
print("\nπŸŽ‰ All imports successful! NeuroAnim is properly set up.")
return True
except ImportError as e:
print(f"❌ Import failed: {e}")
return False
if __name__ == "__main__":
test_imports()