Commit a78e3688 authored by Łukasz Nowak's avatar Łukasz Nowak

- do not clear cache in test, as it is not needed and prevent finding wrong caches


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e1b44b8
...@@ -57,8 +57,6 @@ class TestUserManagement(ERP5TypeTestCase): ...@@ -57,8 +57,6 @@ 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 ?
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()])
transaction.commit() transaction.commit()
...@@ -412,8 +410,6 @@ class TestLocalRoleManagement(ERP5TypeTestCase): ...@@ -412,8 +410,6 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
# commit this # commit this
transaction.commit() transaction.commit()
self.tic() self.tic()
# XXX Isn't it better to clear the cache when deleting a Person ?
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