Skip to content

Commit

Permalink
Fix bugs in SRTM tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Oct 12, 2018
1 parent 6ac5d17 commit c01fdb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cartopy/tests/io/test_srtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import cartopy.crs as ccrs
import cartopy.io.srtm

from .test_downloaders import download_to_temp


pytestmark = [pytest.mark.skip('SRTM login not supported'),
pytest.mark.network]
Expand Down Expand Up @@ -89,8 +91,10 @@ def test_out_of_range(self, Source):
def test_in_range(self, Source):
if Source == cartopy.io.srtm.SRTM3Source:
shape = (1201, 1201)
elif Source == cartopy.io.srtm.SRTM3Source:
elif Source == cartopy.io.srtm.SRTM1Source:
shape = (3601, 3601)
else:
raise ValueError('Source is of unexpected type.')
source = Source()
img, crs, extent = source.single_tile(-1, 50)
assert isinstance(img, np.ndarray)
Expand Down

0 comments on commit c01fdb4

Please sign in to comment.