Commit 6ecac4cc authored by Yoshinori Okuji's avatar Yoshinori Okuji

Clear the cache before running.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4473 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 472829d5
......@@ -343,8 +343,12 @@ def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name,
portal_activities.tic()
get_transaction().commit()
# Reset aq dynamic, so all unit tests will start again
# Also, the cache must be invalidated, because portal methods
# must return current information
from Products.ERP5Type.Base import _aq_reset
from Products.ERP5Type.Cache import clearCache
_aq_reset()
clearCache()
# Log out
if not quiet: ZopeTestCase._print('Logout ... \n')
noSecurityManager()
......
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