Skip to content

Commit e2fc698

Browse files
committed
TST: adding test for list_collections
1 parent b2de3e1 commit e2fc698

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

astroquery/ipac/irsa/tests/test_irsa_remote.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ def test_list_catalogs(self):
7171
# (at the time of writing there are 933 tables in the list).
7272
assert len(catalogs) > 900
7373

74+
def test_list_collections(self):
75+
collections = Irsa.list_collections()
76+
# Number of available collections may change over time, test only for significant drop.
77+
# (at the time of writing there are 110 collections in the list).
78+
assert len(collections) > 100
79+
assert 'spitzer_seip' in collections['collection']
80+
assert 'wise_allwise' in collections['collection']
81+
7482
def test_tap(self):
7583
query = "SELECT TOP 5 ra,dec FROM cosmos2015"
7684
with pytest.warns(expected_warning=DALOverflowWarning,

0 commit comments

Comments
 (0)