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

- clean up preferences before running each tests to have predictable test environment


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28238 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 093bffae
......@@ -58,6 +58,11 @@ class TestTemplate(ERP5TypeTestCase):
newSecurityManager(None, user)
def afterSetUp(self):
ERP5TypeTestCase.login(self, 'ERP5TypeTestCase')
portal_preferences = self.portal.portal_preferences
portal_preferences.deleteContent(list(portal_preferences.objectIds()))
transaction.commit()
self.tic()
self.portal.portal_types['Preference'].allowed_content_types = ('Foo',)
self.portal.foo_module.manage_role(role_to_manage='Author',
permissions=[Permissions.AddPortalContent,
......
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