Skip to content

Commit

Permalink
Merge pull request #87 from learningequality/qti_preset
Browse files Browse the repository at this point in the history
Add QTI file format presets.
  • Loading branch information
rtibbles authored May 10, 2021
2 parents d51256c + a8e9d41 commit 2b6b323
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
8 changes: 8 additions & 0 deletions le_utils/constants/format_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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),
Expand Down
24 changes: 24 additions & 0 deletions le_utils/resources/presetlookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest>=3.2.1
pytest==3.7.1
attrs==20.3.0

0 comments on commit 2b6b323

Please sign in to comment.