Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
e3d5456a
Commit
e3d5456a
authored
Jan 18, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testDms: Add test OOoDocument with OnlyOffice data
parent
4000bc0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
product/ERP5OOo/tests/testDms.py
product/ERP5OOo/tests/testDms.py
+10
-0
product/ERP5OOo/tests/test_document/TEST-en-002.docy
product/ERP5OOo/tests/test_document/TEST-en-002.docy
+0
-0
No files found.
product/ERP5OOo/tests/testDms.py
View file @
e3d5456a
...
...
@@ -2631,6 +2631,16 @@ return 1
self
.
assertFalse
(
document
.
hasContentMd5
())
self
.
assertEqual
(
document
.
getExternalProcessingState
(),
'empty'
)
def
test_isOnlyOfficeDocumentBaseConvertable
(
self
):
document
=
self
.
portal
.
document_module
.
newContent
(
portal_type
=
"Text"
,
data
=
makeFileUpload
(
'TEST-en-002.docy'
),
content_type
=
"application/x-asc-text"
,
)
document
.
convertToBaseFormat
()
self
.
tic
()
document
.
convert
(
format
=
"docy"
)
def
_test_document_publication_workflow
(
self
,
portal_type
,
transition
):
document
=
self
.
getDocumentModule
().
newContent
(
portal_type
=
portal_type
)
self
.
portal
.
portal_workflow
.
doActionFor
(
document
,
transition
)
...
...
product/ERP5OOo/tests/test_document/TEST-en-002.docy
0 → 100644
View file @
e3d5456a
File added
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