Skip to content

Commit 420ce61

Browse files
author
tytv2
committed
fix: skip file permissions test on Windows
1 parent db52987 commit 420ce61

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unit/test_configure_writer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
from __future__ import annotations
22

33
import os
4+
import platform
45
import stat
56

67
import pytest
78

9+
import pytest
10+
811
from grncli.customizations.configure.writer import ConfigFileWriter
912

1013

@@ -21,6 +24,7 @@ def test_create_new_file(self, tmp_path):
2124
assert 'region = HCM-3' in content
2225
assert 'output = json' in content
2326

27+
@pytest.mark.skipif(platform.system() == 'Windows', reason='Unix permissions not supported on Windows')
2428
def test_file_permissions(self, tmp_path):
2529
config_file = str(tmp_path / "credentials")
2630
writer = ConfigFileWriter()

0 commit comments

Comments
 (0)