Skip to content

Commit 8fe4b14

Browse files
committed
Adding data release tests for spectra crossid
1 parent 6e74ffa commit 8fe4b14

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

astroquery/sdss/tests/test_sdss_remote.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ...exceptions import TimeoutError
1313

1414
# DR11 is a quasi-internal data release that does not have SkyServer support.
15-
dr_list = (8, 9, 10, 12, 13, 14, 15, 16)
15+
dr_list = (8, 9, 10, 12, 13, 14, 15, 16, 17)
1616

1717

1818
@pytest.mark.remote_data
@@ -175,13 +175,14 @@ def test_query_crossid(self):
175175
assert isinstance(query2, Table)
176176
assert query2['objID'][0] == query1['objID'][0] == query2['objID'][1]
177177

178-
def test_spectro_query_crossid(self):
179-
query1 = sdss.SDSS.query_crossid(
180-
self.coords, specobj_fields=['specObjID', 'z'], cache=False)
181-
query2 = sdss.SDSS.query_crossid(
182-
[self.coords, self.coords],
183-
specobj_fields=['specObjID', 'z'],
184-
cache=False)
178+
@pytest.mark.parametrize("dr", dr_list)
179+
def test_spectro_query_crossid(self, dr):
180+
query1 = sdss.SDSS.query_crossid(self.coords,
181+
specobj_fields=['specObjID', 'z'],
182+
data_release=dr, cache=False)
183+
query2 = sdss.SDSS.query_crossid([self.coords, self.coords],
184+
specobj_fields=['specObjID', 'z'],
185+
data_release=dr, cache=False)
185186
assert isinstance(query1, Table)
186187
assert query1['specObjID'][0] == 845594848269461504
187188

0 commit comments

Comments
 (0)