File tree Expand file tree Collapse file tree 9 files changed +7
-14
lines changed Expand file tree Collapse file tree 9 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments