[Erp5-report] r13136 - /erp5/trunk/products/ERP5Security/tests/testERP5Security.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 1 14:56:43 CET 2007


Author: romain
Date: Thu Mar  1 14:56:42 2007
New Revision: 13136

URL: http://svn.erp5.org?rev=13136&view=rev
Log:
Clean cache factory for ERP5 Security

Modified:
    erp5/trunk/products/ERP5Security/tests/testERP5Security.py

Modified: erp5/trunk/products/ERP5Security/tests/testERP5Security.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/tests/testERP5Security.py?rev=13136&r1=13135&r2=13136&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py Thu Mar  1 14:56:42 2007
@@ -57,7 +57,8 @@
   
   def beforeTearDown(self):
     """Clears person module and invalidate caches when tests are finished."""
-    clearCache()
+    # XXX Isn't it better to clear the cache when deleting a Person ?
+    clearCache(cache_factory_list=('erp5_core_short', ))
     self.getPersonModule().manage_delObjects([x for x in
                              self.getPersonModule().objectIds()])
     get_transaction().commit()
@@ -246,7 +247,8 @@
     # commit this
     get_transaction().commit()
     self.tic()
-    clearCache()
+    # XXX Isn't it better to clear the cache when deleting a Person ?
+    clearCache(cache_factory_list=('erp5_core_short', ))
 
   def loginAsUser(self, username):
     uf = self.portal.acl_users




More information about the Erp5-report mailing list