We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1dbd5f commit ff1cdd6Copy full SHA for ff1cdd6
astroquery/mpc/tests/test_mpc.py
@@ -64,7 +64,7 @@
64
from astropy.coordinates import EarthLocation, Angle
65
from astropy.time import Time
66
67
-from ...exceptions import EmptyResponseError, InvalidQueryError
+from ...exceptions import EmptyResponseError, InvalidQueryError, NoResultsWarning
68
from ... import mpc
69
from astroquery.utils.mocks import MockResponse
70
from requests import Request
@@ -190,7 +190,7 @@ def test_get_ephemeris_Moon_phase_and_Uncertainty(patch_post):
190
191
192
def test_get_ephemeris_by_name_fail(patch_post):
193
- with pytest.raises(EmptyResponseError):
+ with pytest.raises(NoResultsWarning):
194
mpc.core.MPC.get_ephemeris('340P', location='G37')
195
196
0 commit comments