Commit 21527b47 authored by Romain Courteaud's avatar Romain Courteaud

Clean cache factory for ERP5 Security

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13136 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c59d0ee0
......@@ -57,7 +57,8 @@ class TestUserManagement(ERP5TypeTestCase):
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 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
# 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
......
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