odb: use regular upload() when the source filesystem is local (#6365)

* odb: use regular upload() when the source filesystem is local

* support download_file too
This commit is contained in:
Batuhan Taskaya
2021-07-27 15:55:49 +03:00
committed by GitHub
parent 1e43c303a7
commit 4a843dbd61
6 changed files with 52 additions and 42 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def test_cache_reused(erepo_dir, mocker, local_cloud):
erepo_dir.dvc_gen("file", "text", commit="add file")
erepo_dir.dvc.push()
download_spy = mocker.spy(LocalFileSystem, "upload_fobj")
download_spy = mocker.spy(LocalFileSystem, "upload")
# Use URL to prevent any fishy optimizations
url = f"file://{erepo_dir}"