diff --git a/tests/data-files/catalogs/cbers-partial/CBERS4AWFI/collection.json b/tests/data-files/catalogs/cbers-partial/CBERS4AWFI/collection.json index fd61437e2..32adb9d65 100644 --- a/tests/data-files/catalogs/cbers-partial/CBERS4AWFI/collection.json +++ b/tests/data-files/catalogs/cbers-partial/CBERS4AWFI/collection.json @@ -16,8 +16,7 @@ } ], "stac_extensions": [ - "https://stac-extensions.github.io/eo/v1.1.0/schema.json", - "https://schemas.stacspec.org/v1.0.0-beta.2/extensions/item-assets/json-schema/schema.json" + "https://stac-extensions.github.io/eo/v1.1.0/schema.json" ], "providers": [ { diff --git a/tests/data-files/catalogs/cbers-partial/CBERS4MUX/collection.json b/tests/data-files/catalogs/cbers-partial/CBERS4MUX/collection.json index 2139aac93..ce858a261 100644 --- a/tests/data-files/catalogs/cbers-partial/CBERS4MUX/collection.json +++ b/tests/data-files/catalogs/cbers-partial/CBERS4MUX/collection.json @@ -16,8 +16,7 @@ } ], "stac_extensions": [ - "https://stac-extensions.github.io/eo/v1.1.0/schema.json", - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json" + "https://stac-extensions.github.io/eo/v1.1.0/schema.json" ], "providers": [ { diff --git a/tests/data-files/catalogs/cbers-partial/CBERS4PAN10M/collection.json b/tests/data-files/catalogs/cbers-partial/CBERS4PAN10M/collection.json index d33eef2cf..972e5aab3 100644 --- a/tests/data-files/catalogs/cbers-partial/CBERS4PAN10M/collection.json +++ b/tests/data-files/catalogs/cbers-partial/CBERS4PAN10M/collection.json @@ -16,8 +16,7 @@ } ], "stac_extensions": [ - "https://stac-extensions.github.io/eo/v1.1.0/schema.json", - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json" + "https://stac-extensions.github.io/eo/v1.1.0/schema.json" ], "providers": [ { diff --git a/tests/data-files/catalogs/cbers-partial/CBERS4PAN5M/collection.json b/tests/data-files/catalogs/cbers-partial/CBERS4PAN5M/collection.json index e88f8bb1d..7694f1e8a 100644 --- a/tests/data-files/catalogs/cbers-partial/CBERS4PAN5M/collection.json +++ b/tests/data-files/catalogs/cbers-partial/CBERS4PAN5M/collection.json @@ -16,8 +16,7 @@ } ], "stac_extensions": [ - "https://stac-extensions.github.io/eo/v1.1.0/schema.json", - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json" + "https://stac-extensions.github.io/eo/v1.1.0/schema.json" ], "providers": [ { diff --git a/tests/data-files/item-assets/example-landsat8.json b/tests/data-files/item-assets/example-landsat8.json index 1390bfa7e..237f3bb92 100644 --- a/tests/data-files/item-assets/example-landsat8.json +++ b/tests/data-files/item-assets/example-landsat8.json @@ -1,7 +1,6 @@ { "stac_version": "1.1.0", "stac_extensions": [ - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json", "eo" ], "type": "Collection", diff --git a/tests/data-files/table/collection-2.json b/tests/data-files/table/collection-2.json index 39bbf5912..fcae3b117 100644 --- a/tests/data-files/table/collection-2.json +++ b/tests/data-files/table/collection-2.json @@ -5,7 +5,6 @@ "description": "desc", "links": [], "stac_extensions": [ - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json", "https://stac-extensions.github.io/table/v1.2.0/schema.json" ], "extent": { diff --git a/tests/data-files/table/collection.json b/tests/data-files/table/collection.json index 1d0006b29..6e55273cc 100644 --- a/tests/data-files/table/collection.json +++ b/tests/data-files/table/collection.json @@ -1,7 +1,6 @@ { "stac_version": "1.1.0", "stac_extensions": [ - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json", "https://stac-extensions.github.io/table/v1.2.0/schema.json" ], "type": "Collection", diff --git a/tests/data-files/table/table-collection.json b/tests/data-files/table/table-collection.json index 564d01bd6..e0877c93d 100644 --- a/tests/data-files/table/table-collection.json +++ b/tests/data-files/table/table-collection.json @@ -1,7 +1,6 @@ { "stac_version": "1.1.0", "stac_extensions": [ - "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json", "https://stac-extensions.github.io/table/v1.2.0/schema.json" ], "type": "Collection", diff --git a/tests/serialization/test_migrate.py b/tests/serialization/test_migrate.py index b6346527e..ec1c59c01 100644 --- a/tests/serialization/test_migrate.py +++ b/tests/serialization/test_migrate.py @@ -67,7 +67,7 @@ def test_migrates_added_extension(self) -> None: assert view_ext.sun_elevation, 58.8 assert view_ext.off_nadir, 1 - def test_migrates_renamed_extension(self) -> None: + def test_migrates_removes_extension(self) -> None: collection = pystac.Collection.from_file( TestCases.get_path( "data-files/examples/0.9.0/extensions/asset/" @@ -78,7 +78,8 @@ def test_migrates_renamed_extension(self) -> None: assert ItemAssetsExtension.get_schema_uri() not in collection.stac_extensions assert not ItemAssetsExtension.has_extension(collection) assert "item_assets" in collection.extra_fields - assert collection.item_assets + + assert collection.stac_extensions == [] assert collection.item_assets["thumbnail"].title == "Thumbnail" def test_migrates_pre_1_0_0_rc1_stats_summary(self) -> None: