Commit 35f0a201 authored by Jérome Perrin's avatar Jérome Perrin

Make sure _aq_dynamic is called before calling the workflow method, otherwise...

Make sure _aq_dynamic is called before calling the workflow method, otherwise .enable might not been wrapped yet. This happen in --load



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16291 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d89cb97
......@@ -171,9 +171,12 @@ class AccountingTestCase(ERP5TypeTestCase):
doc.validate()
# and the preference enabled
self.portal.portal_preferences.accounting_zuite_preference\
.manage_addLocalRoles(self.username, ('Auditor', ))
self.portal.portal_preferences.accounting_zuite_preference.enable()
preference = self.portal.portal_preferences.accounting_zuite_preference
pref.manage_addLocalRoles(self.username, ('Auditor', ))
# Make sure _aq_dynamic is called before calling the workflow method
# otherwise .enable might not been wrapped yet. This happen in --load
pref._aq_dynamic('hack')
pref.enable()
# and all this available to catalog
get_transaction().commit()
......
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