Commit 776c8ff0 authored by Jérome Perrin's avatar Jérome Perrin

Make sure transaction is not committed yet before (re)creating new objects.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4101 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56379087
......@@ -57,7 +57,8 @@ class TestPreferences(ERP5TypeTestCase):
uf._doAddUser('manager', '', ['Manager', 'Owner', 'Assignor'], [])
user = uf.getUserById('manager').__of__(uf)
newSecurityManager(None, user)
self.createPreferences()
if getattr(self.getPreferenceTool(), 'person1', None) is None :
self.createPreferences()
def createPreferences(self) :
""" create some preferences objects """
......
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