Skip to content

Commit 150f32d

Browse files
jespinosaar“Javier
authored andcommitted
Documentation and pytest.remote_data annotation
1 parent b17a2a5 commit 150f32d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

astroquery/esa/hubble/tests/test_esa_hubble_remote_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import unittest
1717
import os
1818

19+
import pytest
1920
from astropy.tests.helper import remote_data
2021
from requests.models import Response
2122
from astroquery.esa.hubble import ESAHubble
@@ -45,8 +46,7 @@ def remove_last_job():
4546
if len(jobs) > 0:
4647
esa_hubble._tap.remove_jobs(jobs[-1].jobid)
4748

48-
49-
@remote_data
49+
@pytest.mark.remote_data
5050
class TestRemoteData(unittest.TestCase):
5151

5252
temp_file_vot = "/temp.vot"

docs/esa/hubble.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This will download the science files associated to the observation 'J6FL25S4Q' a
4949
5050
>>> from astroquery.esa.hubble import ESAHubble
5151
>>> esahubble = ESAHubble()
52-
>>> esahubble.download_product(observation_id="J6FL25S4Q", product_type="SCIENCE_PRODUCT", filename="science_data_for_J6FL25S4Q.tar")
52+
>>> esahubble.download_product(observation_id="J6FL25S4Q", filename="science_data_for_J6FL25S4Q.tar", product_type="SCIENCE_PRODUCT")
5353
5454
This third case will download the science files associated to the observation 'J6FL25S4Q' in raw calibration level and it will store them in a file called
5555
'science_raw_data_for_J6FL25S4Q.fits.gz', modifying the filename provided to ensure that the extension of the file is correct.
@@ -58,7 +58,7 @@ This third case will download the science files associated to the observation 'J
5858
5959
>>> from astroquery.esa.hubble import ESAHubble
6060
>>> esahubble = ESAHubble()
61-
>>> esahubble.download_product(observation_id="J6FL25S4Q", calibration_level="RAW", product_type="SCIENCE_PRODUCT", filename="science_raw_data_for_J6FL25S4Q")
61+
>>> esahubble.download_product(observation_id="J6FL25S4Q", calibration_level="RAW", filename="science_raw_data_for_J6FL25S4Q", product_type="SCIENCE_PRODUCT")
6262
6363
---------------------------
6464
2. Getting Hubble postcards

0 commit comments

Comments
 (0)