Skip to content

Commit f0755f6

Browse files
authored
add test
1 parent 07f6d88 commit f0755f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

intake_xarray/tests/test_image.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,10 @@ def test_read_images_and_exif_as_glob_with_coerce():
184184
ds = source.read()
185185
assert ds['raster'].shape == (3, 256, 256, 3)
186186
assert ds['EXIF Image ImageWidth'].shape == (3,)
187+
188+
189+
def test_read_images_and_persist():
190+
pytest.importorskip('skimage')
191+
urlpath = os.path.join(here, 'data', 'images', '*')
192+
source = ImageSource(urlpath=urlpath, coerce_shape=(256, 256))
193+
source.export('./exported')

0 commit comments

Comments
 (0)