Skip to content

Commit

Permalink
Merge pull request #3081 from imbasimba/jwst-download-volume
Browse files Browse the repository at this point in the history
Reduced download volume for ESASky JWST tests
  • Loading branch information
bsipocz authored Aug 9, 2024
2 parents 515928d + 65fc1af commit dcf0405
Showing 1 changed file with 11 additions and 2 deletions.
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

0 comments on commit dcf0405

Please sign in to comment.