@@ -72,14 +72,26 @@ def test_list_columns(self):
72
72
def test_list_catalogs (self ):
73
73
catalogs = Irsa .list_catalogs ()
74
74
# Number of available catalogs may change over time, test only for significant drop.
75
- # (at the time of writing there are 933 tables in the list).
76
- assert len (catalogs ) > 900
75
+ # (at the time of writing there are 645 tables in the list).
76
+ assert len (catalogs ) > 640
77
77
assert isinstance (catalogs , dict )
78
78
79
+ catalogs_full = Irsa .list_catalogs (full = True )
80
+ assert isinstance (catalogs_full , Table )
81
+
79
82
def test_list_catalogs_filter (self ):
80
- spitzer_catalogs = Irsa .list_catalogs (filter = 'spitzer' )
83
+ spitzer_catalogs = Irsa .list_catalogs (filter = 'allwise' )
84
+
85
+ assert len (spitzer_catalogs ) == 13
86
+
87
+ def test_list_catalogs_metadata (self ):
88
+ catalogs = Irsa .list_catalogs (filter = 'wise' )
89
+ all_tables = Irsa .list_catalogs (filter = 'wise' , include_metadata_tables = True )
90
+
91
+ assert len (catalogs ) < len (all_tables )
81
92
82
- assert len (spitzer_catalogs ) == 142
93
+ assert 'wise.wise_allwise_p3am_cdd' not in catalogs
94
+ assert 'wise.wise_allwise_p3am_cdd' in all_tables
83
95
84
96
@pytest .mark .parametrize ('servicetype' , (None , 'sia' , 'ssa' ))
85
97
def test_list_collections (self , servicetype ):
0 commit comments