diff --git a/le_utils/constants/format_presets.py b/le_utils/constants/format_presets.py index 129a548..41028f5 100644 --- a/le_utils/constants/format_presets.py +++ b/le_utils/constants/format_presets.py @@ -62,6 +62,12 @@ H5P_THUMBNAIL = "h5p_thumbnail" H5P_THUMBNAIL_READABLE = "H5P Thumbnail" +QTI_ZIP = "qti" +QTI_ZIP_READABLE = "QTI Zip" +QTI_THUMBNAIL = "qti_thumbnail" +QTI_THUMBNAIL_READABLE = "QTI Thumbnail" + + SLIDESHOW_IMAGE = "slideshow_image" SLIDESHOW_IMAGE_READABLE = "Slideshow Image" @@ -96,6 +102,8 @@ (HTML5_THUMBNAIL, HTML5_THUMBNAIL_READABLE), (H5P_ZIP, H5P_ZIP_READABLE), (H5P_THUMBNAIL, H5P_THUMBNAIL_READABLE), + (QTI_ZIP, QTI_ZIP_READABLE), + (QTI_THUMBNAIL, QTI_THUMBNAIL_READABLE), (SLIDESHOW_IMAGE, SLIDESHOW_IMAGE_READABLE), (SLIDESHOW_THUMBNAIL, SLIDESHOW_THUMBNAIL_READABLE), (SLIDESHOW_MANIFEST, SLIDESHOW_MANIFEST_READABLE), diff --git a/le_utils/resources/presetlookup.json b/le_utils/resources/presetlookup.json index e566ccf..408ff24 100644 --- a/le_utils/resources/presetlookup.json +++ b/le_utils/resources/presetlookup.json @@ -263,6 +263,30 @@ "allowed_formats": ["png", "jpg", "jpeg"], "convertible_formats": [] }, + "qti": { + "readable_name": "QTI", + "multi_language": false, + "supplementary": false, + "thumbnail": false, + "subtitle": false, + "display": false, + "order": 1, + "kind": "exercise", + "allowed_formats": ["zip"], + "convertible_formats": [] + }, + "qti_thumbnail": { + "readable_name": "QTI Thumbnail", + "multi_language": false, + "supplementary": true, + "thumbnail": true, + "subtitle": false, + "display": true, + "order": 2, + "kind": "exercise", + "allowed_formats": ["png", "jpg", "jpeg"], + "convertible_formats": [] + }, "slideshow_image": { "readable_name": "Slideshow Slide Image", "multi_language": false, diff --git a/requirements-test.txt b/requirements-test.txt index add7ca1..504de7e 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1 +1,2 @@ -pytest>=3.2.1 +pytest==3.7.1 +attrs==20.3.0