Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
cloudooo
Commits
c7897044
Commit
c7897044
authored
Jan 23, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: update tests after fixing WebP support
parent
c11548b7
Pipeline
#32332
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
cloudooo/handler/ooo/tests/testOooHandler.py
cloudooo/handler/ooo/tests/testOooHandler.py
+30
-1
No files found.
cloudooo/handler/ooo/tests/testOooHandler.py
View file @
c7897044
...
@@ -211,8 +211,10 @@ class TestHandler(HandlerTestCase):
...
@@ -211,8 +211,10 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/plain'
,
'Text - Choose Encoding'
)]
(
'text/plain'
,
'Text - Choose Encoding'
),
]
self
.
assertEqual
(
get
(
"text/plain;ignored=param"
),
text_plain_output_list
)
self
.
assertEqual
(
get
(
"text/plain;ignored=param"
),
text_plain_output_list
)
self
.
assertEqual
(
get
(
"text/plain;charset=UTF-8;ignored=param"
),
text_plain_output_list
)
self
.
assertEqual
(
get
(
"text/plain;charset=UTF-8;ignored=param"
),
text_plain_output_list
)
self
.
assertEqual
(
get
(
"text/plain;charset=US-ASCII;ignored=param"
),
text_plain_output_list
)
self
.
assertEqual
(
get
(
"text/plain;charset=US-ASCII;ignored=param"
),
text_plain_output_list
)
...
@@ -232,6 +234,7 @@ class TestHandler(HandlerTestCase):
...
@@ -232,6 +234,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/plain'
,
'Text - Choose Encoding'
)
])
(
'text/plain'
,
'Text - Choose Encoding'
)
])
...
@@ -251,6 +254,7 @@ class TestHandler(HandlerTestCase):
...
@@ -251,6 +254,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -280,6 +284,7 @@ class TestHandler(HandlerTestCase):
...
@@ -280,6 +284,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/plain'
,
'Text - Choose Encoding'
),
(
'text/plain'
,
'Text - Choose Encoding'
),
])
])
...
@@ -299,6 +304,7 @@ class TestHandler(HandlerTestCase):
...
@@ -299,6 +304,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/plain'
,
'Text - Choose Encoding'
)
])
(
'text/plain'
,
'Text - Choose Encoding'
)
])
...
@@ -318,6 +324,7 @@ class TestHandler(HandlerTestCase):
...
@@ -318,6 +324,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -338,6 +345,7 @@ class TestHandler(HandlerTestCase):
...
@@ -338,6 +345,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -365,6 +373,7 @@ class TestHandler(HandlerTestCase):
...
@@ -365,6 +373,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.sun.xml.writer'
,
'OpenOffice.org 1.0 Text Document (Writer/Web)'
),
(
'application/vnd.sun.xml.writer'
,
'OpenOffice.org 1.0 Text Document (Writer/Web)'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/html'
,
'HTML Document'
),
(
'text/html'
,
'HTML Document'
),
(
'text/html'
,
'HTML Document (Calc)'
),
(
'text/html'
,
'HTML Document (Calc)'
),
...
@@ -389,6 +398,7 @@ class TestHandler(HandlerTestCase):
...
@@ -389,6 +398,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -409,6 +419,7 @@ class TestHandler(HandlerTestCase):
...
@@ -409,6 +419,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -429,6 +440,7 @@ class TestHandler(HandlerTestCase):
...
@@ -429,6 +440,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -458,6 +470,7 @@ class TestHandler(HandlerTestCase):
...
@@ -458,6 +470,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
),
(
'text/html'
,
'HTML Document (Draw)'
),
...
@@ -479,6 +492,7 @@ class TestHandler(HandlerTestCase):
...
@@ -479,6 +492,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)])
(
'text/html'
,
'HTML Document (Draw)'
)])
...
@@ -499,6 +513,7 @@ class TestHandler(HandlerTestCase):
...
@@ -499,6 +513,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -519,6 +534,7 @@ class TestHandler(HandlerTestCase):
...
@@ -519,6 +534,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -539,6 +555,7 @@ class TestHandler(HandlerTestCase):
...
@@ -539,6 +555,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -559,6 +576,7 @@ class TestHandler(HandlerTestCase):
...
@@ -559,6 +576,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -579,6 +597,7 @@ class TestHandler(HandlerTestCase):
...
@@ -579,6 +597,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -599,6 +618,7 @@ class TestHandler(HandlerTestCase):
...
@@ -599,6 +618,7 @@ class TestHandler(HandlerTestCase):
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVGZ - Compressed Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Draw)'
)
])
(
'text/html'
,
'HTML Document (Draw)'
)
])
...
@@ -616,6 +636,7 @@ class TestHandler(HandlerTestCase):
...
@@ -616,6 +636,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/html'
,
'HTML Document (Calc)'
)
])
(
'text/html'
,
'HTML Document (Calc)'
)
])
...
@@ -638,6 +659,7 @@ class TestHandler(HandlerTestCase):
...
@@ -638,6 +659,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/html'
,
'HTML Document (Calc)'
)
])
(
'text/html'
,
'HTML Document (Calc)'
)
])
...
@@ -654,6 +676,7 @@ class TestHandler(HandlerTestCase):
...
@@ -654,6 +676,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
'Office Open XML Spreadsheet'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/html'
,
'HTML Document (Calc)'
)
])
(
'text/html'
,
'HTML Document (Calc)'
)
])
...
@@ -672,6 +695,7 @@ class TestHandler(HandlerTestCase):
...
@@ -672,6 +695,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
'Word 2007–365'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/html'
,
'HTML Document (Writer)'
),
(
'text/plain'
,
'Text - Choose Encoding'
)
])
(
'text/plain'
,
'Text - Choose Encoding'
)
])
...
@@ -698,6 +722,7 @@ class TestHandler(HandlerTestCase):
...
@@ -698,6 +722,7 @@ class TestHandler(HandlerTestCase):
(
'application/vnd.sun.xml.writer'
,
'OpenOffice.org 1.0 Text Document (Writer/Web)'
),
(
'application/vnd.sun.xml.writer'
,
'OpenOffice.org 1.0 Text Document (Writer/Web)'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/jpeg'
,
'JPEG - Joint Photographic Experts Group'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/csv'
,
'Text CSV'
),
(
'text/html'
,
'HTML Document'
),
(
'text/html'
,
'HTML Document'
),
(
'text/html'
,
'HTML Document (Calc)'
),
(
'text/html'
,
'HTML Document (Calc)'
),
...
@@ -727,6 +752,7 @@ class TestHandler(HandlerTestCase):
...
@@ -727,6 +752,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
(
'text/html'
,
'HTML Document (Impress)'
)
])
...
@@ -752,6 +778,7 @@ class TestHandler(HandlerTestCase):
...
@@ -752,6 +778,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
(
'text/html'
,
'HTML Document (Impress)'
)
])
...
@@ -777,6 +804,7 @@ class TestHandler(HandlerTestCase):
...
@@ -777,6 +804,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
(
'text/html'
,
'HTML Document (Impress)'
)
])
...
@@ -802,6 +830,7 @@ class TestHandler(HandlerTestCase):
...
@@ -802,6 +830,7 @@ class TestHandler(HandlerTestCase):
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/png'
,
'PNG - Portable Network Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/svg+xml'
,
'SVG - Scalable Vector Graphics'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/tiff'
,
'TIFF - Tagged Image File Format'
),
(
'image/webp'
,
'WEBP - WebP Image'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/wmf'
,
'WMF - Windows Metafile'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'image/x-ms-bmp'
,
'BMP - Windows Bitmap'
),
(
'text/html'
,
'HTML Document (Impress)'
)
])
(
'text/html'
,
'HTML Document (Impress)'
)
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment