Skip to content

Commit

Permalink
Merge pull request #2854 from bsipocz/irsa_box_tap
Browse files Browse the repository at this point in the history
TST: remove skip for BOX search as backend supports it again
  • Loading branch information
bsipocz committed Oct 18, 2023
2 parents c874ec1 + ba515f2 commit 37758c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions astroquery/ipac/irsa/tests/test_irsa_remote.py
Expand Up @@ -51,19 +51,19 @@ def test_query_columns_radius(self):
# assert only selected columns are returned
assert result.colnames == ['ra', 'dec', 'j_m']

@pytest.mark.skip("Upstream TAP doesn't support Box geometry yet")
def test_query_region_box(self):
result = Irsa.query_region(
"00h42m44.330s +41d16m07.50s", catalog='fp_psc', spatial='Box',
width=2 * u.arcmin, cache=False)
"00h42m44.330s +41d16m07.50s", catalog='fp_psc', spatial='Box', width=0.5 * u.arcmin)
assert isinstance(result, Table)
assert len(result) == 24

def test_query_region_polygon(self):
polygon = [(10.1, 10.1), (10.0, 10.1), (10.0, 10.0)]
with pytest.warns(UserWarning, match='Polygon endpoints are being interpreted'):
result = Irsa.query_region("m31", catalog="fp_psc", spatial="Polygon", polygon=polygon)

assert isinstance(result, Table)
assert len(result) == 7

def test_list_catalogs(self):
catalogs = Irsa.list_catalogs()
Expand Down

0 comments on commit 37758c1

Please sign in to comment.