[Erp5-report] r35266 nicolas - /erp5/trunk/products/ERP5OOo/tests/testIngestion.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 12 19:55:15 CEST 2010


Author: nicolas
Date: Wed May 12 19:55:14 2010
New Revision: 35266

URL: http://svn.erp5.org?rev=35266&view=rev
Log:
Documents which doesn't implement IBaseConvertable stay 'empty'


Modified:
    erp5/trunk/products/ERP5OOo/tests/testIngestion.py

Modified: erp5/trunk/products/ERP5OOo/tests/testIngestion.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testIngestion.py?rev=35266&r1=35265&r2=35266&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testIngestion.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testIngestion.py [utf8] Wed May 12 19:55:14 2010
@@ -299,7 +299,7 @@
       if document.getPortalType() in NON_PROCESSABLE_PORTAL_TYPE_LIST:
         # File and images do not support conversion to text in DMS
         # PDF has not implemented _convertToBaseFormat() so can not be converted
-        self.assertEquals(document.getExternalProcessingState(), 'uploaded')
+        self.assertEquals(document.getExternalProcessingState(), 'empty')
       else:
         self.assertEquals(document.getExternalProcessingState(), 'converted') # this is how we know if it was ok or not
         self.assert_('magic' in document.SearchableText())
@@ -365,7 +365,8 @@
       self.assertEquals(document.getReference(), 'TEST')
       if document.getPortalType() in NON_PROCESSABLE_PORTAL_TYPE_LIST:
         # Image, File and PDF are not converted to a base format
-        self.assertEquals(document.getExternalProcessingState(), 'uploaded')
+        # so they have to stay empty
+        self.assertEquals(document.getExternalProcessingState(), 'empty')
       else:
         # We check if conversion has succeeded by looking
         # at the external_processing workflow
@@ -962,7 +963,7 @@
       if portal_type not in NON_PROCESSABLE_PORTAL_TYPE_LIST:
         self.assertEquals('converted', ingested_document.getExternalProcessingState())
       else:
-        self.assertEquals('uploaded', ingested_document.getExternalProcessingState())
+        self.assertEquals('empty', ingested_document.getExternalProcessingState())
       # check aggregate between 'Document Ingestion Message' and ingested document
       self.assertTrue(ingested_document in attachment_list)
     return attachment_list, ingested_document




More information about the Erp5-report mailing list