Skip to content

Commit

Permalink
Update testh5io.py to set cache_spec=True
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Oct 21, 2023
1 parent f23ed5c commit 167d7b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pynwb/testing/testh5io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 167d7b2

Please sign in to comment.