Skip to content

Commit

Permalink
Fix rasterio test
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Sep 16, 2019
1 parent 7871a08 commit 1e76732
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions satpy/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
#
# You should have received a copy of the GNU General Public License along with
# satpy. If not, see <http://www.gnu.org/licenses/>.
"""Test objects and functions in the satpy.config module.
"""
"""Test objects and functions in the satpy.config module."""

import sys

Expand Down Expand Up @@ -111,7 +110,7 @@ def test_areas_rasterio(self):
# in a generic test so just skip this area
continue
proj_dict = area_obj.proj_dict
if proj_dict['proj'] in ('ob_tran', 'nsper') and \
if proj_dict.get('proj') in ('ob_tran', 'nsper') and \
'wktext' not in proj_dict:
# FIXME: rasterio doesn't understand ob_tran unless +wktext
# See: https://github.com/pyproj4/pyproj/issues/357
Expand All @@ -121,7 +120,7 @@ def test_areas_rasterio(self):


def suite():
"""The test suite for test_config."""
"""Test suite for test_config."""
loader = unittest.TestLoader()
my_suite = unittest.TestSuite()
my_suite.addTest(loader.loadTestsFromTestCase(TestCheckSatpy))
Expand Down

0 comments on commit 1e76732

Please sign in to comment.