-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.py
More file actions
executable file
·50 lines (43 loc) · 1.44 KB
/
run_tests.py
File metadata and controls
executable file
·50 lines (43 loc) · 1.44 KB
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
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
"""
Simple test runner for Austin ATAK Integrations.
This script runs the core functionality tests without requiring full app configuration.
"""
import asyncio
import sys
import os
from datetime import datetime
# Add the app directory to the path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'app'))
async def run_core_tests():
"""Run core functionality tests."""
print("🧪 Austin ATAK Integrations - Core Tests")
print("=" * 50)
print(f"Started at: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
print("=" * 50)
# Test 1: API Endpoints
print("\n📡 Testing API Endpoints...")
try:
from tests.test_api_endpoints import main as test_api
await test_api()
print("✅ API Endpoints: PASSED")
except Exception as e:
print(f"❌ API Endpoints: FAILED - {e}")
return False
# Test 2: CoT Generation
print("\n📄 Testing CoT Generation...")
try:
from tests.test_cot_generation import main as test_cot
await test_cot()
print("✅ CoT Generation: PASSED")
except Exception as e:
print(f"❌ CoT Generation: FAILED - {e}")
return False
print("\n" + "=" * 50)
print("🎉 All core tests passed!")
print("The system is ready for deployment.")
print("=" * 50)
return True
if __name__ == "__main__":
success = asyncio.run(run_core_tests())
sys.exit(0 if success else 1)