Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/test_type_casting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
tests/test_edge_cases.py - Edge cases and error handling tests
"""

import sys
import pytest
import os
import json
Expand Down Expand Up @@ -132,6 +133,10 @@ def test_permission_denied_file(self):

env_file = Path(self.temp_dir) / '.env'
env_file.write_text('KEY=value\n')

# Skip on Windows as file permissions work differently
if sys.platform == 'win32':
pytest.skip("File permission test not applicable on Windows")

# Remove read permissions
os.chmod(env_file, stat.S_IWRITE)
Expand Down
Loading