@@ -66,12 +66,19 @@ def test_list_catalogs(self):
66
66
# Number of available catalogs may change over time, test only for significant drop.
67
67
# (at the time of writing there are 933 tables in the list).
68
68
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
69
75
70
76
@pytest .mark .parametrize ('servicetype' , (None , 'sia' , 'ssa' ))
71
77
def test_list_collections (self , servicetype ):
72
78
collections = Irsa .list_collections (servicetype = servicetype )
73
79
# Number of available collections may change over time, test only for significant drop.
74
80
# (at the time of writing there are 104 SIA and 35 SSA collections in the list).
81
+ assert isinstance (collections , Table )
75
82
if servicetype == 'ssa' :
76
83
assert len (collections ) > 30
77
84
assert 'sofia_exes' in collections ['collection' ]
@@ -80,6 +87,11 @@ def test_list_collections(self, servicetype):
80
87
assert 'spitzer_seip' in collections ['collection' ]
81
88
assert 'wise_allwise' in collections ['collection' ]
82
89
90
+ def test_list_collections_filter (self ):
91
+ spitzer_collections = Irsa .list_collections (filter = 'spitzer' )
92
+
93
+ assert len (spitzer_collections ) == 47
94
+
83
95
def test_tap (self ):
84
96
query = "SELECT TOP 5 ra,dec FROM cosmos2015"
85
97
with pytest .warns (expected_warning = DALOverflowWarning ,
0 commit comments