From 2e21be992d2fda927e9bd8116231a27248405874 Mon Sep 17 00:00:00 2001 From: Peter Rowlands Date: Mon, 21 Mar 2022 16:22:20 +0900 Subject: [PATCH] tests: fix incorrect git URLs --- tests/func/test_api.py | 2 +- tests/func/test_get.py | 2 +- tests/func/test_import.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/func/test_api.py b/tests/func/test_api.py index 997b8a710..76b5e741c 100644 --- a/tests/func/test_api.py +++ b/tests/func/test_api.py @@ -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" diff --git a/tests/func/test_get.py b/tests/func/test_get.py index d0daed8fa..a8b368e23 100644 --- a/tests/func/test_get.py +++ b/tests/func/test_get.py @@ -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" diff --git a/tests/func/test_import.py b/tests/func/test_import.py index e8f34f359..59c732868 100644 --- a/tests/func/test_import.py +++ b/tests/func/test_import.py @@ -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"