get_transaction() is no more

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34531 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7db24ed
No related merge requests found
...@@ -586,10 +586,10 @@ class TestBug(ERP5TypeTestCase): ...@@ -586,10 +586,10 @@ class TestBug(ERP5TypeTestCase):
cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1) cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1)
self.workflow_tool.doActionFor(bug, 'confirm_action', send_event=1) self.workflow_tool.doActionFor(bug, 'confirm_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'confirmed') self.assertEquals(bug.getSimulationState(), 'confirmed')
get_transaction().commit() transaction.commit()
self.tic() self.tic()
bug.deleteContent(id='2') bug.deleteContent(id='2')
get_transaction().commit() transaction.commit()
self.tic() self.tic()
self.workflow_tool.doActionFor(bug, 'stop_action', send_event=1) self.workflow_tool.doActionFor(bug, 'stop_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'stopped') self.assertEquals(bug.getSimulationState(), 'stopped')
......
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