mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
tests: fix incorrect git URLs
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
9d96ddfbe7
commit
2e21be992d
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user