dangerzone/tests
Alex Pyrgiotis 8172195f95
tests: Add a doc with multimedia elements
Add a doc that contains an MP4 video in it, which has an audio and video
stream. This type of document could not be converted with the latest
Dangerzone releases, because PyMuPDF threw this error in the container's
stdout:

    MuPDF error: unsupported error: cannot create appearance stream for
    Screen annotations

This error message was treated literally by our client code, which
parsed the first few bytes in order to find out the page height/width.
This resulted to a misleading Dangerzone error, e.g.:

    A page exceeded the maximum height

This issue started occurring since 0.6.0, which added streaming support,
and was fixed by commit 3f86e7b465. That
fix was not accompanied by a test document that would ensure we would
not have this regression from now on, so we add it in this
commit.

Refs #877
Closes #917
2024-10-22 17:31:39 +03:00
..
gui Catch installation errors and display them. 2024-10-17 16:20:56 +02:00
isolation_provider Catch installation errors and display them. 2024-10-17 16:20:56 +02:00
test_docs tests: Add a doc with multimedia elements 2024-10-22 17:31:39 +03:00
test_docs_compressed Add page limit of 10000 2023-09-28 11:01:14 +01:00
test_docs_external Add test files for hwp/hwpx (base64 encoded) 2023-08-01 14:37:14 +01:00
test_docs_large@0068ffcb67 Replace armor guards that indicate isolated output 2023-08-22 16:11:41 +01:00
__init__.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
conftest.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
test_cli.py tests: Improve test for top-level conversion errors 2024-10-17 15:50:12 +03:00
test_document.py Prevent user from using illegal characters in output filename 2024-10-07 18:04:47 +03:00
test_large_set.py tests: Do not let LibreOffice hang on the large test set 2024-08-09 14:32:19 +03:00
test_ocr.py Add new way to detect tessdata dir 2024-10-17 15:50:11 +03:00
test_settings.py chore(imports): remove useless imports 2024-06-05 14:19:30 +02:00
test_util.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00