Skip to content

Commit fb84a65

Browse files
committed
sdss crossid tests with spectro paramas
1 parent 4fb7217 commit fb84a65

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

astroquery/sdss/tests/test_sdss_remote.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,16 @@ def test_query_crossid(self):
174174

175175
assert isinstance(query2, Table)
176176
assert query2['objID'][0] == query1['objID'][0] == query2['objID'][1]
177+
178+
def test_spectro_query_crossid(self):
179+
query1 = sdss.SDSS.query_crossid_async(
180+
self.coords, specobj_fields=['specObjID', 'z'], cache=False)
181+
query2 = sdss.SDSS.query_crossid_async(
182+
[self.coords, self.coords],
183+
specobj_fields=['specObjID', 'z'],
184+
cache=False)
185+
assert isinstance(query1, Table)
186+
assert query1['specObjID'][0] == 845594848269461504
187+
188+
assert isinstance(query2, Table)
189+
assert query2['specObjID'][0] == query2['specObjID'][1] == query1['specObjID'][0]

0 commit comments

Comments
 (0)