Commit c0617683 authored by Jérome Perrin's avatar Jérome Perrin

split test_05_FormatIngestion in multiple tests, one per format. Same for test_06_FormatGeneration



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20990 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9675ba1
...@@ -1089,60 +1089,129 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -1089,60 +1089,129 @@ class TestIngestion(ERP5TypeTestCase):
] ]
self.playSequence(step_list, quiet) self.playSequence(step_list, quiet)
def test_05_FormatIngestion(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
Ingest various formats (xls, doc, sxi, ppt etc) # Ingest various formats (xls, doc, sxi, ppt etc)
Verify that they are successfully converted # Verify that they are successfully converted
- have ODF data and contain magic word in SearchableText # - have ODF data and contain magic word in SearchableText
- or have text data and contain magic word in SearchableText # - or have text data and contain magic word in SearchableText
TODO: # TODO:
- or were not moved in processing_status_workflow if the don't # - or were not moved in processing_status_workflow if the don't
implement _convertToBase (e.g. Image) # implement _convertToBase (e.g. Image)
Verify that you can not upload file of the wrong format. # Verify that you can not upload file of the wrong format.
"""
if not run: return def test_05_FormatIngestionText(self, quiet=QUIET, run=RUN_ALL_TEST):
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp' step_list = ['stepCleanUp'
,'stepCreateTextDocument' ,'stepCreateTextDocument'
,'stepIngestTextFormats' ,'stepIngestTextFormats'
]
self.playSequence(step_list, quiet)
def test_05_FormatIngestionSpreadSheet(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp'
,'stepCreateSpreadsheetDocument' ,'stepCreateSpreadsheetDocument'
,'stepIngestSpreadsheetFormats' ,'stepIngestSpreadsheetFormats'
]
self.playSequence(step_list, quiet)
def test_05_FormatIngestionPresentation(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp'
,'stepCreatePresentationDocument' ,'stepCreatePresentationDocument'
,'stepIngestPresentationFormats' ,'stepIngestPresentationFormats'
]
self.playSequence(step_list, quiet)
def test_05_FormatIngestionDrawing(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp'
,'stepCreateDrawingDocument' ,'stepCreateDrawingDocument'
,'stepIngestDrawingFormats' ,'stepIngestDrawingFormats'
]
self.playSequence(step_list, quiet)
def test_05_FormatIngestionPDF(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp'
,'stepCreatePDFDocument' ,'stepCreatePDFDocument'
,'stepIngestPDFFormats' ,'stepIngestPDFFormats'
]
self.playSequence(step_list, quiet)
def test_05_FormatIngestionImage(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_05_FormatIngestion')
step_list = ['stepCleanUp'
,'stepCreateImageDocument' ,'stepCreateImageDocument'
,'stepIngestImageFormats' ,'stepIngestImageFormats'
] ]
self.playSequence(step_list, quiet) self.playSequence(step_list, quiet)
def test_06_FormatGeneration(self, quiet=QUIET, run=RUN_ALL_TEST):
""" # Test generation of files in all possible formats
Test generation of files in all possible formats # which means check if they have correct lists of available formats for export
which means check if they have correct lists of available formats for export # actual generation is tested in oood tests
actual generation is tested in oood tests # PDF and Image should be tested here
PDF and Image should be tested here def test_06_FormatGenerationText(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
if not run: return if not run: return
if not quiet: printAndLog('test_06_FormatGeneration') if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp' step_list = [ 'stepCleanUp'
,'stepCreateTextDocument' ,'stepCreateTextDocument'
,'stepCheckTextDocumentExportList' ,'stepCheckTextDocumentExportList'
]
self.playSequence(step_list, quiet)
def test_06_FormatGenerationSpreadsheet(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp'
,'stepCreateSpreadsheetDocument' ,'stepCreateSpreadsheetDocument'
,'stepCheckSpreadsheetDocumentExportList' ,'stepCheckSpreadsheetDocumentExportList'
]
self.playSequence(step_list, quiet)
def test_06_FormatGenerationPresentation(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp'
,'stepCreatePresentationDocument' ,'stepCreatePresentationDocument'
,'stepCheckPresentationDocumentExportList' ,'stepCheckPresentationDocumentExportList'
]
self.playSequence(step_list, quiet)
def test_06_FormatGenerationDrawing(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp'
,'stepCreateDrawingDocument' ,'stepCreateDrawingDocument'
,'stepCheckDrawingDocumentExportList' ,'stepCheckDrawingDocumentExportList'
]
self.playSequence(step_list, quiet)
def test_06_FormatGenerationPdf(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp'
,'stepCreatePDFDocument' ,'stepCreatePDFDocument'
,'stepExportPDF' ,'stepExportPDF'
]
self.playSequence(step_list, quiet)
def test_06_FormatGenerationImage(self, quiet=QUIET, run=RUN_ALL_TEST):
if not run: return
if not quiet: printAndLog('test_06_FormatGeneration')
step_list = [ 'stepCleanUp'
,'stepCreateImageDocument' ,'stepCreateImageDocument'
,'stepExportImage' ,'stepExportImage'
] ]
self.playSequence(step_list, quiet) self.playSequence(step_list, quiet)
def test_07_SnapshotGeneration(self, quiet=QUIET, run=RUN_ALL_TEST): def test_07_SnapshotGeneration(self, quiet=QUIET, run=RUN_ALL_TEST):
""" """
Generate snapshot, make sure it is there, Generate snapshot, make sure it is there,
......
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