File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 18
18
- Expand support for previous extension schema URIs ([ #1091 ] ( https://github.com/stac-utils/pystac/pull/1091 ) )
19
19
- Use ` pyproject.toml ` instead of ` setup.py ` ([ #1100 ] ( https://github.com/stac-utils/pystac/pull/1100 ) )
20
20
- ` DefaultStacIO ` now raises an error if it tries to write to a non-local url ([ #1107 ] ( https://github.com/stac-utils/pystac/pull/1107 ) )
21
+ - Allow instantiation of pystac objects even with ` "stac_extensions": null ` ([ #1109 ] ( https://github.com/stac-utils/pystac/pull/1109 ) )
21
22
22
23
### Deprecated
23
24
Original file line number Diff line number Diff line change @@ -99,3 +99,13 @@ def test_should_raise_exception_when_passing_invalid_extension_object(
99
99
match = r"^Item Assets extension does not apply to type 'object'$" ,
100
100
):
101
101
ItemAssetsExtension .ext (object ()) # type: ignore
102
+
103
+
104
+ def test_migrate_works_even_if_stac_extensions_is_null (
105
+ test_case_1_catalog : pystac .Catalog ,
106
+ ) -> None :
107
+ collection = list (test_case_1_catalog .get_all_collections ())[0 ]
108
+ collection_dict = collection .to_dict ()
109
+ collection_dict ["stac_extensions" ] = None
110
+
111
+ pystac .Collection .from_dict (collection_dict , migrate = True )
You can’t perform that action at this time.
0 commit comments