Skip to content

Commit

Permalink
fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Dec 18, 2024
1 parent 7c76d40 commit 573489d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/cli/files_collector/test_walk_ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ def test_walk_ignore_top_level_ignores_order(fs: 'FakeFilesystem') -> None:
fs.create_file('/home/user/project/presented.log')
fs.create_file('/home/user/project/subproject/presented.log')

results = _collect_walk_ignore_files('/home/user/project')
assert len(results) == 3
assert normpath('/home/user/ignored.log') not in results
assert normpath('/home/user/project/presented.log') in results
assert normpath('/home/user/project/subproject/presented.log') in results
path = normpath('/home/user/project')
result = _collect_walk_ignore_files(path)
assert len(result) == 3
assert normpath('/home/user/ignored.log') not in result
assert normpath('/home/user/project/presented.log') in result
assert normpath('/home/user/project/subproject/presented.log') in result

0 comments on commit 573489d

Please sign in to comment.