@@ -66,12 +66,19 @@ def test_list_catalogs(self):
6666 # Number of available catalogs may change over time, test only for significant drop.
6767 # (at the time of writing there are 933 tables in the list).
6868 assert len (catalogs ) > 900
69+ assert isinstance (catalogs , dict )
70+
71+ def test_list_catalogs_filter (self ):
72+ spitzer_catalogs = Irsa .list_catalogs (filter = 'spitzer' )
73+
74+ assert len (spitzer_catalogs ) == 142
6975
7076 @pytest .mark .parametrize ('servicetype' , (None , 'sia' , 'ssa' ))
7177 def test_list_collections (self , servicetype ):
7278 collections = Irsa .list_collections (servicetype = servicetype )
7379 # Number of available collections may change over time, test only for significant drop.
7480 # (at the time of writing there are 104 SIA and 35 SSA collections in the list).
81+ assert isinstance (collections , Table )
7582 if servicetype == 'ssa' :
7683 assert len (collections ) > 30
7784 assert 'sofia_exes' in collections ['collection' ]
@@ -80,6 +87,11 @@ def test_list_collections(self, servicetype):
8087 assert 'spitzer_seip' in collections ['collection' ]
8188 assert 'wise_allwise' in collections ['collection' ]
8289
90+ def test_list_collections_filter (self ):
91+ spitzer_collections = Irsa .list_collections (filter = 'spitzer' )
92+
93+ assert len (spitzer_collections ) == 47
94+
8395 def test_tap (self ):
8496 query = "SELECT TOP 5 ra,dec FROM cosmos2015"
8597 with pytest .warns (expected_warning = DALOverflowWarning ,
0 commit comments