@@ -115,8 +115,7 @@ def test_esasky_query_object_maps(self):
115
115
116
116
@pytest .mark .bigdata
117
117
@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' ])
120
119
def test_esasky_get_images (self , tmp_path , mission ):
121
120
result = ESASky .get_images (position = "M51" , missions = mission , download_dir = tmp_path )
122
121
assert tmp_path .stat ().st_size
@@ -125,6 +124,16 @@ def test_esasky_get_images(self, tmp_path, mission):
125
124
for hdu_list in result [mission .upper ()]:
126
125
hdu_list .close ()
127
126
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
+
128
137
@pytest .mark .bigdata
129
138
def test_esasky_get_images_hst (self , tmp_path ):
130
139
ESASky .get_images (position = "M11" , radius = "2.1 deg" , missions = "HST-UV" ,
0 commit comments