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
e77ac1a7
Commit
e77ac1a7
authored
May 10, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More mimetype update
Word mimetype outcome changed, after update of libreoffice.
parent
5b2b4c13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cloudooo/handler/ooo/tests/testOooHandler.py
cloudooo/handler/ooo/tests/testOooHandler.py
+1
-1
cloudooo/handler/ooo/tests/testOooUnoConverter.py
cloudooo/handler/ooo/tests/testOooUnoConverter.py
+1
-1
No files found.
cloudooo/handler/ooo/tests/testOooHandler.py
View file @
e77ac1a7
...
...
@@ -73,7 +73,7 @@ class TestHandler(HandlerTestCase):
decodestring
(
data
),
'odt'
)
doc_exported
=
handler
.
convert
(
"doc"
)
self
.
_assert_document_output
(
doc_exported
,
"application/
vnd.ms-office
"
)
self
.
_assert_document_output
(
doc_exported
,
"application/
msword
"
)
def
testConvertDocToOdt
(
self
):
"""Test convert DOC to ODT"""
...
...
cloudooo/handler/ooo/tests/testOooUnoConverter.py
View file @
e77ac1a7
...
...
@@ -82,7 +82,7 @@ class TestUnoConverter(HandlerTestCase):
output_url
=
stdout
.
replace
(
'
\
n
'
,
''
)
self
.
assertTrue
(
exists
(
output_url
),
stdout
)
mime
=
magic
.
Magic
(
mime
=
True
)
self
.
assertEquals
(
mime
.
from_file
(
output_url
),
'application/
vnd.ms-office
'
)
self
.
assertEquals
(
mime
.
from_file
(
output_url
),
'application/
msword
'
)
self
.
document
.
trash
()
self
.
assertEquals
(
exists
(
output_url
),
False
)
...
...
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