Skip to content

Commit 771b080

Browse files
committed
fixed tap initialization in test_get_epic_metadata
1 parent 3e329f3 commit 771b080

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/esa/xmm_newton/tests/test_xmm_newton.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import shutil
1919
from astropy.coordinates import SkyCoord
2020
from astropy.utils.diff import report_diff_values
21+
from astroquery.utils.tap.core import TapPlus
2122

2223
from ..core import XMMNewtonClass
2324
from ..tests.dummy_tap_handler import DummyXMMNewtonTapHandler
@@ -301,6 +302,7 @@ def test_get_epic_images(self):
301302

302303
@pytest.mark.remote_data
303304
def test_get_epic_metadata(self):
305+
tap_url="http://nxsadev.esac.esa.int/tap-server/tap/"
304306
target_name = "4XMM J122934.7+015657"
305307
radius = 0.01
306308
epic_source_table = "xsa.v_epic_source"
@@ -311,7 +313,7 @@ def test_get_epic_metadata(self):
311313
stack_4xmm_column = "epic_stack_cat_equatorial_spoint"
312314
slew_source_table = "xsa.v_slew_source_cat"
313315
slew_source_column = "slew_source_cat_equatorial_spoint"
314-
xsa = XMMNewtonClass()
316+
xsa = XMMNewtonClass(TapPlus(url=tap_url))
315317
epic_source, cat_4xmm, stack_4xmm, slew_source = xsa.get_epic_metadata(target_name=target_name,
316318
radius=radius)
317319
c = SkyCoord.from_name(target_name, parse=True)

0 commit comments

Comments
 (0)