diff --git a/test/test_main.py b/test/test_main.py index effd60d..161cf95 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -45,9 +45,11 @@ def test_convert_to_geotiff(self): """ Convert hdf to individual GeoTIFF files """ fnames = convert_to_geotiff(self.fnames[0], outdir=os.path.dirname(__file__)) for f in fnames: + ext = os.path.splitext(f)[1] suffix = os.path.splitext(f)[0].split('_')[1] self.assertTrue(os.path.exists(f)) - self.assertTrue(suffix in products['MCD43A4.006']['bandnames']) + if ext != '.ovr': + self.assertTrue(suffix in products['MCD43A4.006']['bandnames']) def test_ingest_granule(self): """ Ingest granule (download and save to S3) """