diff options
| author | Shyam Sunder | 2023-04-17 12:21:26 -0400 |
|---|---|---|
| committer | Shyam Sunder | 2023-04-17 12:21:26 -0400 |
| commit | 648121d7c355953c357227641329b7f128ecc577 (patch) | |
| tree | f2302df3566cabc577d80cb8ec8e8f547831155d /server/szurubooru/tests/func | |
| parent | 2165b59158462ee01d1d3fe2941b29aadaf8d898 (diff) | |
| parent | 42524503b9fb5a73c69402c435e8d7aee3e036fa (diff) | |
client+server: add quicktime video support
Merge branch 'skybldev-upstream'
Diffstat (limited to 'server/szurubooru/tests/func')
| -rw-r--r-- | server/szurubooru/tests/func/test_mime.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/szurubooru/tests/func/test_mime.py b/server/szurubooru/tests/func/test_mime.py index b33746b..551ba7c 100644 --- a/server/szurubooru/tests/func/test_mime.py +++ b/server/szurubooru/tests/func/test_mime.py @@ -7,6 +7,7 @@ from szurubooru.func import mime "input_path,expected_mime_type", [ ("mp4.mp4", "video/mp4"), + ("mov.mov", "video/quicktime"), ("webm.webm", "video/webm"), ("flash.swf", "application/x-shockwave-flash"), ("png.png", "image/png"), @@ -35,6 +36,7 @@ def test_get_mime_type_for_empty_file(): [ ("video/mp4", "mp4"), ("video/webm", "webm"), + ("video/quicktime", "mov"), ("application/x-shockwave-flash", "swf"), ("image/png", "png"), ("image/jpeg", "jpg"), @@ -70,6 +72,8 @@ def test_is_flash(input_mime_type, expected_state): ("VIDEO/WEBM", True), ("video/mp4", True), ("VIDEO/MP4", True), + ("video/quicktime", True), + ("VIDEO/QUICKTIME", True), ("video/anything_else", False), ("application/ogg", True), ("not a video", False), |