tests: fix incorrect git URLs

This commit is contained in:
Peter Rowlands
2022-03-21 18:17:36 +09:00
committed by Peter Rowlands (변기호)
parent 9d96ddfbe7
commit 2e21be992d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ def test_read_with_subrepos(tmp_dir, scm, local_cloud, local_repo):
subrepo.dvc_gen("dvc-file", "dvc-file", commit="add dir")
subrepo.dvc.push()
repo_path = None if local_repo else f"file:///{tmp_dir}"
repo_path = None if local_repo else f"file://{tmp_dir}"
subrepo_path = os.path.join("dir", "subrepo")
assert api.read("foo.txt", repo=repo_path) == "foo.txt"
+1 -1
View File
@@ -266,7 +266,7 @@ def test_get_pipeline_tracked_outs(
dvc.scm.commit("add pipeline stage")
with git_dir.chdir():
Repo.get(f"file:///{os.fspath(tmp_dir)}", "bar", out="baz")
Repo.get(f"file://{os.fspath(tmp_dir)}", "bar", out="baz")
assert (git_dir / "baz").read_text() == "foo"
+1 -1
View File
@@ -408,7 +408,7 @@ def test_import_pipeline_tracked_outs(
dvc.scm.commit("add pipeline stage")
with erepo_dir.chdir():
erepo_dir.dvc.imp(f"file:///{os.fspath(tmp_dir)}", "bar", out="baz")
erepo_dir.dvc.imp(f"file://{os.fspath(tmp_dir)}", "bar", out="baz")
assert (erepo_dir / "baz").read_text() == "foo"