Skip to content

Commit 3084830

Browse files
authored
Merge pull request #2870 from Suor/test-api-fast-skip
test: skip non supported remotes fast in api tests
2 parents 0404a23 + 865ed6f commit 3084830

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/func/test_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def run_dvc(*argv):
7575

7676

7777
@pytest.mark.parametrize("remote_url", remote_params, indirect=True)
78-
def test_get_url(repo_dir, dvc_repo, remote_url):
78+
def test_get_url(remote_url, repo_dir, dvc_repo):
7979
run_dvc("remote", "add", "-d", "upstream", remote_url)
8080
dvc_repo.add(repo_dir.FOO)
8181

@@ -84,7 +84,7 @@ def test_get_url(repo_dir, dvc_repo, remote_url):
8484

8585

8686
@pytest.mark.parametrize("remote_url", remote_params, indirect=True)
87-
def test_get_url_external(dvc_repo, erepo, remote_url):
87+
def test_get_url_external(remote_url, dvc_repo, erepo):
8888
_set_remote_url_and_commit(erepo.dvc, remote_url)
8989

9090
# Using file url to force clone to tmp repo
@@ -94,7 +94,7 @@ def test_get_url_external(dvc_repo, erepo, remote_url):
9494

9595

9696
@pytest.mark.parametrize("remote_url", all_remote_params, indirect=True)
97-
def test_open(repo_dir, dvc_repo, remote_url):
97+
def test_open(remote_url, repo_dir, dvc_repo):
9898
run_dvc("remote", "add", "-d", "upstream", remote_url)
9999
dvc_repo.add(repo_dir.FOO)
100100
run_dvc("push")
@@ -107,7 +107,7 @@ def test_open(repo_dir, dvc_repo, remote_url):
107107

108108

109109
@pytest.mark.parametrize("remote_url", all_remote_params, indirect=True)
110-
def test_open_external(dvc_repo, erepo, remote_url):
110+
def test_open_external(remote_url, dvc_repo, erepo):
111111
erepo.dvc.scm.checkout("branch")
112112
_set_remote_url_and_commit(erepo.dvc, remote_url)
113113
erepo.dvc.scm.checkout("master")
@@ -127,7 +127,7 @@ def test_open_external(dvc_repo, erepo, remote_url):
127127

128128

129129
@pytest.mark.parametrize("remote_url", all_remote_params, indirect=True)
130-
def test_missing(repo_dir, dvc_repo, remote_url):
130+
def test_missing(remote_url, repo_dir, dvc_repo):
131131
run_dvc("add", repo_dir.FOO)
132132
run_dvc("remote", "add", "-d", "upstream", remote_url)
133133

0 commit comments

Comments
 (0)