Skip to content

Commit 2ea4d26

Browse files
committed
Merge branch 'master' of github.com:odd-industries/dvc
2 parents a0f1869 + 4e53f17 commit 2ea4d26

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/unit/remote/test_remote_dir.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,12 @@ def test_download_dir(remote, tmpdir):
141141
to_info = os.PathInfo(path)
142142
remote.download(remote.path_info / "data", to_info)
143143
assert os.path.isdir(path)
144-
# check the list of files
144+
data_dir = tmpdir / "data"
145+
assert len(list(walk_files(path, None))) == 7
146+
assert (data_dir / "alice").read_text(encoding="utf-8") == "alice"
147+
assert (data_dir / "alpha").read_text(encoding="utf-8") == "alpha"
148+
assert (data_dir / "subdir-file.txt").read_text(encoding="utf-8") == "subdir"
149+
assert (data_dir / "subdir" / "1").read_text(encoding="utf-8") == "1"
150+
assert (data_dir / "subdir" / "2").read_text(encoding="utf-8") == "2"
151+
assert (data_dir / "subdir" / "3").read_text(encoding="utf-8") == "3"
152+
assert (data_dir / "subdir" / "empty_file").read_text(encoding="utf-8") == ""

0 commit comments

Comments
 (0)