Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
Media Metadata Indexer
Commits
c8b34ab9
Unverified
Commit
c8b34ab9
authored
Nov 07, 2020
by
Sebastian Schüpbach
Browse files
run tests in CI pipelines
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
70b25f57
Pipeline
#16758
passed with stages
in 4 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c8b34ab9
...
...
@@ -13,6 +13,7 @@ test:
-
pip install -r requirements.txt
script
:
-
flake8 ./mediametadatatodb_app
-
python -m unittest discover -s tests
.build-image
:
# .-Präfix markiert ein job-template
...
...
tests/unit/test_MediametadataToDB.py
View file @
c8b34ab9
...
...
@@ -60,6 +60,7 @@ class Test(TestCase):
'eMuseumPlus?service=MultimediaAsset&objectId=144755&memobaseExt=mp4'
,
'type'
:
'video'
}
digital_object
=
Test
.
_load_file_and_get_res
(
'mfk-FLM-167202.json'
,
Test
.
_get_digital_object
)
digital_object
=
Test
.
_load_file_and_get_res
(
'mfk-FLM-167202.json'
,
Test
.
_get_digital_object
)
dig_obj_val
=
MediametadataToDB
.
_get_values_from_digital_object
(
digital_object
,
'public'
)
self
.
assertDictEqual
(
dig_obj_val
,
res
)
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