diff options
| author | jvoisin | 2025-04-03 15:53:45 +0200 |
|---|---|---|
| committer | jvoisin | 2025-04-03 17:34:40 +0200 |
| commit | 1438cf7bd424e8d6d6955c4cffad15186924a6bc (patch) | |
| tree | 9a04a2e71c0e80c08f537f7ab9eed721ce0b46e4 /tests/test_climat2.py | |
| parent | e740a9559f6e4a233c32a6b48ee0cd7efac4efbf (diff) | |
Disable webp tests for now
```
======================================================================
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
Diffstat (limited to 'tests/test_climat2.py')
| -rw-r--r-- | tests/test_climat2.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py index edc8e88..36ac0c7 100644 --- a/tests/test_climat2.py +++ b/tests/test_climat2.py | |||
| @@ -236,11 +236,11 @@ class TestGetMeta(unittest.TestCase): | |||
| 236 | self.assertIn(b'i am a : various comment', stdout) | 236 | self.assertIn(b'i am a : various comment', stdout) |
| 237 | self.assertIn(b'artist: jvoisin', stdout) | 237 | self.assertIn(b'artist: jvoisin', stdout) |
| 238 | 238 | ||
| 239 | def test_webp(self): | 239 | #def test_webp(self): |
| 240 | proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.webp'], | 240 | # proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.webp'], |
| 241 | stdout=subprocess.PIPE) | 241 | # stdout=subprocess.PIPE) |
| 242 | stdout, _ = proc.communicate() | 242 | # stdout, _ = proc.communicate() |
| 243 | self.assertIn(b'Warning: [minor] Improper EXIF header', stdout) | 243 | # self.assertIn(b'Warning: [minor] Improper EXIF header', stdout) |
| 244 | 244 | ||
| 245 | class TestControlCharInjection(unittest.TestCase): | 245 | class TestControlCharInjection(unittest.TestCase): |
| 246 | def test_jpg(self): | 246 | def test_jpg(self): |
