Skip to content

Commit

Permalink
bugfix: srtmconf tests, for some strange reason default values malfunct.
Browse files Browse the repository at this point in the history
this appeared on travis when multiple images seemed to share the conf
state (this cannot really be the case, can it?); however, only one
of the images would succeed with the tests, all others started with
wrong config???
  • Loading branch information
Benjamin Winkel committed Apr 19, 2019
1 parent a63adc8 commit ee7b9e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pycraf/pathprof/tests/test_srtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@

class TestSrtmConf:

def setup(self):

srtm.SrtmConf.set(
srtm_dir=os.environ.get('SRTMDATA', '.'),
download='never',
server='nasa_v2.1',
interp='linear',
)

def test_context_manager(self):

srtm_dir = srtm.SrtmConf.srtm_dir
Expand Down

0 comments on commit ee7b9e4

Please sign in to comment.