diff options
| author | Vincent Deffontaines | 2025-03-18 22:11:27 +0100 |
|---|---|---|
| committer | jvoisin | 2025-03-18 22:20:17 +0100 |
| commit | 2b58eece509c22a692f4de2512ec41c00e1d2728 (patch) | |
| tree | c74baaf6570b8721eff0ef8e8ccbf7d07fc9e05b /tests/test_climat2.py | |
| parent | 29f404bce34706f1902659a8aa713d9c2570cc60 (diff) | |
Add webp support
Diffstat (limited to 'tests/test_climat2.py')
| -rw-r--r-- | tests/test_climat2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py index 9238253..edc8e88 100644 --- a/tests/test_climat2.py +++ b/tests/test_climat2.py | |||
| @@ -236,6 +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): | ||
| 240 | proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/dirty.webp'], | ||
| 241 | stdout=subprocess.PIPE) | ||
| 242 | stdout, _ = proc.communicate() | ||
| 243 | self.assertIn(b'Warning: [minor] Improper EXIF header', stdout) | ||
| 239 | 244 | ||
| 240 | class TestControlCharInjection(unittest.TestCase): | 245 | class TestControlCharInjection(unittest.TestCase): |
| 241 | def test_jpg(self): | 246 | def test_jpg(self): |
