Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Sep 27, 2023
1 parent 8899b77 commit b29a691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/unit/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def foo_ref_attr(self, value):
raise ValueError("can't reset foo_ref_attr attribute")


def get_foo_buildmanager():
def get_foo_buildmanager(dtype="int"):
"""
Get a BuildManager (and create all ObjectMappers) for a foofile
:return:
Expand All @@ -219,7 +219,7 @@ def get_foo_buildmanager():
datasets=[
DatasetSpec(
"an example dataset",
"text",
dtype,
name="my_data",
attributes=[AttributeSpec("attr2", "an example integer attribute", "int")],
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_io_hdf5_h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def test_roundtrip_TermSetWrapper_dataset(self):
foobucket = FooBucket('bucket1', [foo])
foofile = FooFile(buckets=[foobucket])

with HDF5IO(self.path, manager=get_foo_buildmanager(), mode='w', herd_path='./HERD.zip') as io:
with HDF5IO(self.path, manager=get_foo_buildmanager("text"), mode='w', herd_path='./HERD.zip') as io:
io.write(foofile)

with HDF5IO(self.path, manager=self.manager, mode='r') as io:
Expand Down

0 comments on commit b29a691

Please sign in to comment.