Skip to content

Commit dc3c10e

Browse files
committed
fix(tests): skip bulk install integration tests on Windows
- Tests use generate_rollback_script which writes to /tmp - /tmp path does not exist on Windows
1 parent 965762e commit dc3c10e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/integration/test_e2e_install.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@
44
Tests complete installation scenarios from detection through execution.
55
"""
66

7+
import sys
78
import pytest
89
import tempfile
910
import shutil
1011
from pathlib import Path
1112
from unittest.mock import patch, MagicMock
1213

14+
# Skip marker for Windows (rollback scripts use Unix paths and shell syntax)
15+
skip_on_windows = pytest.mark.skipif(
16+
sys.platform == "win32",
17+
reason="Rollback scripts use Unix paths (/tmp) and shell syntax"
18+
)
19+
1320
from cli_audit import (
1421
install_tool,
1522
bulk_install,
@@ -120,6 +127,7 @@ def test_install_with_retry_on_network_failure(self, mock_run):
120127
class TestBulkInstallation:
121128
"""Integration tests for bulk installation workflows."""
122129

130+
@skip_on_windows
123131
@patch("cli_audit.bulk.install_tool")
124132
@patch("cli_audit.bulk.get_missing_tools")
125133
def test_bulk_install_explicit_tools(self, mock_get_missing, mock_install):
@@ -157,6 +165,7 @@ def mock_install_fn(tool_name, **kwargs):
157165
assert len(result.failures) == 0
158166
assert result.duration_seconds > 0
159167

168+
@skip_on_windows
160169
@patch("cli_audit.bulk.install_tool")
161170
def test_bulk_install_with_fail_fast(self, mock_install):
162171
"""Test bulk installation with fail-fast enabled."""

0 commit comments

Comments
 (0)