Skip to content

Commit 51522ba

Browse files
committed
make test deterministic
1 parent 747950a commit 51522ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cli/files_collector/test_path_documents.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,8 @@ def test_collect_top_level_ignore_files(fs: 'FakeFilesystem') -> None:
7777
def test_get_global_ignore_patterns(fs: 'FakeFilesystem') -> None:
7878
_create_mocked_file_structure(fs)
7979
ignore_patterns = _get_global_ignore_patterns('/home/user/project/subdir')
80-
assert ignore_patterns == ['*.txt', '*.pyc', '*.log']
80+
81+
assert len(ignore_patterns) == 3
82+
assert '*.txt' in ignore_patterns
83+
assert '*.pyc' in ignore_patterns
84+
assert '*.log' in ignore_patterns

0 commit comments

Comments
 (0)