Skip to content

Commit 970bcd8

Browse files
committed
fix test for specific error message
1 parent e1fb28e commit 970bcd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ def test_build_metadata_v3(option: Literal["array", "group", "invalid"]) -> None
22202220
metadata_dict = GroupMetadata(zarr_format=3).to_dict()
22212221
metadata_dict.pop("node_type")
22222222
# TODO: fix the error message
2223-
msg = r"Invalid value for 'node_type'. Expected 'array' or 'group'. Got nothing \(the key is missing\)."
2223+
msg = "Required key 'node_type' is missing from the provided metadata document."
22242224
with pytest.raises(MetadataValidationError, match=msg):
22252225
_build_metadata_v3(metadata_dict)
22262226

0 commit comments

Comments
 (0)