Skip to content

Commit 900c4ad

Browse files
committed
TST: adding query_ssa test
1 parent 151f791 commit 900c4ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

astroquery/ipac/irsa/tests/test_irsa_remote.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44
import astropy.units as u
5-
from astropy.table import Table
5+
from astropy.table import Table, unique
66
from astropy.coordinates import SkyCoord
77
from astropy.utils.exceptions import AstropyDeprecationWarning
88

@@ -87,3 +87,10 @@ def test_tap(self):
8787
result = Irsa.query_tap(query=query)
8888
assert len(result) == 5
8989
assert result.to_table().colnames == ['ra', 'dec']
90+
91+
def test_ssa(self):
92+
coord = SkyCoord.from_name("Eta Carina")
93+
result = Irsa.query_ssa(pos=coord)
94+
assert len(result) > 260
95+
collections = set(unique(result.to_table(), keys='dataid_collection')['dataid_collection'])
96+
assert {'champ', 'iso_sws', 'sofia_forcast', 'sofia_great', 'spitzer_sha'}.issubset(collections)

0 commit comments

Comments
 (0)