Skip to content

Commit c5458a3

Browse files
committed
TEST: Tag tests that require access to the data directory
1 parent 0086302 commit c5458a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabel/tests/test_pointset.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from nibabel.onetime import auto_attr
1414
from nibabel.optpkg import optional_package
1515
from nibabel.spatialimages import SpatialImage
16-
from nibabel.tests.nibabel_data import get_nibabel_data
16+
from nibabel.tests.nibabel_data import get_nibabel_data, needs_nibabel_data
1717

1818
h5, has_h5py, _ = optional_package('h5py')
1919

@@ -360,13 +360,15 @@ def from_filename(klass, pathlike):
360360
return self
361361

362362

363+
@needs_nibabel_data('nitest-freesurfer')
363364
def test_FreeSurferHemisphere():
364365
lh = FreeSurferHemisphere.from_filename(FS_DATA / 'fsaverage/surf/lh.white')
365366
assert lh.n_coords == 163842
366367
assert lh.n_triangles == 327680
367368

368369

369370
@skipUnless(has_h5py, reason='Test requires h5py')
371+
@needs_nibabel_data('nitest-freesurfer')
370372
def test_make_H5Geometry(tmp_path):
371373
lh = FreeSurferHemisphere.from_filename(FS_DATA / 'fsaverage/surf/lh.white')
372374
h5geo = H5Geometry.from_object(lh)

0 commit comments

Comments
 (0)