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.
1 parent 2d10ce4 commit c109e83Copy full SHA for c109e83
conftest.py
@@ -89,6 +89,16 @@ def is_git_lfs_pointer(file_path: Path) -> bool:
89
return False
90
91
92
+@pytest.hookimpl(hookwrapper=True)
93
+def pytest_runtest_makereport(item, call):
94
+ outcome = yield
95
+ report = outcome.get_result()
96
+
97
+ if report.when == "call" and report.failed:
98
+ if "NodeJS or npm is not installed" in str(report.longrepr):
99
+ pytest.skip("Test requires NodeJS and npm to be installed")
100
101
102
@pytest.fixture(autouse=True)
103
def skip_lfs_tests(request):
104
"""Skip tests that depend on git LFS files if they haven't been pulled"""
0 commit comments