Skip to content

Commit 4137bfb

Browse files
committed
test: skip cloud mode tests on Windows
Cloud mode only runs on POSIX systems (Linux containers in Fly.io), so skip these tests on Windows to avoid platform-specific path issues. Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 514bf4f commit 4137bfb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/services/test_project_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ async def test_synchronize_projects_handles_case_sensitivity_bug(
716716
await project_service.repository.delete(db_project.id)
717717

718718

719+
@pytest.mark.skipif(os.name == "nt", reason="Cloud mode only runs on POSIX systems")
719720
@pytest.mark.asyncio
720721
async def test_add_project_cloud_mode_sanitizes_paths(
721722
project_service: ProjectService, config_manager: ConfigManager, tmp_path, monkeypatch
@@ -783,6 +784,7 @@ async def test_add_project_cloud_mode_sanitizes_paths(
783784
# Expected failure - continue to next test case
784785

785786

787+
@pytest.mark.skipif(os.name == "nt", reason="Cloud mode only runs on POSIX systems")
786788
@pytest.mark.asyncio
787789
async def test_add_project_cloud_mode_rejects_escape_attempts(
788790
project_service: ProjectService, config_manager: ConfigManager, tmp_path, monkeypatch
@@ -833,6 +835,7 @@ async def test_add_project_cloud_mode_rejects_escape_attempts(
833835
pass
834836

835837

838+
@pytest.mark.skipif(os.name == "nt", reason="Cloud mode only runs on POSIX systems")
836839
@pytest.mark.asyncio
837840
async def test_add_project_local_mode_allows_arbitrary_paths(
838841
project_service: ProjectService, config_manager: ConfigManager, tmp_path, monkeypatch

0 commit comments

Comments
 (0)