Commit 52258a15 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed path within config_for_testing.

parent ed988a59
Pipeline #2923 failed with stages
in 63 minutes and 43 seconds
......@@ -44,7 +44,7 @@ test_styles:
- source /root/miniconda3/bin/activate enpt
- export GDAL_DATA=/root/miniconda3/envs/enpt/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- pip install flake8 # fixes version incompatibility between flake8 and pycodestyle
- pip install flake8 # FIXME version incompatibility between flake8 and pycodestyle
- make lint
artifacts:
paths:
......
......@@ -57,7 +57,7 @@ class EnPT_Controller(object):
if not os.path.isdir(path_enmap_image) and \
not (os.path.exists(path_enmap_image) and path_enmap_image.endswith('.zip')):
raise ValueError("The parameter 'path_enmap_image' must be a directory or the path to an existing zip "
"archive.")
"archive. Received %s." % path_enmap_image)
# extract L1B image archive if needed
if path_enmap_image.endswith('.zip'):
......
......@@ -34,7 +34,8 @@ path_options_default = os.path.join(path_enptlib, 'options', 'options_default.js
config_for_testing = dict(
path_l1b_enmap_image=os.path.join(path_enptlib, 'tests', 'data', 'EnMAP_Level_1B', 'AlpineTest1_CWV2_SM0.zip'),
path_l1b_enmap_image=os.path.abspath(
os.path.join(path_enptlib, '..', 'tests', 'data', 'EnMAP_Level_1B', 'AlpineTest1_CWV2_SM0.zip')),
output_dir=os.path.join(path_enptlib, 'tests', 'data', 'test_outputs')
)
......
......@@ -6,5 +6,3 @@ flake8==2.6.0
tox==2.3.1
coverage==4.1
Sphinx==1.4.8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment