Skip to content

Commit 175c3ab

Browse files
committed
test: Skip plotting tests without data
1 parent 55e9abe commit 175c3ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

niworkflows/interfaces/tests/test_plotting.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@
2828

2929
from niworkflows import viz
3030
from niworkflows.interfaces.plotting import _get_tr
31-
from niworkflows.tests.data import load_test_data
3231
from niworkflows.utils.timeseries import _cifti_timeseries, _nifti_timeseries
3332

33+
try:
34+
from niworkflows.tests.data import load_test_data
35+
except ImportError:
36+
import pytest
37+
pytest.skip('niworkflows installed as wheel, data excluded')
38+
3439

3540
def test_cifti_carpetplot():
3641
"""Exercise extraction of timeseries from CIFTI2."""

0 commit comments

Comments
 (0)