From ecde7c53004a78692882554e0943b6881a061483 Mon Sep 17 00:00:00 2001 From: Sam Bianco Date: Tue, 27 Aug 2024 09:41:17 -0400 Subject: [PATCH] Fix failing test --- astroquery/mast/tests/test_mast_remote.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/astroquery/mast/tests/test_mast_remote.py b/astroquery/mast/tests/test_mast_remote.py index e36e83cfe7..c434882405 100644 --- a/astroquery/mast/tests/test_mast_remote.py +++ b/astroquery/mast/tests/test_mast_remote.py @@ -686,19 +686,9 @@ def check_result(result, row, exp_values): radius=0.01*u.deg, catalog="panstarrs", table="mean") row = np.where((result['objName'] == 'PSO J322.4622+12.1920') & (result['yFlags'] == 16777496)) - second_id = result[1]['objID'] assert isinstance(result, Table) np.testing.assert_allclose(result[row]['distance'], 0.039381703406789904) - result = Catalogs.query_region("322.49324 12.16683", - radius=0.01*u.deg, catalog="panstarrs", - table="mean", - pagesize=1, - page=2) - assert isinstance(result, Table) - assert len(result) == 1 - assert second_id == result[0]['objID'] - result = Catalogs.query_region("158.47924 -7.30962", radius=in_radius, catalog="Galex") @@ -711,9 +701,19 @@ def check_result(result, row, exp_values): radius=in_radius, catalog="tic") row = np.where(result['ID'] == '841736289') + second_id = result[1]['ID'] check_result(result, row, {'gaiaqflag': 1}) np.testing.assert_allclose(result[row]['RA_orig'], 158.475246786483) + result = Catalogs.query_region("158.47924 -7.30962", + radius=in_radius, + catalog="tic", + pagesize=1, + page=2) + assert isinstance(result, Table) + assert len(result) == 1 + assert second_id == result[0]['ID'] + result = Catalogs.query_region("158.47924 -7.30962", radius=in_radius, catalog="ctl")