diff --git a/api/test/unit/models/test_media.py b/api/test/unit/models/test_media.py index 6d7d3b00e67..85a9ab50d78 100644 --- a/api/test/unit/models/test_media.py +++ b/api/test/unit/models/test_media.py @@ -39,18 +39,14 @@ def test_attribution_handles_missing_title_or_creator( ) for field in fields: setattr(obj, field, field_values[field]) + setattr( + obj, + "meta_data", + {"license_url": "https://creativecommons.org/licenses/by/3.0/"}, + ) assert attribution in obj.attribution assert ( "To view a copy of this license, " "visit https://creativecommons.org/licenses/by/3.0/." ) in obj.attribution - - -@media_type_params -def test_license_url_is_generated_if_missing(media_type, media_model): - obj = media_model( - license="by", - license_version="3.0", - ) - assert obj.license_url is not None