dangerzone/tests
deeplow cd99122385
Adds file formats: epub svg bmp pnm bpm ppm
Partially fix for #660. Missing some files due to limitations [1]:
- PSD - only available from PyMuPDF>=1.23.0 (qubes-fedora is lower)
- TXT - only available from PyMuPDF>=1.23.7 (qubes-fedora is lower)
- JXR - PyMuPDF was refusing to due to missing codec [1]
- JPX - Generated test file was rejected by PyMuPDF [2]
- FB2 - Most often cannot be detected by mime type alone [3]
- CBZ - (idem)
- XPS - (idem)
- MOBI - (idem)
- PAM - General version of other file format already included, so I
  decided not to include this extension [0]

New test files were generated locally:
 - epub - generated with calibre's convert-ebook from another
   sample file
 - svg - generated with inkscape from a mix of a default template
   (hexagons) and a logo's PNG file
 - bmp, pnm, bpm, ppm - generated with ImageMagick's 'convert' from
   tests/test_docs/sample-png.png

[0]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1914681487
[1]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1916803201
[2]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1916870347
[3]: https://github.com/freedomofpress/dangerzone/issues/688
2024-01-31 19:58:48 +00:00
..
gui Use more descriptive button labels in update check prompt 2023-10-31 12:52:34 +00:00
isolation_provider FIXUP: rename to QubesQrexecFailed instead 2023-10-02 12:06:18 +01:00
test_docs Adds file formats: epub svg bmp pnm bpm ppm 2024-01-31 19:58:48 +00: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 Add limit and test to max width and height of docs 2023-09-28 11:08:47 +01:00
conftest.py tests: Test our own custom QApplication 2023-07-28 12:18:58 +03:00
test_cli.py Enable HWP conversion on MacOS (Apple silicon CPU) 2023-12-13 12:57:22 +02:00
test_document.py remove number from test_doc2 variable 2023-07-25 15:00:31 +01:00
test_large_set.py Adapt code so it works for reporting script 2023-08-22 16:11:36 +01:00
test_ocr.py Remove Dockerfile dependencies replaced by PyMuPDF 2024-01-03 12:58:36 +00:00
test_util.py Add non-blocking read utility 2023-09-20 17:14:24 +03:00