Skip to content

Commit 015f2cf

Browse files
committed
Remove item-assets extension from v1.1.0 files
1 parent c243f23 commit 015f2cf

File tree

9 files changed

+7
-14
lines changed

9 files changed

+7
-14
lines changed

tests/data-files/catalogs/cbers-partial/CBERS4AWFI/collection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
],
1818
"stac_extensions": [
19-
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
20-
"https://schemas.stacspec.org/v1.0.0-beta.2/extensions/item-assets/json-schema/schema.json"
19+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
2120
],
2221
"providers": [
2322
{

tests/data-files/catalogs/cbers-partial/CBERS4MUX/collection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
],
1818
"stac_extensions": [
19-
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
20-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
19+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
2120
],
2221
"providers": [
2322
{

tests/data-files/catalogs/cbers-partial/CBERS4PAN10M/collection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
],
1818
"stac_extensions": [
19-
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
20-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
19+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
2120
],
2221
"providers": [
2322
{

tests/data-files/catalogs/cbers-partial/CBERS4PAN5M/collection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
],
1818
"stac_extensions": [
19-
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
20-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
19+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json"
2120
],
2221
"providers": [
2322
{

tests/data-files/item-assets/example-landsat8.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"stac_version": "1.1.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
54
"eo"
65
],
76
"type": "Collection",

tests/data-files/table/collection-2.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"description": "desc",
66
"links": [],
77
"stac_extensions": [
8-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
98
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
109
],
1110
"extent": {

tests/data-files/table/collection.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"stac_version": "1.1.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
54
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
65
],
76
"type": "Collection",

tests/data-files/table/table-collection.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"stac_version": "1.1.0",
33
"stac_extensions": [
4-
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
54
"https://stac-extensions.github.io/table/v1.2.0/schema.json"
65
],
76
"type": "Collection",

tests/serialization/test_migrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_migrates_added_extension(self) -> None:
6767
assert view_ext.sun_elevation, 58.8
6868
assert view_ext.off_nadir, 1
6969

70-
def test_migrates_renamed_extension(self) -> None:
70+
def test_migrates_removes_extension(self) -> None:
7171
collection = pystac.Collection.from_file(
7272
TestCases.get_path(
7373
"data-files/examples/0.9.0/extensions/asset/"
@@ -78,7 +78,8 @@ def test_migrates_renamed_extension(self) -> None:
7878
assert ItemAssetsExtension.get_schema_uri() not in collection.stac_extensions
7979
assert not ItemAssetsExtension.has_extension(collection)
8080
assert "item_assets" in collection.extra_fields
81-
assert collection.item_assets
81+
82+
assert collection.stac_extensions == []
8283
assert collection.item_assets["thumbnail"].title == "Thumbnail"
8384

8485
def test_migrates_pre_1_0_0_rc1_stats_summary(self) -> None:

0 commit comments

Comments
 (0)