[Erp5-report] r35016 nicolas - /erp5/trunk/products/ERP5/tests/testERP5Web.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 5 18:05:33 CEST 2010


Author: nicolas
Date: Wed May  5 18:05:30 2010
New Revision: 35016

URL: http://svn.erp5.org?rev=35016&view=rev
Log:
edit method reset cache of current document because it increase the revision.
Use setId to check that changing an id of cachable document doesn't
clear conversion cache.

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

Modified: erp5/trunk/products/ERP5/tests/testERP5Web.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Web.py?rev=35016&r1=35015&r2=35016&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] Wed May  5 18:05:30 2010
@@ -1021,9 +1021,9 @@
 
     # Make sure document cache keeps converted content even if ID changes
     self.assertTrue(document.hasConversion(format='txt'))
-    document.edit(id='document_new_cache')
+    document.setId('document_new_cache')
     self.assertTrue(document.hasConversion(format='txt'))
-    document.edit(id='document_original_cache')
+    document.setId('document_original_cache')
     self.assertTrue(document.hasConversion(format='txt'))
 
   def test_13b_DocumentEditCacheKey(self, quiet=quiet, run=run_all_test):




More information about the Erp5-report mailing list