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,6 +57,7 @@ class TestPreferences(ERP5TypeTestCase): ...@@ -57,6 +57,7 @@ class TestPreferences(ERP5TypeTestCase):
uf._doAddUser('manager', '', ['Manager', 'Owner', 'Assignor'], []) uf._doAddUser('manager', '', ['Manager', 'Owner', 'Assignor'], [])
user = uf.getUserById('manager').__of__(uf) user = uf.getUserById('manager').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
if getattr(self.getPreferenceTool(), 'person1', None) is None :
self.createPreferences() self.createPreferences()
def createPreferences(self) : def createPreferences(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