Skip to content

Commit de3b165

Browse files
authored
Merge pull request #2816 from ManonMarchand/simbad-remote-test
fix simbad region async remote test
2 parents 93267cb + 0ada77a commit de3b165

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

astroquery/simbad/tests/test_simbad_remote.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ def test_query_region_async(self, temp_dir):
103103
simbad.ROW_LIMIT = 100
104104
simbad.cache_location = temp_dir
105105
response = simbad.query_region_async(
106-
ICRS_COORDS_M42, radius=2 * u.deg, equinox=2000.0, epoch='J2000')
107-
108-
assert response is not None
106+
ICRS_COORDS_M42, radius=5 * u.arcsec, equinox=2000.0, epoch='J2000')
107+
# A correct response code
108+
assert response.status_code == 200
109+
# Check that Orion was found
110+
assert "NAME Ori Region" in response.text
109111

110112
@pytest.mark.parametrize("radius", (0.5 * u.arcsec, "0.5s"))
111113
def test_query_region_async_vector(self, temp_dir, radius):

0 commit comments

Comments
 (0)