Update tests/test_utils_path.py
Run CI Tests / test (push) Successful in 30s

This commit is contained in:
2025-07-28 23:09:18 +02:00
parent cea11d8673
commit b6e0cc5fe0
+4 -2
View File
@@ -88,15 +88,17 @@ def test_filter_files_excludes_directories():
f3 = Path(os.path.join(tmp_dir, "y.log"))
f2 = Path(os.path.join(tmp_dir, "y.txt"))
d1 = Path(os.path.join(tmp_dir, "dir"))
f4 = Path(os.path.join(tmp_dir, "y.json"))
f1.touch()
f3.touch()
f2.touch()
d1.mkdir()
f4.touch()
result = filter_files([f1, f3, f2, d1])
result = filter_files([f1, f3, f2, d1, f4])
result_names = sorted([p.name for p in result])
assert result_names == ["x.txt", "y.log", "y.txt"]
assert result_names == ["x.txt", "y.log", "y.txt", "y.json"]
shutil.rmtree(tmp_dir)