1111
1212def test_copy (tmp_path : Path , planet_disaster : pystac .Collection ) -> None :
1313 collection_path = planet_disaster .get_self_href ()
14- item_ids = set ([i .id for i in planet_disaster .get_all_items ( )])
14+ item_ids = set ([i .id for i in planet_disaster .get_items ( recursive = True )])
1515
1616 runner = CliRunner ()
1717 result = runner .invoke (cli , ["copy" , collection_path , str (tmp_path )])
1818 assert result .exit_code == 0
1919
2020 copy_cat = pystac .read_file (tmp_path / "collection.json" )
21- copy_cat_ids = set ([i .id for i in copy_cat .get_all_items ( )])
21+ copy_cat_ids = set ([i .id for i in copy_cat .get_items ( recursive = True )])
2222
2323 assert copy_cat_ids == item_ids
2424
@@ -34,7 +34,7 @@ def test_copy_to_relative(tmp_path: Path, planet_disaster: pystac.Collection) ->
3434 assert result .exit_code == 0
3535
3636 dst_cat = pystac .read_file (dst_dir / "collection.json" )
37- for item in dst_cat .get_all_items ( ):
37+ for item in dst_cat .get_items ( recursive = True ):
3838 item_href = item .get_self_href ()
3939 for asset in item .assets .values ():
4040 href = asset .href
@@ -96,7 +96,7 @@ def test_move_assets(tmp_path: Path, planet_disaster: pystac.Collection) -> None
9696 assert result .exit_code == 0
9797
9898 cat2 = pystac .read_file (cat_href )
99- for item in cat2 .get_all_items ( ):
99+ for item in cat2 .get_items ( recursive = True ):
100100 item_href = item .get_self_href ()
101101 for asset in item .assets .values ():
102102 href = asset .href
@@ -121,7 +121,7 @@ def test_copy_assets(tmp_path: Path, planet_disaster: pystac.Collection) -> None
121121 assert result .exit_code == 0
122122
123123 cat2 = pystac .read_file (tmp_path / "collection.json" )
124- for item in cat2 .get_all_items ( ):
124+ for item in cat2 .get_items ( recursive = True ):
125125 assert all (v .href .startswith ("./" ) for v in item .assets .values ())
126126
127127 assert (
0 commit comments