Skip to content

Commit

Permalink
adjust test asset to be more adaptable to future schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 7, 2024
1 parent 282fc4a commit bcfb82a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def test_mlm_no_undefined_prefixed_field_item_properties(
with pytest.raises(pystac.errors.STACValidationError) as exc:
mlm_item = pystac.Item.from_dict(mlm_data)
pystac.validation.validate(mlm_item, validator=mlm_validator)
assert exc.value.source[0].validator_value == {"required": ["mlm:artifact_type"]}
assert "mlm:artifact_type" in str(exc.value.source[0].validator_value)
assert exc.value.source[0].schema["description"] == "Fields that are disallowed under the Item properties."


@pytest.mark.parametrize(
Expand Down

0 comments on commit bcfb82a

Please sign in to comment.