sdss crossid tests with spectro paramas
@@ -174,3 +174,16 @@ class TestSDSSRemote:
assert isinstance(query2, Table)
assert query2['objID'][0] == query1['objID'][0] == query2['objID'][1]
+
+ def test_spectro_query_crossid(self):
+ query1 = sdss.SDSS.query_crossid_async(
+ self.coords, specobj_fields=['specObjID', 'z'], cache=False)
+ query2 = sdss.SDSS.query_crossid_async(
+ [self.coords, self.coords],
+ specobj_fields=['specObjID', 'z'],
+ cache=False)
+ assert isinstance(query1, Table)
+ assert query1['specObjID'][0] == 845594848269461504
+
+ assert isinstance(query2, Table)
+ assert query2['specObjID'][0] == query2['specObjID'][1] == query1['specObjID'][0]
