3232
3333
3434class TestItemPerformance :
35- @pytest .fixture (scope = "function" ) # type: ignore[misc]
35+ @pytest .fixture (scope = "function" )
3636 def single_href (self ) -> str :
3737 item_href = "https://planetarycomputer.microsoft.com/api/stac/v1/collections/{collections}/items/{ids}" .format (
3838 collections = ITEM_EXAMPLE ["collections" ], ids = ITEM_EXAMPLE ["ids" ]
@@ -62,7 +62,7 @@ def test_single_item_search(
6262
6363
6464class TestItemSearchParams :
65- @pytest .fixture (scope = "function" ) # type: ignore[misc]
65+ @pytest .fixture (scope = "function" )
6666 def sample_client (self ) -> Client :
6767 api_content = read_data_file ("planetary-computer-root.json" , parse_json = True )
6868 return Client .from_dict (api_content )
@@ -451,18 +451,18 @@ def test_sortby(self) -> None:
451451 )
452452
453453 with pytest .raises (Exception ):
454- ItemSearch (url = SEARCH_URL , sortby = 1 ) # type: ignore[arg-type]
454+ ItemSearch (url = SEARCH_URL , sortby = 1 ) # type: ignore
455455
456456 with pytest .raises (Exception ):
457- ItemSearch (url = SEARCH_URL , sortby = [1 ]) # type: ignore[arg-type]
457+ ItemSearch (url = SEARCH_URL , sortby = [1 ]) # type: ignore
458458
459459 def test_fields (self ) -> None :
460460
461461 with pytest .raises (Exception ):
462- ItemSearch (url = SEARCH_URL , fields = 1 ) # type: ignore[arg-type]
462+ ItemSearch (url = SEARCH_URL , fields = 1 ) # type: ignore
463463
464464 with pytest .raises (Exception ):
465- ItemSearch (url = SEARCH_URL , fields = [1 ]) # type: ignore[list-item]
465+ ItemSearch (url = SEARCH_URL , fields = [1 ]) # type: ignore
466466
467467 search = ItemSearch (url = SEARCH_URL , fields = "id,collection,+foo,-bar" )
468468 assert search .get_parameters ()["fields" ] == {
@@ -504,7 +504,7 @@ def test_fields(self) -> None:
504504
505505
506506class TestItemSearch :
507- @pytest .fixture (scope = "function" ) # type: ignore[misc]
507+ @pytest .fixture (scope = "function" )
508508 def astraea_api (self ) -> Client :
509509 api_content = read_data_file ("astraea_api.json" , parse_json = True )
510510 return Client .from_dict (api_content )
@@ -539,7 +539,7 @@ def test_method_params(self) -> None:
539539 assert all (key in params for key in params_in )
540540 assert all (isinstance (params [key ], str ) for key in params_in )
541541
542- @pytest .mark .vcr # type: ignore[misc]
542+ @pytest .mark .vcr
543543 def test_results (self ) -> None :
544544 search = ItemSearch (
545545 url = SEARCH_URL ,
@@ -551,7 +551,7 @@ def test_results(self) -> None:
551551
552552 assert all (isinstance (item , pystac .Item ) for item in results )
553553
554- @pytest .mark .vcr # type: ignore[misc]
554+ @pytest .mark .vcr
555555 def test_ids_results (self ) -> None :
556556 ids = [
557557 "S2B_MSIL2A_20210610T115639_N0212_R066_T33XXG_20210613T185024.SAFE" ,
@@ -566,7 +566,7 @@ def test_ids_results(self) -> None:
566566 assert len (results ) == 1
567567 assert all (item .id in ids for item in results )
568568
569- @pytest .mark .vcr # type: ignore[misc]
569+ @pytest .mark .vcr
570570 def test_datetime_results (self ) -> None :
571571 # Datetime range string
572572 datetime_ = "2019-01-01T00:00:01Z/2019-01-01T00:00:10Z"
@@ -585,7 +585,7 @@ def test_datetime_results(self) -> None:
585585 min_datetime <= item .datetime <= (max_datetime + timedelta (seconds = 1 ))
586586 )
587587
588- @pytest .mark .vcr # type: ignore[misc]
588+ @pytest .mark .vcr
589589 def test_intersects_results (self ) -> None :
590590 # GeoJSON-like dict
591591 intersects_dict = {
@@ -619,7 +619,7 @@ def __geo_interface__(self) -> Dict[str, Any]:
619619 new_results = search .items ()
620620 assert all (isinstance (item , pystac .Item ) for item in new_results )
621621
622- @pytest .mark .vcr # type: ignore[misc]
622+ @pytest .mark .vcr
623623 def test_result_paging (self ) -> None :
624624 search = ItemSearch (
625625 url = SEARCH_URL ,
@@ -635,7 +635,7 @@ def test_result_paging(self) -> None:
635635 assert pages [1 ] != pages [2 ]
636636 assert pages [1 ].items != pages [2 ].items
637637
638- @pytest .mark .vcr # type: ignore[misc]
638+ @pytest .mark .vcr
639639 def test_item_collection (self ) -> None :
640640 search = ItemSearch (
641641 url = SEARCH_URL ,
@@ -648,8 +648,8 @@ def test_item_collection(self) -> None:
648648 assert isinstance (item_collection , pystac .ItemCollection )
649649 assert len (item_collection ) == 20
650650
651- @pytest .mark .vcr # type: ignore[misc]
652- @pytest .mark .parametrize ( # type: ignore[misc]
651+ @pytest .mark .vcr
652+ @pytest .mark .parametrize (
653653 "method, alternative, is_sequence, is_pystac" ,
654654 [
655655 ("get_item_collections" , "pages" , True , True ),
@@ -688,7 +688,7 @@ def test_deprecations(
688688
689689 assert result == expected
690690
691- @pytest .mark .vcr # type: ignore[misc]
691+ @pytest .mark .vcr
692692 def test_items_as_dicts (self ) -> None :
693693 search = ItemSearch (
694694 url = SEARCH_URL ,
@@ -701,7 +701,7 @@ def test_items_as_dicts(self) -> None:
701701
702702
703703class TestItemSearchQuery :
704- @pytest .mark .vcr # type: ignore[misc]
704+ @pytest .mark .vcr
705705 def test_query_shortcut_syntax (self ) -> None :
706706 search = ItemSearch (
707707 url = SEARCH_URL ,
@@ -723,7 +723,7 @@ def test_query_shortcut_syntax(self) -> None:
723723 assert len (items2 ) == 1
724724 assert items1 [0 ].id == items2 [0 ].id
725725
726- @pytest .mark .vcr # type: ignore[misc]
726+ @pytest .mark .vcr
727727 def test_query_json_syntax (self ) -> None :
728728
729729 # with a list of json strs (format of CLI argument to ItemSearch)
0 commit comments