Skip to content

Commit 8b9da2b

Browse files
syed-gilanibsipocz
authored andcommitted
fixed doc string and added additional assertins in test
1 parent 14587a6 commit 8b9da2b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

astroquery/mast/missions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def query_region_async(self, coordinates, radius=3*u.arcmin, **kwargs):
7272
Default 3 degrees.
7373
The string must be parsable by `~astropy.coordinates.Angle`. The
7474
appropriate `~astropy.units.Quantity` object from
75-
`~astropy.units` may also be used. Defaults to 0.2 deg.
75+
`~astropy.units` may also be used. Defaults to 3 arcminutes.
7676
**kwargs
7777
Other mission-specific keyword args.
7878
These can be found at the following link
@@ -108,7 +108,7 @@ def query_region_async(self, coordinates, radius=3*u.arcmin, **kwargs):
108108
@class_or_instance
109109
def query_criteria_async(self, **criteria):
110110
"""
111-
Given an set of filters, returns a list of catalog entries.
111+
Given a set of search criteria, returns a list of mission metadata.
112112
113113
Parameters
114114
----------
@@ -168,7 +168,7 @@ def query_object_async(self, objectname, radius=3*u.arcmin, **kwargs):
168168
Default 3 arcmin.
169169
The string must be parsable by `~astropy.coordinates.Angle`.
170170
The appropriate `~astropy.units.Quantity` object from
171-
`~astropy.units` may also be used. Defaults to 0.2 deg.
171+
`~astropy.units` may also be used. Defaults to 3 arcminutes.
172172
**kwargs
173173
Mission-specific keyword args.
174174
These can be found in the `service documentation <https://mast.stsci.edu/api/v0/_services.html>`__.

astroquery/mast/tests/test_mast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,13 @@ def test_missions_query_object_async(patch_post):
192192
def test_missions_query_object(patch_post):
193193
result = mast.MastMissions.query_object("M101", radius=".002 deg")
194194
assert isinstance(result, Table)
195+
assert len(result) > 0
195196

196197

197198
def test_missions_query_region(patch_post):
198199
result = mast.MastMissions.query_region(regionCoords, radius=0.002 * u.deg)
199200
assert isinstance(result, Table)
201+
assert len(result) > 0
200202

201203

202204
def test_missions_query_criteria_async(patch_post):

0 commit comments

Comments
 (0)