diff --git a/tests/test_utils_path.py b/tests/test_utils_path.py index c9f9e5034..c6300f21e 100644 --- a/tests/test_utils_path.py +++ b/tests/test_utils_path.py @@ -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)