Skip to content

Commit 775e905

Browse files
committed
update earthdata tests
1 parent 8d67346 commit 775e905

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/normalizers/test_earthdata_cmr.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,10 @@ def test_instrument(self):
246246
mock_get_gcmd_method.assert_called_with('VIIRS')
247247

248248
def test_instrument_missing_attribute(self):
249-
"""A MetadataNormalizationError must be raised if the raw
250-
attribute is missing
249+
"""An unknown instrument must be returned if the raw attribute
250+
is missing
251251
"""
252-
with self.assertRaises(MetadataNormalizationError):
253-
self.normalizer.get_instrument({})
254-
with self.assertRaises(MetadataNormalizationError):
255-
self.normalizer.get_instrument({'umm': {'foo': 'bar'}})
252+
self.assertEqual(self.normalizer.get_instrument({})['Category'], 'Unknown')
256253

257254
def test_location_geometry_one_bounding_box(self):
258255
"""Test getting the location_geometry from one bounding box"""

0 commit comments

Comments
 (0)