We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e3fd2 commit 896b08cCopy full SHA for 896b08c
tests/unit/remote/test_remote_dir.py
@@ -3,6 +3,7 @@
3
import os
4
from dvc.remote.s3 import RemoteS3
5
from dvc.utils import walk_files
6
+from dvc.path_info import PathInfo
7
from tests.remotes import GCP, S3Mocked
8
9
remotes = [GCP, S3Mocked]
@@ -136,8 +137,8 @@ def test_isfile(remote):
136
137
138
@pytest.mark.parametrize("remote", remotes, indirect=True)
139
def test_download_dir(remote, tmpdir):
- path = os.fspath(tmpdir / "data")
140
- to_info = os.PathInfo(path)
+ path = str(tmpdir / "data")
141
+ to_info = PathInfo(path)
142
remote.download(remote.path_info / "data", to_info)
143
assert os.path.isdir(path)
144
data_dir = tmpdir / "data"
0 commit comments