Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms_preprocessing
Commits
550cccb5
Commit
550cccb5
authored
Nov 27, 2017
by
Daniel Scheffler
Browse files
Fixes.
Former-commit-id:
284ab691
Former-commit-id:
69fcd19e
parent
e5522a45
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/test_config.py
View file @
550cccb5
...
...
@@ -29,7 +29,7 @@ class Test_get_options(TestCase):
class
Test_JobConfig
(
TestCase
):
def
setUp
(
self
):
self
.
jobID
=
26186662
self
.
db_host
=
'
localhost
'
self
.
db_host
=
'
geoms
'
def
test
(
self
):
cfg
=
JobConfig
(
self
.
jobID
,
self
.
db_host
)
...
...
tests/test_exception_handler.py
View file @
550cccb5
...
...
@@ -30,7 +30,7 @@ class BaseTest_ExceptionHandler:
[
ds
.
update
({
'proc_level'
:
None
})
for
ds
in
self
.
PC
.
config
.
data_list
]
self
.
PC
.
job
.
status
=
'running'
self
.
PC
.
config
.
status
=
'running'
self
.
PC
.
update_DB_job_record
()
# TODO implement that into job.status.setter
def
tearDown
(
self
):
...
...
tests/test_input_reader.py
View file @
550cccb5
...
...
@@ -23,9 +23,8 @@ gmsRepo_rootpath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')
class
Test_DEM_Creator
(
unittest
.
TestCase
):
def
setUp
(
self
):
# Testjob Landsat-8
set_config
(
exec_mode
=
'Python'
,
job_ID
=
26186196
,
db_host
=
'geoms'
,
reset
=
True
,
job_kwargs
=
dict
(
is_test
=
True
,
path_archive
=
os
.
path
.
join
(
gmsRepo_rootpath
,
'tests'
,
'data'
,
'archive_data'
)))
set_config
(
exec_mode
=
'Python'
,
job_ID
=
26186196
,
db_host
=
'geoms'
,
reset
=
True
,
is_test
=
True
,
path_archive
=
os
.
path
.
join
(
gmsRepo_rootpath
,
'tests'
,
'data'
,
'archive_data'
))
self
.
boxMapXY
=
((
277365.0
,
5546625.0
),
(
292365.0
,
5546625.0
),
(
292365.0
,
5531625.0
),
(
277365.0
,
5531625.0
))
self
.
prj
=
EPSG2WKT
(
32635
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment