Unverified Commit c8b34ab9 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

run tests in CI pipelines


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 70b25f57
Pipeline #16758 passed with stages
in 4 minutes and 11 seconds
......@@ -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
......
......@@ -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)
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