Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: remove skip for BOX search as backend supports it again #2854

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions astroquery/ipac/irsa/tests/test_irsa_remote.py
Original file line number Diff line number Diff line change
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