switch python3

This commit is contained in:
Constantin
2025-09-13 16:10:51 +03:00
parent 36776353b9
commit 534206a236
2 changed files with 11 additions and 11 deletions
+10 -10
View File
@@ -31,7 +31,7 @@ help:
# Setup commands # Setup commands
setup: setup:
@echo "Setting up Personal Internet Cell..." @echo "Setting up Personal Internet Cell..."
python scripts/setup_cell.py python3 scripts/setup_cell.py
@echo "Setup complete!" @echo "Setup complete!"
init-peers: init-peers:
@@ -120,7 +120,7 @@ test:
test-all: test-all:
@echo "Running all tests using the unified test runner..." @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 # Remove or update old test targets that reference non-existent files
test-unit: test-unit:
@@ -133,31 +133,31 @@ test-coverage:
test-api: test-api:
@echo "Testing API endpoints..." @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: test-cli:
@echo "Testing CLI tool..." @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: test-phase1:
@echo "Testing Phase 1 (Network Foundation)..." @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: test-phase2:
@echo "Testing Phase 2 (WireGuard & Peer Registry)..." @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: test-phase3:
@echo "Testing Phase 3 (Core Digital Services)..." @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: test-phase4:
@echo "Testing Phase 4 (VPN Gateway & Routing)..." @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: test-all-phases:
@echo "Testing all phases..." @echo "Testing all phases..."
cd api && python -m pytest tests/ -v cd api && python3 -m pytest tests/ -v
# Network commands # Network commands
show-routes: show-routes:
@@ -176,4 +176,4 @@ add-peer:
list-peers: list-peers:
@echo "Configured 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"
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title> <title>Personal Internet Cell</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>