Skip to content

Commit

Permalink
tests: fix incorrect git URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Mar 21, 2022
1 parent 9d96ddf commit 2e21be9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/func/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/func/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion tests/func/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit 2e21be9

Please sign in to comment.