Skip to content

Commit

Permalink
update tests for tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Mar 20, 2024
1 parent fd0c19a commit b5e6ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/v04/test_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_imagelabel(version: Literal["0.4"] | None):
model = ImageLabel(colors=[color], version=version)
dumped = model.model_dump()

assert dumped["colors"] == [color.model_dump()]
assert dumped["colors"] == (color.model_dump(),)
# check that if the version is None, then we didn't write it out
if version == "0.4":
assert dumped["version"] == NGFF_VERSION
Expand Down
2 changes: 1 addition & 1 deletion tests/v04/test_multiscales.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def test_from_arrays(
assert group.attributes.multiscales[0].type == type
assert group.attributes.multiscales[0].metadata == metadata
assert group.attributes.multiscales[0].coordinateTransformations is None
assert group.attributes.multiscales[0].axes == axes
assert group.attributes.multiscales[0].axes == tuple(axes)
for idx, array in enumerate(arrays):
array_model: ArraySpec = group_flat["/" + paths[idx]]
assert array_model.order == order_expected
Expand Down

0 comments on commit b5e6ba9

Please sign in to comment.