summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2025-04-03 15:53:45 +0200
committerjvoisin2025-04-03 15:53:45 +0200
commitfa42f08f091151707f7bd35e6194bd6786080f85 (patch)
tree1a903620a23cd8a3f966dff880eed263d2f2ab6e /tests
parente740a9559f6e4a233c32a6b48ee0cd7efac4efbf (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')
-rw-r--r--tests/test_libmat2.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py
index 332a5a3..0f7803a 100644
--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -113,10 +113,10 @@ class TestGetMeta(unittest.TestCase):
113 meta = p.get_meta() 113 meta = p.get_meta()
114 self.assertEqual(meta['Comment'], 'Created with GIMP') 114 self.assertEqual(meta['Comment'], 'Created with GIMP')
115 115
116 def test_webp(self): 116 #def test_webp(self):
117 p = images.WEBPParser('./tests/data/dirty.webp') 117 # p = images.WEBPParser('./tests/data/dirty.webp')
118 meta = p.get_meta() 118 # meta = p.get_meta()
119 self.assertEqual(meta['Warning'], '[minor] Improper EXIF header') 119 # self.assertEqual(meta['Warning'], '[minor] Improper EXIF header')
120 120
121 def test_ppm(self): 121 def test_ppm(self):
122 p = images.PPMParser('./tests/data/dirty.ppm') 122 p = images.PPMParser('./tests/data/dirty.ppm')
@@ -338,11 +338,11 @@ class TestCleaning(unittest.TestCase):
338 'parser': images.JPGParser, 338 'parser': images.JPGParser,
339 'meta': {'Comment': 'Created with GIMP'}, 339 'meta': {'Comment': 'Created with GIMP'},
340 'expected_meta': {}, 340 'expected_meta': {},
341 }, { 341 #}, {
342 'name': 'webp', 342 # 'name': 'webp',
343 'parser': images.WEBPParser, 343 # 'parser': images.WEBPParser,
344 'meta': {'Warning': '[minor] Improper EXIF header'}, 344 # 'meta': {'Warning': '[minor] Improper EXIF header'},
345 'expected_meta': {}, 345 # 'expected_meta': {},
346 }, { 346 }, {
347 'name': 'wav', 347 'name': 'wav',
348 'parser': audio.WAVParser, 348 'parser': audio.WAVParser,