switch python3
This commit is contained in:
@@ -31,7 +31,7 @@ help:
|
||||
# Setup commands
|
||||
setup:
|
||||
@echo "Setting up Personal Internet Cell..."
|
||||
python scripts/setup_cell.py
|
||||
python3 scripts/setup_cell.py
|
||||
@echo "Setup complete!"
|
||||
|
||||
init-peers:
|
||||
@@ -120,7 +120,7 @@ test:
|
||||
|
||||
test-all:
|
||||
@echo "Running all tests using the unified test runner..."
|
||||
python api/tests/run_tests.py
|
||||
python3 api/tests/run_tests.py
|
||||
|
||||
# Remove or update old test targets that reference non-existent files
|
||||
test-unit:
|
||||
@@ -133,31 +133,31 @@ test-coverage:
|
||||
|
||||
test-api:
|
||||
@echo "Testing API endpoints..."
|
||||
cd api && python -m pytest tests/test_api_endpoints.py -v
|
||||
cd api && python3 -m pytest tests/test_api_endpoints.py -v
|
||||
|
||||
test-cli:
|
||||
@echo "Testing CLI tool..."
|
||||
cd api && python -m pytest tests/test_cli_tool.py -v
|
||||
cd api && python3 -m pytest tests/test_cli_tool.py -v
|
||||
|
||||
test-phase1:
|
||||
@echo "Testing Phase 1 (Network Foundation)..."
|
||||
cd api && python -m pytest tests/test_network_manager.py tests/test_phase1_endpoints.py -v
|
||||
cd api && python3 -m pytest tests/test_network_manager.py tests/test_phase1_endpoints.py -v
|
||||
|
||||
test-phase2:
|
||||
@echo "Testing Phase 2 (WireGuard & Peer Registry)..."
|
||||
cd api && python -m pytest tests/test_wireguard_manager.py tests/test_phase2_endpoints.py -v
|
||||
cd api && python3 -m pytest tests/test_wireguard_manager.py tests/test_phase2_endpoints.py -v
|
||||
|
||||
test-phase3:
|
||||
@echo "Testing Phase 3 (Core Digital Services)..."
|
||||
cd api && python -m pytest tests/test_phase3_managers.py tests/test_phase3_endpoints.py -v
|
||||
cd api && python3 -m pytest tests/test_phase3_managers.py tests/test_phase3_endpoints.py -v
|
||||
|
||||
test-phase4:
|
||||
@echo "Testing Phase 4 (VPN Gateway & Routing)..."
|
||||
cd api && python -m pytest tests/test_phase4_routing.py tests/test_phase4_endpoints.py -v
|
||||
cd api && python3 -m pytest tests/test_phase4_routing.py tests/test_phase4_endpoints.py -v
|
||||
|
||||
test-all-phases:
|
||||
@echo "Testing all phases..."
|
||||
cd api && python -m pytest tests/ -v
|
||||
cd api && python3 -m pytest tests/ -v
|
||||
|
||||
# Network commands
|
||||
show-routes:
|
||||
@@ -176,4 +176,4 @@ add-peer:
|
||||
|
||||
list-peers:
|
||||
@echo "Configured peers:"
|
||||
@curl -s http://localhost:3000/api/peers | python -m json.tool || echo "API not responding"
|
||||
@curl -s http://localhost:3000/api/peers | python3 -m json.tool || echo "API not responding"
|
||||
Reference in New Issue
Block a user