We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
which
1 parent 65c1b43 commit d78f84dCopy full SHA for d78f84d
src/libvcs/pytest_plugin.py
@@ -106,16 +106,17 @@ def __next__(self) -> str:
106
107
def pytest_ignore_collect(collection_path: pathlib.Path, config: pytest.Config) -> bool:
108
"""Skip tests if VCS binaries are missing."""
109
- if notshutil.which("svn") andany(
+ if any(
110
needle in str(collection_path) for needle in ["svn", "subversion"]
111
- ):
+ )andnotshutil.which("svn"):
112
return True
113
- if notshutil.which("git") and "git"instr(collection_path):
+ if "git"instr(collection_path) and notshutil.which("git"):
114
115
- return bool(
116
- not shutil.which("hg")
117
- and any(needle in str(collection_path) for needle in ["hg", "mercurial"]),
118
- )
+ if any( # NOQA: SIM103
+ needle in str(collection_path) for needle in ["hg", "mercurial"]
+ ) and not shutil.which("hg"):
+ return True
119
+ return False
120
121
122
@pytest.fixture(scope="session")
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments