File size: 1,081 Bytes
2b395f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
"""
Simple Test Runner for FRED ML
Run this script to test the complete system
"""

import subprocess
import sys
from pathlib import Path

def main():
    """Run the complete system test"""
    print("๐Ÿš€ FRED ML Complete System Test")
    print("=" * 50)
    
    # Check if the test script exists
    test_script = Path(__file__).parent / 'scripts' / 'test_complete_system.py'
    
    if not test_script.exists():
        print("โŒ Test script not found. Please run the deployment first.")
        sys.exit(1)
    
    # Run the test
    try:
        result = subprocess.run([
            sys.executable, str(test_script)
        ], check=True)
        
        print("\n๐ŸŽ‰ Test completed successfully!")
        return True
        
    except subprocess.CalledProcessError as e:
        print(f"\nโŒ Test failed with exit code: {e.returncode}")
        return False
    except Exception as e:
        print(f"\nโŒ Test execution failed: {e}")
        return False

if __name__ == "__main__":
    success = main()
    sys.exit(0 if success else 1)