Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests now download required srtm data themselves (if remote-data='any')
Before, the remote-data tests would only work if one had downloaded the N50E006.hgt tile beforehand. Either do python setup.py test --remote-data=any or import pycraf pycraf.test(remote_data='any')
- Loading branch information
Benjamin Winkel
committed
Jul 28, 2017
1 parent
9193205
commit eeab3cf
Showing
8 changed files
with
56 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import pytest | ||
from ... import pathprof | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def srtm_temp_dir(tmpdir_factory): | ||
|
||
tdir = tmpdir_factory.mktemp('srtmdata') | ||
return str(tdir) | ||
|
||
|
||
@pytest.yield_fixture() | ||
def srtm_handler(srtm_temp_dir): | ||
|
||
with pathprof.srtm.SrtmConf.set( | ||
srtm_dir=srtm_temp_dir, | ||
server='nasa_v2.1', | ||
download='missing', | ||
): | ||
|
||
yield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters