Skip to content

Commit 3e94405

Browse files
committed
array-like cutout sizes added to test_tesscut_timeout_param
1 parent 1142959 commit 3e94405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

astroquery/mast/tests/test_mast_remote.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from astroquery import mast
1616

1717
from ..utils import ResolverError
18-
from ...exceptions import (InputWarning, InvalidQueryError, MaxResultsWarning,
19-
NoResultsWarning)
18+
from ...exceptions import (InputWarning, InvalidQueryError, LargeQueryWarning,
19+
MaxResultsWarning, NoResultsWarning)
2020

2121

2222
OBSID = '1647157'
@@ -1021,9 +1021,9 @@ def test_tesscut_get_cutouts_mt(self):
10211021
moving_target=True)
10221022
assert error_tica_mt in str(error_msg.value)
10231023

1024-
@pytest.mark.xfail(raises=InputWarning)
1024+
@pytest.mark.xfail(raises=LargeQueryWarning)
10251025
@pytest.mark.parametrize("product", ["tica", "spoc"])
1026-
@pytest.mark.parametrize("size", [31, 0.2 * u.deg, 5000 * u.arcsec, 20 * u.arcmin])
1026+
@pytest.mark.parametrize("size", [31, [5, 60], 0.2 * u.deg, [0.1 * u.deg, 0.2 * u.deg], 5000 * u.arcsec, 20 * u.arcmin])
10271027
def test_tesscut_timeout_param(self, product, size):
10281028

10291029
# Check that a warning comes up when cutout size too big

0 commit comments

Comments
 (0)