Commit 54195dbc authored by Romain Courteaud's avatar Romain Courteaud

Rename cache factory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5850645c
...@@ -58,7 +58,7 @@ class TestUserManagement(ERP5TypeTestCase): ...@@ -58,7 +58,7 @@ class TestUserManagement(ERP5TypeTestCase):
def beforeTearDown(self): def beforeTearDown(self):
"""Clears person module and invalidate caches when tests are finished.""" """Clears person module and invalidate caches when tests are finished."""
# XXX Isn't it better to clear the cache when deleting a Person ? # XXX Isn't it better to clear the cache when deleting a Person ?
clearCache(cache_factory_list=('erp5_core_short', )) clearCache(cache_factory_list=('erp5_content_short', ))
self.getPersonModule().manage_delObjects([x for x in self.getPersonModule().manage_delObjects([x for x in
self.getPersonModule().objectIds()]) self.getPersonModule().objectIds()])
get_transaction().commit() get_transaction().commit()
...@@ -248,7 +248,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase): ...@@ -248,7 +248,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
# XXX Isn't it better to clear the cache when deleting a Person ? # XXX Isn't it better to clear the cache when deleting a Person ?
clearCache(cache_factory_list=('erp5_core_short', )) clearCache(cache_factory_list=('erp5_content_short', ))
def loginAsUser(self, username): def loginAsUser(self, username):
uf = self.portal.acl_users 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