Skip to content

Commit

Permalink
Skip SRTM tests as they require a login.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Dec 10, 2016
1 parent a8289d4 commit 938950f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/cartopy/tests/io/test_srtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ def _test_srtm_retrieve(Source, read_SRTM, max_, min_, pt):
assert img[-10, 12] == pt, msg.format(img[-10, 12])


@unittest.skip('SRTM source requires login.')
def test_srtm3_retrieve():
_test_srtm_retrieve(cartopy.io.srtm.SRTM3Source,
cartopy.io.srtm.read_SRTM3,
602, -34, 78)


@unittest.skip('SRTM source requires login.')
def test_srtm1_retrieve():
_test_srtm_retrieve(cartopy.io.srtm.SRTM1Source,
cartopy.io.srtm.read_SRTM1,
Expand All @@ -65,15 +67,17 @@ def _test_srtm_out_of_range(Source, shape):
assert_array_equal(img, np.zeros(np.array(shape) * 2))


@unittest.skip('SRTM source requires login.')
def test_srtm3_out_of_range():
_test_srtm_out_of_range(cartopy.io.srtm.SRTM3Source, (1201, 1201))


@unittest.skip('SRTM source requires login.')
def test_srtm1_out_of_range():
_test_srtm_out_of_range(cartopy.io.srtm.SRTM1Source, (3601, 3601))


@unittest.expectedFailure
@unittest.skip('SRTM source requires login.')
class TestSRTMSource__single_tile(unittest.TestCase):
def _out_of_range(self, source):
msg = 'No srtm tile found for those coordinates.'
Expand Down Expand Up @@ -111,7 +115,7 @@ def test_zeros1(self):
self._zeros(cartopy.io.srtm.SRTM1Source())


@unittest.expectedFailure
@unittest.skip('SRTM source requires login.')
class TestSRTMSource__combined(unittest.TestCase):
def _trivial(self, source):
e_img, e_crs, e_extent = source.single_tile(-3, 50)
Expand Down Expand Up @@ -140,7 +144,7 @@ def test_2by2_1(self):
self._2by2(cartopy.io.srtm.SRTM1Source())


@unittest.expectedFailure
@unittest.skip('SRTM source requires login.')
class TestSRTM3Source_fetch_raster(unittest.TestCase):
def _as_combined(self, source):
e_img, e_crs, e_extent = source.combined(-1, 50, 2, 1)
Expand Down

0 comments on commit 938950f

Please sign in to comment.