Skip to content

Commit

Permalink
fix windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-medeiros-reef committed Jun 14, 2024
1 parent 421dca9 commit 08011a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/scan/test_folder_traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ def test_excluded_without_permissions(self, tmp_path):
# Restore directory permissions to clean up
(included_dir / "excluded_file.txt").chmod(0o755)
excluded_dir.chmod(0o755)
print(reporter.warnings)

# Check that only included_dir/included_file.txt was return
assert absolute_paths == [f"{tmp_path}/included_dir/included_file.txt"]
assert any('included_file.txt' in path for path in absolute_paths)

# Check that no access warnings are issued for the excluded directory/file
assert not any(
Expand Down

0 comments on commit 08011a4

Please sign in to comment.