Skip to content

Commit dcf0405

Browse files
authored
Merge pull request #3081 from imbasimba/jwst-download-volume
Reduced download volume for ESASky JWST tests
2 parents 515928d + 65fc1af commit dcf0405

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

astroquery/esasky/tests/test_esasky_remote.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def test_esasky_query_object_maps(self):
115115

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

127+
@pytest.mark.bigdata
128+
@pytest.mark.parametrize('mission, position',
129+
zip(['JWST-MID-IR', 'JWST-NEAR-IR'],
130+
['340.50123388127435 -69.17904779241904', '225.6864099965157 -3.0315781490149467']))
131+
def test_esasky_get_images_jwst(self, tmp_path, mission, position):
132+
result = ESASky.get_images(position=position, missions=mission, download_dir=tmp_path)
133+
assert tmp_path.stat().st_size
134+
for hdu_list in result[mission.upper()]:
135+
hdu_list.close()
136+
128137
@pytest.mark.bigdata
129138
def test_esasky_get_images_hst(self, tmp_path):
130139
ESASky.get_images(position="M11", radius="2.1 deg", missions="HST-UV",

0 commit comments

Comments
 (0)