[Erp5-report] r35606 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 25 10:35:16 CEST 2010


Author: nicolas.dumazet
Date: Tue May 25 10:35:15 2010
New Revision: 35606

URL: http://svn.erp5.org?rev=35606&view=rev
Log:
add an assertion to make sure that no useless reindexing activities
are created when creating a Template

Failing for now; the code fixing it is on its way.

Modified:
    erp5/trunk/products/ERP5/tests/testTemplate.py

Modified: erp5/trunk/products/ERP5/tests/testTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testTemplate.py?rev=35606&r1=35605&r2=35606&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testTemplate.py [utf8] Tue May 25 10:35:15 2010
@@ -369,8 +369,13 @@
     self.tic()
 
     document.Base_makeTemplateFromDocument(form_id=None)
-    transaction.commit()
-    self.tic()
+
+    transaction.commit()
+    # making a new template should not create indexing activities,
+    # either for the new template or one of its subobjects
+    self.assertEqual(self.portal.portal_activities.getMessageList(), [])
+    self.tic()
+
     self.assertTrue(document.isIndexable)
     self.assertEqual(len(preference.objectIds()), 1)
     template = preference.objectValues()[0]




More information about the Erp5-report mailing list