Skip to content

Commit d2d6529

Browse files
authored
Merge pull request #2650 from imbasimba/jwst
Fixed ESASky tests using old mission identifier for JWST
2 parents 1446f1a + 633af08 commit d2d6529

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

astroquery/esasky/tests/test_esasky_remote.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_esasky_query_object_maps(self):
112112

113113
@pytest.mark.bigdata
114114
@pytest.mark.parametrize("mission", ['XMM', 'Chandra', 'XMM-OM-OPTICAL',
115-
'ISO-IR', 'Herschel', 'JWST_Mid-IR',
116-
'JWST_Near-IR', 'Spitzer'])
115+
'ISO-IR', 'Herschel', 'JWST-MID-IR',
116+
'JWST-NEAR-IR', 'Spitzer'])
117117
def test_esasky_get_images(self, tmp_path, mission):
118118
ESASky.get_images(position="M51", missions=mission, download_dir=tmp_path)
119119

@@ -161,9 +161,9 @@ def test_esasky_query_object_spectra(self):
161161
"HST-OPTICAL", "ISO-IR", "Herschel"])
162162
def test_esasky_get_spectra(self, tmp_path, mission):
163163
# Not all missions are tested here:
164-
# - HST-IR, JWST_Mid-IR and CHEOPS have no data
164+
# - HST-IR, JWST-MID-IR and CHEOPS have no data
165165
# - LAMOST does not support download
166-
# - JWST_Near-IR returns a zip file with many fits files in it, unsupported
166+
# - JWST-NEAR-IR returns a zip file with many fits files in it, unsupported
167167
ESASky.get_spectra(position="M1", missions=mission, download_dir=tmp_path)
168168

169169
assert Path(tmp_path, mission).exists()

0 commit comments

Comments
 (0)