Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """ | |
| Backend API Testing entry point for CircuitScope. | |
| Invokes the main integration test suite from the tests/ directory. | |
| """ | |
| import sys | |
| import subprocess | |
| import os | |
| def main(): | |
| # Make sure we run relative to the workspace directory | |
| current_dir = os.path.dirname(os.path.abspath(__file__)) | |
| test_path = os.path.join(current_dir, "tests", "test_core.py") | |
| print(f"🚀 Running integration tests via {test_path}...") | |
| result = subprocess.run([sys.executable, test_path], cwd=current_dir) | |
| sys.exit(result.returncode) | |
| if __name__ == "__main__": | |
| main() |