Skip to content

Commit 774d1cb

Browse files
committed
Raise if validator cannot be found
1 parent a2b3117 commit 774d1cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mne_bids/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def _bids_validate():
2828
has_npx = shutil.which("npx") is not None
2929

3030
if not has_validator and not has_npx:
31-
pytest.skip(
32-
"bids-validator or npx is required to run BIDS validation tests. "
31+
raise FileNotFoundError(
32+
"⛔️ bids-validator or npx is required to run BIDS validation tests. "
3333
"Please install the BIDS validator or ensure npx is available."
3434
)
3535
elif not has_validator:

0 commit comments

Comments
 (0)