@@ -1736,9 +1736,12 @@ def test_bands_from_stac_asset(self, data, expected):
17361736 ["Deriving band listing from unordered `item_assets`" ],
17371737 ),
17381738 (
1739- # STAC 1.0, with "eo" extension is used for band metadata, but not declared
1739+ # STAC 1.0, with "eo" extension used for band metadata, but not declared
17401740 StacDummyBuilder .collection (
17411741 stac_version = "1.0.0" ,
1742+ stac_extensions = [
1743+ "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json" ,
1744+ ],
17421745 item_assets = {
17431746 "asset1" : {"eo:bands" : [{"name" : "B03" }, {"name" : "B02" }]},
17441747 "asset2" : {"eo:bands" : [{"name" : "B04" }]},
@@ -1763,7 +1766,7 @@ def test_bands_from_stac_asset(self, data, expected):
17631766 ["Deriving band listing from unordered `item_assets`" ],
17641767 ),
17651768 (
1766- # STAC 1.1 Collection with "eo" extension
1769+ # STAC 1.1 Collection with "eo" extension based band metadata
17671770 StacDummyBuilder .collection (
17681771 stac_version = "1.1.0" ,
17691772 stac_extensions = [
@@ -1784,7 +1787,9 @@ def test_bands_from_stac_collection_with_item_assets(
17841787 ):
17851788 collection = pystac .Collection .from_dict (stac_data )
17861789 assert _StacMetadataParser ().bands_from_stac_collection (collection ).band_names () == expected_bands
1787- assert caplog .messages == expected_warnings
1790+
1791+ if _PYSTAC_1_9_EXTENSION_INTERFACE :
1792+ assert caplog .messages == expected_warnings
17881793
17891794 @pytest .mark .parametrize (
17901795 ["path" , "expected" ],
0 commit comments