File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,5 @@ def test_extension_not_implemented(self) -> None:
279
279
_ = EOExtension .ext (asset )
280
280
281
281
# Should succeed if Asset has no owner
282
- stac_io = pystac .StacIO .default ()
283
- item_dict = stac_io .read_json (self .LANDSAT_EXAMPLE_URI )
284
- asset_dict = item_dict ["assets" ]["B11" ]
285
- ownerless_asset = pystac .Asset .from_dict (asset_dict )
282
+ ownerless_asset = pystac .Asset .from_dict (asset .to_dict ())
286
283
_ = EOExtension .ext (ownerless_asset )
Original file line number Diff line number Diff line change @@ -205,9 +205,6 @@ def test_extension_not_implemented(self) -> None:
205
205
_ = FileExtension .ext (asset )
206
206
207
207
# Should succeed if Asset has no owner
208
- stac_io = pystac .StacIO .default ()
209
- item_dict = stac_io .read_json (self .FILE_ITEM_EXAMPLE_URI )
210
- asset_dict = item_dict ["assets" ]["measurement" ]
211
- ownerless_asset = pystac .Asset .from_dict (asset_dict )
208
+ ownerless_asset = pystac .Asset .from_dict (asset .to_dict ())
212
209
213
210
_ = FileExtension .ext (ownerless_asset )
You can’t perform that action at this time.
0 commit comments