Commit 01f1fdc0 authored by Nicolas Delaby's avatar Nicolas Delaby

Put in expected failures legacy formats supported by oood.

Check only that main formats are supported.

Legacy formats will be supported in near future by new daemon cloudooo with dedicated mimetypes.
Resurrect these tests when refactoring of cloudooo will be finished.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41906 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43b538b0
......@@ -46,6 +46,7 @@ from Products.ERP5OOo.OOoUtils import OOoBuilder
from zLOG import LOG, INFO, ERROR
from Products.CMFCore.utils import getToolByName
from zExceptions import BadRequest
from Products.ERP5Type.tests.backportUnittest import expectedFailure
# test files' home
TEST_FILES_HOME = os.path.join(os.path.dirname(__file__), 'test_document')
......@@ -747,23 +748,34 @@ class TestIngestion(ERP5TypeTestCase):
**kw):
document = self.portal.restrictedTraverse(sequence.get('document_path'))
self.checkDocumentExportList(document, 'doc',
['pdf', 'doc', 'rtf', 'writer.html', 'txt'])
['pdf', 'doc', 'rtf', 'txt', 'odt'])
# legacy format will be replaced
expectedFailure(self.checkDocumentExportList)(document, 'doc',
['writer.html'])
def stepCheckSpreadsheetDocumentExportList(self, sequence=None,
sequence_list=None, **kw):
document = self.portal.restrictedTraverse(sequence.get('document_path'))
self.checkDocumentExportList(document, 'xls',
['csv', 'calc.html', 'xls', 'calc.pdf'])
self.checkDocumentExportList(document, 'xls', ['csv', 'xls', 'ods', 'pdf'])
# legacy format will be replaced
expectedFailure(self.checkDocumentExportList)(document, 'xls',
['calc.html', 'calc.pdf'])
def stepCheckPresentationDocumentExportList(self, sequence=None,
sequence_list=None, **kw):
document = self.portal.restrictedTraverse(sequence.get('document_path'))
self.checkDocumentExportList(document, 'ppt', ['impr.pdf', 'ppt'])
self.checkDocumentExportList(document, 'ppt', ['ppt', 'odp', 'pdf'])
# legacy format will be replaced
expectedFailure(self.checkDocumentExportList)(document,
'ppt', ['impr.pdf'])
def stepCheckDrawingDocumentExportList(self, sequence=None,
sequence_list=None, **kw):
document = self.portal.restrictedTraverse(sequence.get('document_path'))
self.checkDocumentExportList(document, 'sxd', ['jpg', 'draw.pdf', 'svg'])
self.checkDocumentExportList(document, 'sxd', ['jpg', 'svg', 'pdf', 'odg'])
# legacy format will be replaced
expectedFailure(self.checkDocumentExportList)(document,
'sxd', ['draw.pdf'])
def stepExportPDF(self, sequence=None, sequence_list=None, **kw):
"""
......
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