File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44Tests complete installation scenarios from detection through execution.
55"""
66
7+ import sys
78import pytest
89import tempfile
910import shutil
1011from pathlib import Path
1112from 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+
1320from cli_audit import (
1421 install_tool ,
1522 bulk_install ,
@@ -120,6 +127,7 @@ def test_install_with_retry_on_network_failure(self, mock_run):
120127class 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."""
You can’t perform that action at this time.
0 commit comments