From 167d7b26adafa532eba072def697014028dadcc8 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Sat, 21 Oct 2023 14:15:46 -0700 Subject: [PATCH] Update testh5io.py to set cache_spec=True --- src/pynwb/testing/testh5io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pynwb/testing/testh5io.py b/src/pynwb/testing/testh5io.py index b8055db0d..6b0bc3ae9 100644 --- a/src/pynwb/testing/testh5io.py +++ b/src/pynwb/testing/testh5io.py @@ -79,7 +79,7 @@ def test_roundtrip_export(self): self.assertIs(self.read_exported_nwbfile.objects[self.container.object_id], self.read_container) self.assertContainerEqual(self.read_container, self.container, ignore_hdmf_attrs=True) - def roundtripContainer(self, cache_spec=False): + def roundtripContainer(self, cache_spec=True): """Add the Container to an NWBFile, write it to file, read the file, and return the Container from the file. """ session_description = 'a file to test writing and reading a %s' % self.container_type @@ -116,7 +116,7 @@ def roundtripContainer(self, cache_spec=False): self.reader = None raise e - def roundtripExportContainer(self, cache_spec=False): + def roundtripExportContainer(self, cache_spec=True): """ Add the test Container to an NWBFile, write it to file, read the file, export the read NWBFile to another file, and return the test Container from the file @@ -290,7 +290,7 @@ def test_roundtrip_export(self): self.assertIs(self.read_exported_nwbfile.objects[self.container.object_id], self.read_container) self.assertContainerEqual(self.read_container, self.container, ignore_hdmf_attrs=True) - def roundtripContainer(self, cache_spec=False): + def roundtripContainer(self, cache_spec=True): """Write the file, validate the file, read the file, and return the Container from the file. """ @@ -321,7 +321,7 @@ def roundtripContainer(self, cache_spec=False): self.reader = None raise e - def roundtripExportContainer(self, cache_spec=False): + def roundtripExportContainer(self, cache_spec=True): """ Roundtrip the container, then export the read NWBFile to a new file, validate the files, and return the test Container from the file.