mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Write test for walk_files to check if it accepts Path-like and str objects
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user