Commit ec37b17b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! test: set preference owner for accounting tests.

parent 24acf786
......@@ -38,10 +38,12 @@ class TestZeleniumCore(ERP5TypeFunctionalTestCase):
def afterSetUp(self):
# change ownership of the preference
self.portal.portal_preferences.accounting_zuite_preference.changeOwnership(
getSecurityManager().getUser(),
True,
pref = self.portal.portal_preferences._getOb(
'accounting_zuite_preference',
None,
)
if pref is not None:
pref.changeOwnership(getSecurityManager().getUser(), True)
super(TestZeleniumCore, self).afterSetUp()
def getBusinessTemplateList(self):
......
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