Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
6715f8d1
Commit
6715f8d1
authored
Jul 15, 2020
by
Benjamin Jakimow
Browse files
modified tests
Signed-off-by:
Benjamin Jakimow
<
benjamin.jakimow@geo.hu-berlin.de
>
parent
11968e78
Pipeline
#12436
failed
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bitbucket-pipelines.yml
View file @
6715f8d1
...
...
@@ -29,8 +29,9 @@ pipelines:
-
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
-
python3 -m pip install -r requirements_dev.txt
-
python3 scripts/setup_repository.py
-
python3 -m coverage run -m unittest discover -s tests
-
python3 -m coverage report
#- python3 -m coverage run -m unittest discover -s tests
#- python3 -m coverage report
-
./scripts/run_tests.sh
# build and upload plugin to download section
-
python3 scripts/create_plugin.py -z timeseriesviewerplugin.$(BITBUCKET_BRANCH).lastbuild.zip
#- find deploy -name "timeseriesviewerplugin*zip" -exec cp -t deploy2 {} +
...
...
eotimeseriesviewer/tests.py
View file @
6715f8d1
...
...
@@ -59,13 +59,6 @@ class EOTSVTestCase(TestCase):
import
os
os
.
environ
[
'EOTSV_DEBUG'
]
=
'True'
def
testOutputDirectory
(
self
)
->
pathlib
.
Path
:
from
eotimeseriesviewer
import
DIR_REPO
d
=
DIR_REPO
/
'test-outputs'
os
.
makedirs
(
d
,
exist_ok
=
True
)
return
d
def
closeBlockingWidget
(
self
):
"""
Closes the active blocking (modal) widget
...
...
tests/test_labeling.py
View file @
6715f8d1
...
...
@@ -37,7 +37,7 @@ class TestLabeling(EOTSVTestCase):
def
setUpClass
(
cls
):
super
().
setUpClass
()
print
(
'## setUpClass'
)
app
=
qgis
.
testing
.
start_app
(
cleanup
=
True
)
#
app = qgis.testing.start_app(cleanup=True)
import
eotimeseriesviewer.labeling
print
(
'## setUpClass - cleanup'
)
for
store
in
eotimeseriesviewer
.
MAP_LAYER_STORES
:
...
...
tests/test_timeseries.py
View file @
6715f8d1
...
...
@@ -12,6 +12,7 @@ from eotimeseriesviewer.timeseries import *
from
eotimeseriesviewer.tests
import
EOTSVTestCase
import
xmlrunner
class
TestTimeSeries
(
EOTSVTestCase
):
def
createTestDatasets
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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