summaryrefslogtreecommitdiff
path: root/tests/test_libmat2.py (follow)
AgeCommit message (Collapse)Author
2025-04-03Fix heicfix_heicjvoisin
2025-04-03Disable webp tests for nowjvoisin
``` ====================================================================== ERROR: test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) (case={'name': 'webp', 'parser': <class 'libmat2.images.WEBPParser'>, 'meta': {'Warning': '[minor] Improper EXIF header'}, 'expected_meta': {}}) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builds/jvoisin/mat2/libmat2/images.py", line 109, in __init__ GdkPixbuf.Pixbuf.new_from_file(self.filename) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize the image file format for file “./tests/data/clean.webp” (3) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builds/jvoisin/mat2/tests/test_libmat2.py", line 557, in test_all_parametred p1 = case['parser'](target) File "/builds/jvoisin/mat2/libmat2/images.py", line 111, in __init__ raise ValueError ValueError ``` Pending on https://0xacab.org/georg/mat2-ci-images/-/issues/14
2025-03-18Add webp supportVincent Deffontaines
2025-01-09Significantly improve portability0.13.5jvoisin
2024-04-05Remove dangling references from document.xml.relsAlex Marchant
The file `word/_rels/document.xml.rels` is similar to `[Content_Types].xml` and has references to other files in the archive. If those references aren't removed Word refuses to open the document. # Please enter the commit message for your changes. Lines starting
2024-04-05Strip comment references from document.xmlAlex Marchant
2024-04-03Make utf-8 explicit in all tree.write callsAlex Marchant
2024-04-03Add test that checks if comments.xml is removed without errorsAlex Marchant
2023-11-08Fix the CI on Debianjvoisin
2023-03-12Fix the CI on Archlinuxjvoisin
2022-10-09Fix the tests on the latest Debianjvoisin
2022-05-15Add support for HEIC filesjvoisin
Thanks to Maxime Morin ( https://www.maijin.fr/ ) for the patch.
2022-03-28Fix the svg tests on archlinuxjvoisin
2021-12-26Fix the Debian CIjvoisin
This should fix #162
2021-12-08zip archives: keep individual files compression typeDenis 'GNUtoo' Carikli
While hardcoding the compression to zipfile.ZIP_DEFLATED works for most use cases of mat, being able to produce cleaned up uncompressed zip files is useful for content that cannot be compressed more. In addition it also enables to use mat2 for reproducible builds of Android bootanimation files file that don't support compression. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2021-06-06Fix the CI for recent exiftool versionsjvoisin
Always a joy to deal with withespaces
2021-05-05Fix the CI in Fedorajvoisin
2021-04-24Add support for AIFF filesjvoisin
This should close #151
2020-03-08Vastly improve ppt compatibilityjvoisin
2020-02-08Fix the testsuitejvoisin
2020-02-05Improve a bit the robustness of the testsuitejvoisin
2020-01-01Add support for wav filesjvoisin
2019-10-12Add a way to disable the sandboxjvoisin
Due to bubblewrap's pickiness, mat2 can now be run without a sandbox, even if bubblewrap is installed.
2019-10-12Refactor testsjvoisin
2019-09-01Add support for ppmjvoisin
2019-07-22Add a test for svg namespacejvoisin
2019-07-13Add support for svgjvoisin
2019-05-13Rework the dependency checks to distinguish required/optional onesAntoine Tenart
Rework the dependencies definition to include a 'required' flags, which is passed by the check_dependencies helper to the callers, so that they can distinguish between required and optional dependencies. This help in two ways: - The unit test for the dependencies was now failing when an optional one was missing, due to a previous rework. - Mat2's --check-dependencies was referring to "required dependencies" and was misleading for the user as some of them could be optional. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2019-05-13tests: libmat2: RuntimeError cannot be thrown by chech_dependenciesAntoine Tenart
Remove the try/except logic when calling check_dependencies, as it cannot throw the exception anymore (it's caught already in the function). Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2019-04-27Add support for compressed tar filesjvoisin
2019-04-27Add tar archive supportjvoisin
2019-04-14Improve a bit the verbosity of a testjvoisin
2019-02-28Bump the changelog0.8.0jvoisin
2019-02-27Improve the previous commitjvoisin
- More tests - More documentation - Minor code cleanup
2019-02-27Improve epub supportjvoisin
2019-02-20Implement epub supportjvoisin
2019-02-08Add support for html filesjvoisin
2019-02-07Use of the archive refactoring for the office documents toojvoisin
2019-02-04Refactor a bit office get_meta handlingjvoisin
This should make easier to get more metadata from archive-based file formats.
2019-02-03Implement .gif supportjvoisin
2019-02-02Add support for wmvjvoisin
2018-10-28Add mp4 supportjvoisin
2018-10-25Add support for zip filesjvoisin
2018-10-23Implement lightweight cleaning for png and tiffjvoisin
2018-10-23Optimize the handling of problematic filesjvoisin
2018-10-22Improve problematic filenames supportjvoisin
2018-10-22Test mat2's reliability wrt. corrupted video filesjvoisin
2018-10-22Implement support for .avi files, via ffmpegjvoisin
- This commit introduces optional dependencies (namely ffmpeg): mat2 will spit a warning when trying to process an .avi file if ffmpeg isn't installed. - Since metadata are obtained via exiftool, this commit also refactors a bit our exfitool wrapper.
2018-10-12Refactor lightweight mode implementationjvoisin
2018-10-11Implement recursive metadata for FLAC filesjvoisin
Since FLAC files can contain covers, it makes sense to parse their metadata