Write test for walk_files to check if it accepts Path-like and str objects

This commit is contained in:
Aman Sharma
2020-01-07 05:50:48 +05:30
parent e2efb7b6e4
commit 13ca5bdf28
+5
View File
@@ -12,6 +12,7 @@ from dvc.utils import makedirs
from dvc.utils import relpath
from dvc.utils import to_chunks
from dvc.utils import tmp_fname
from dvc.utils import walk_files
from tests.basic_env import TestDir
@@ -147,3 +148,7 @@ def test_relpath():
path_info = PathInfo(path)
assert relpath(path) == relpath(path_info)
def test_walk_files(tmp_dir):
assert list(walk_files(".")) == list(walk_files(tmp_dir))