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

Reduced download volume for ESASky JWST tests #3081

Merged
merged 3 commits into from
Aug 9, 2024
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
13 changes: 11 additions & 2 deletions astroquery/esasky/tests/test_esasky_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def test_esasky_query_object_maps(self):

@pytest.mark.bigdata
@pytest.mark.parametrize("mission", ['XMM', 'Chandra', 'XMM-OM-OPTICAL',
'ISO-IR', 'Herschel', 'JWST-MID-IR',
'JWST-NEAR-IR', 'Spitzer'])
'ISO-IR', 'Herschel', 'Spitzer'])
def test_esasky_get_images(self, tmp_path, mission):
result = ESASky.get_images(position="M51", missions=mission, download_dir=tmp_path)
assert tmp_path.stat().st_size
Expand All @@ -125,6 +124,16 @@ def test_esasky_get_images(self, tmp_path, mission):
for hdu_list in result[mission.upper()]:
hdu_list.close()

@pytest.mark.bigdata
@pytest.mark.parametrize('mission, position',
zip(['JWST-MID-IR', 'JWST-NEAR-IR'],
['340.50123388127435 -69.17904779241904', '225.6864099965157 -3.0315781490149467']))
def test_esasky_get_images_jwst(self, tmp_path, mission, position):
result = ESASky.get_images(position=position, missions=mission, download_dir=tmp_path)
assert tmp_path.stat().st_size
for hdu_list in result[mission.upper()]:
hdu_list.close()

@pytest.mark.bigdata
def test_esasky_get_images_hst(self, tmp_path):
ESASky.get_images(position="M11", radius="2.1 deg", missions="HST-UV",
Expand Down