Skip to content

Commit ecc216f

Browse files
committed
refactor!(tests) skip_if_{vcs}_missing -> skip_if_missing_{vcs}
1 parent de13c1d commit ecc216f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def __init__(self, attempts: int, *args: object) -> None:
3030
)
3131

3232

33-
skip_if_git_missing = pytest.mark.skipif(
33+
skip_if_missing_git = pytest.mark.skipif(
3434
not shutil.which("git"),
3535
reason="git is not available",
3636
)
37-
skip_if_svn_missing = pytest.mark.skipif(
37+
skip_if_missing_svn = pytest.mark.skipif(
3838
not shutil.which("svn"),
3939
reason="svn is not available",
4040
)
41-
skip_if_hg_missing = pytest.mark.skipif(
41+
skip_if_missing_hg = pytest.mark.skipif(
4242
not shutil.which("hg"),
4343
reason="hg is not available",
4444
)
@@ -109,7 +109,7 @@ def set_home(
109109

110110

111111
@pytest.fixture
112-
@skip_if_git_missing
112+
@skip_if_missing_git
113113
def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
114114
"""Return git configuration, pytest fixture."""
115115
gitconfig = user_path / ".gitconfig"
@@ -144,7 +144,7 @@ def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
144144

145145

146146
@pytest.fixture
147-
@skip_if_hg_missing
147+
@skip_if_missing_hg
148148
def hgconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
149149
"""Return Mercurial configuration, pytest fixture."""
150150
hgrc = user_path / ".hgrc"
@@ -292,7 +292,7 @@ def empty_git_bare_repo_path(libvcs_test_cache_path: pathlib.Path) -> pathlib.Pa
292292

293293

294294
@pytest.fixture(scope="session")
295-
@skip_if_git_missing
295+
@skip_if_missing_git
296296
def empty_git_bare_repo(
297297
empty_git_bare_repo_path: pathlib.Path,
298298
) -> pathlib.Path:
@@ -311,7 +311,7 @@ def empty_git_bare_repo(
311311

312312

313313
@pytest.fixture(scope="session")
314-
@skip_if_git_missing
314+
@skip_if_missing_git
315315
def empty_git_repo(
316316
empty_git_repo_path: pathlib.Path,
317317
) -> pathlib.Path:
@@ -327,7 +327,7 @@ def empty_git_repo(
327327

328328

329329
@pytest.fixture(scope="session")
330-
@skip_if_git_missing
330+
@skip_if_missing_git
331331
def create_git_remote_bare_repo(
332332
remote_repos_path: pathlib.Path,
333333
empty_git_bare_repo: pathlib.Path,
@@ -356,7 +356,7 @@ def fn(
356356

357357

358358
@pytest.fixture(scope="session")
359-
@skip_if_git_missing
359+
@skip_if_missing_git
360360
def create_git_remote_repo(
361361
remote_repos_path: pathlib.Path,
362362
empty_git_repo: pathlib.Path,
@@ -398,7 +398,7 @@ def git_remote_repo_single_commit_post_init(remote_repo_path: pathlib.Path) -> N
398398

399399

400400
@pytest.fixture(scope="session")
401-
@skip_if_git_missing
401+
@skip_if_missing_git
402402
def git_remote_repo(
403403
create_git_remote_repo: CreateRepoPytestFixtureFn,
404404
) -> pathlib.Path:
@@ -456,7 +456,7 @@ def empty_svn_repo_path(libvcs_test_cache_path: pathlib.Path) -> pathlib.Path:
456456

457457

458458
@pytest.fixture(scope="session")
459-
@skip_if_svn_missing
459+
@skip_if_missing_svn
460460
def empty_svn_repo(
461461
empty_svn_repo_path: pathlib.Path,
462462
) -> pathlib.Path:
@@ -473,7 +473,7 @@ def empty_svn_repo(
473473

474474

475475
@pytest.fixture(scope="session")
476-
@skip_if_svn_missing
476+
@skip_if_missing_svn
477477
def create_svn_remote_repo(
478478
remote_repos_path: pathlib.Path,
479479
empty_svn_repo: pathlib.Path,
@@ -505,7 +505,7 @@ def fn(
505505

506506

507507
@pytest.fixture(scope="session")
508-
@skip_if_svn_missing
508+
@skip_if_missing_svn
509509
def svn_remote_repo(
510510
create_svn_remote_repo: CreateRepoPytestFixtureFn,
511511
) -> pathlib.Path:
@@ -515,7 +515,7 @@ def svn_remote_repo(
515515

516516

517517
@pytest.fixture(scope="session")
518-
@skip_if_svn_missing
518+
@skip_if_missing_svn
519519
def svn_remote_repo_with_files(
520520
create_svn_remote_repo: CreateRepoPytestFixtureFn,
521521
) -> pathlib.Path:
@@ -559,7 +559,7 @@ def empty_hg_repo_path(libvcs_test_cache_path: pathlib.Path) -> pathlib.Path:
559559

560560

561561
@pytest.fixture(scope="session")
562-
@skip_if_hg_missing
562+
@skip_if_missing_hg
563563
def empty_hg_repo(
564564
empty_hg_repo_path: pathlib.Path,
565565
) -> pathlib.Path:
@@ -576,7 +576,7 @@ def empty_hg_repo(
576576

577577

578578
@pytest.fixture(scope="session")
579-
@skip_if_hg_missing
579+
@skip_if_missing_hg
580580
def create_hg_remote_repo(
581581
remote_repos_path: pathlib.Path,
582582
empty_hg_repo: pathlib.Path,
@@ -608,7 +608,7 @@ def fn(
608608

609609

610610
@pytest.fixture(scope="session")
611-
@skip_if_hg_missing
611+
@skip_if_missing_hg
612612
def hg_remote_repo(
613613
remote_repos_path: pathlib.Path,
614614
create_hg_remote_repo: CreateRepoPytestFixtureFn,

0 commit comments

Comments
 (0)