Skip to content

Commit

Permalink
Add 'type' to metadata required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Jun 20, 2024
1 parent 8393e4f commit 6496560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_unit/test_sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def validate_metadata(metadata: dict[str, dict]) -> None:
"""Assert that the metadata is in the expected format."""
metadata_fields = [
"sha256sum",
"type",
"source_software",
"fps",
"species",
Expand All @@ -61,7 +62,7 @@ def validate_metadata(metadata: dict[str, dict]) -> None:
set(val.keys()) == set(metadata_fields) for val in metadata.values()
), f"Found issues with the names of medatada fields. {check_yaml_msg}"

# check that metadata keys (pose file names) are unique
# check that metadata keys (file names) are unique
assert len(metadata.keys()) == len(set(metadata.keys()))

# check that the first 2 fields are present and are strings
Expand Down

0 comments on commit 6496560

Please sign in to comment.