summaryrefslogtreecommitdiff
path: root/tests (follow)
AgeCommit message (Collapse)Author
2025-09-01Fix issue introduced in f073444jvoisin
The continuous integration on 0xacab didn't run, so it didn't catch this issue. It seems like we'll have to move to github or whatever instead, sigh.
2025-08-25Fix a broken testjvoisin
Reported-By: https://github.com/NixOS/nixpkgs/issues/436421
2025-04-03Fix HEIC parsing with the latest exiftooljvoisin
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-07-18Keep orientation metadatamatiargs
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-09-08Provide a name for the loggersjvoisin
2023-08-03tests: drop duplicate dirty.epub file; it's stored below data/ as wellgeorg
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-29Please the lintersjvoisin
2022-03-29Simplification of the testsuitejvoisin
2022-03-28Fix the svg tests on archlinuxjvoisin
2021-12-26Fix the Debian CIjvoisin
This should fix #162
2021-12-19Add a fuzzer based on atherisjvoisin
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-11-30Raise a ValueError explicitlyjvoisin
2020-11-13Fix the CI on fedorajvoisin
2020-11-06Better test of corrupted MSOffice filesjvoisin
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-12-23Make the testsuite a bit more robustjvoisin
Some terminals with a small number of column could wrap the cli's output in a way that would make the testsuite fail. This commit break the tests in several smaller one to mitigate this. This issue was originally reported by eleius [here](https://github.com/actionless/pikaur/issues/433), and forwarded as #153.
2019-12-16Handle tiff images with a .tif extensionjvoisin
2019-11-30This is mat2, not MAT2georg
Closes #131
2019-11-30Fix the testsuite on Python3.8jvoisin
There is a bug in Python3.8 (https://bugs.python.org/issue38688) triggering an infinite recursion when copying a tree in a subfolder of the current one. We're working around it by using a list instead of an iterator, so that Python won't "discover" the target folder as part of the source files. This should fix #130
2019-10-13Copy file permissionsjvoisin
Mat2 (the cli) will now copy the input file permissions to the output file.
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-10-12Remove an unused variablejvoisin
2019-10-12Fix a test for png's lightweight cleaning on corrupted filesjvoisin
2019-09-01Add support for ppmjvoisin
2019-09-01Add a test for nsid cleaningjvoisin
2019-08-31Add support for inplace cleaningjvoisin
2019-08-01Some arguments of mat2 are mutually exclusivejvoisin
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>