style: format test file with black

This commit is contained in:
Sven Lito
2025-08-08 23:47:26 +07:00
parent 7c6ec4a928
commit cce6f7106c

View File

@@ -40,11 +40,11 @@ class TestPipDetectionFix:
""" """
# Test that the get_venv_python_path function now returns absolute paths # Test that the get_venv_python_path function now returns absolute paths
content = Path("./run-server.sh").read_text() content = Path("./run-server.sh").read_text()
# Check that get_venv_python_path includes our absolute path conversion logic # Check that get_venv_python_path includes our absolute path conversion logic
assert "abs_venv_path" in content, "get_venv_python_path should use absolute paths" assert "abs_venv_path" in content, "get_venv_python_path should use absolute paths"
assert "cd \"$(dirname" in content, "Should convert to absolute path" assert 'cd "$(dirname' in content, "Should convert to absolute path"
# Test successful completion - our fix should make the script more robust # Test successful completion - our fix should make the script more robust
result = subprocess.run(["bash", "-n", "./run-server.sh"], capture_output=True, text=True) result = subprocess.run(["bash", "-n", "./run-server.sh"], capture_output=True, text=True)
assert result.returncode == 0, "Script should have valid syntax after our fix" assert result.returncode == 0, "Script should have valid syntax after our fix"