Commit e3d5456a authored by Tristan Cavelier's avatar Tristan Cavelier

testDms: Add test OOoDocument with OnlyOffice data

parent 4000bc0a
......@@ -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)
......
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