latest
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Test script for GAIS data import"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Add the current directory to the Python path
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from run.initialization.gais_data import import_gais_data
|
||||
|
||||
def test_gais_import():
|
||||
"""Test the GAIS data import functionality"""
|
||||
print("Starting full GAIS data import (all rows)...")
|
||||
|
||||
try:
|
||||
result = import_gais_data()
|
||||
|
||||
if result["success"]:
|
||||
print("✅ GAIS data import completed successfully!")
|
||||
print(f"Import result: {result}")
|
||||
return True
|
||||
else:
|
||||
print(f"❌ GAIS data import failed: {result['message']}")
|
||||
return False
|
||||
|
||||
except Exception as e:
|
||||
print(f"❌ GAIS data import failed: {str(e)}")
|
||||
return False
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_gais_import()
|
||||
Reference in New Issue
Block a user