From 224574fb8145aefafc9fee9976a24672df9f5a62 Mon Sep 17 00:00:00 2001 From: oruebel Date: Mon, 15 Jan 2024 22:44:01 -0800 Subject: [PATCH] Add unit test using maxshape with None values in HDF5 --- tests/unit/test_io_convert.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/test_io_convert.py b/tests/unit/test_io_convert.py index b7f119a2..0f320b95 100644 --- a/tests/unit/test_io_convert.py +++ b/tests/unit/test_io_convert.py @@ -868,6 +868,12 @@ def __get_data_array(self, foo_container): """For a container created by __roundtrip_data return the data array""" return foo_container.buckets['bucket1'].foos['foo1'].my_data + def test_maxshape(self): + """test when maxshape is set for the dataset""" + data = H5DataIO(data=list(range(5)), maxshape=(None,)) + self.__roundtrip_data(data=data) + self.assertContainerEqual(self.out_container, self.read_container, ignore_hdmf_attrs=True) + def test_nofilters(self): """basic test that export without any options specified is working as expected""" data = list(range(5))