Skip to content

Commit df214fa

Browse files
authored
Merge pull request #3035 from iterative/test-walk_files
Write test for `walk_files` to check if it accepts Path-like and str objects
2 parents e2efb7b + 13ca5bd commit df214fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/utils/test_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from dvc.utils import relpath
1313
from dvc.utils import to_chunks
1414
from dvc.utils import tmp_fname
15+
from dvc.utils import walk_files
1516
from tests.basic_env import TestDir
1617

1718

@@ -147,3 +148,7 @@ def test_relpath():
147148
path_info = PathInfo(path)
148149

149150
assert relpath(path) == relpath(path_info)
151+
152+
153+
def test_walk_files(tmp_dir):
154+
assert list(walk_files(".")) == list(walk_files(tmp_dir))

0 commit comments

Comments
 (0)