Commit c11548b7 authored by Jérome Perrin's avatar Jérome Perrin

add webp entry in mime.types

This was missing in debian 11 and was the cause for webp to be sometimes
not available. On debian 12 it is present so this was causing failures
on debian 12
parent 59b1c4b7
Pipeline #32328 failed with stage
in 0 seconds
...@@ -47,10 +47,10 @@ text_expected_tuple = ( ...@@ -47,10 +47,10 @@ text_expected_tuple = (
('png', 'PNG - Portable Network Graphics'), ('png', 'PNG - Portable Network Graphics'),
('rtf', 'Rich Text'), ('rtf', 'Rich Text'),
('txt', 'Text - Choose Encoding'), ('txt', 'Text - Choose Encoding'),
('webp', 'WEBP - WebP Image'),
) )
extra_text_expected_tuple = ( extra_text_expected_tuple = (
('docm', 'Word 2007–365 VBA'), ('docm', 'Word 2007–365 VBA'),
('webp', 'WEBP - WebP Image'),
) )
global_expected_tuple = ( global_expected_tuple = (
......
...@@ -52,7 +52,6 @@ class TestAllowedExtensions(TestCase): ...@@ -52,7 +52,6 @@ class TestAllowedExtensions(TestCase):
# XXX slightly different allowed formats with document_type !? # XXX slightly different allowed formats with document_type !?
_text_expected_tuple = text_expected_tuple + ( _text_expected_tuple = text_expected_tuple + (
('docm', 'Word 2007–365 VBA'), ('docm', 'Word 2007–365 VBA'),
('webp', 'WEBP - WebP Image'),
) )
self.assertEqual( self.assertEqual(
sorted([tuple(x) for x in text_allowed_list]), sorted([tuple(x) for x in text_allowed_list]),
...@@ -350,7 +349,8 @@ class TestGenerate(TestCase): ...@@ -350,7 +349,8 @@ class TestGenerate(TestCase):
@expectedFailure @expectedFailure
def testRunGenerateMethodFailResponse(self): def testRunGenerateMethodFailResponse(self):
"""Test run_generate method with invalid document""" """Test run_generate method with invalid document"""
data = open(join('data', 'test.odt')).read()[:100] with open(join('data', 'test.odt')) as f:
data = f.read()[:100]
generate_result = self.proxy.run_generate('test.odt', generate_result = self.proxy.run_generate('test.odt',
encodebytes(data).decode(), encodebytes(data).decode(),
None, 'pdf', 'application/vnd.oasis.opendocument.text') None, 'pdf', 'application/vnd.oasis.opendocument.text')
......
...@@ -641,6 +641,7 @@ image/vnd.svf ...@@ -641,6 +641,7 @@ image/vnd.svf
image/vnd.wap.wbmp wbmp image/vnd.wap.wbmp wbmp
image/vnd.xiff image/vnd.xiff
image/wmf wmf image/wmf wmf
image/webp webp
image/x-canon-cr2 cr2 image/x-canon-cr2 cr2
image/x-canon-crw crw image/x-canon-crw crw
image/x-cmu-raster ras image/x-cmu-raster ras
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment