Commit 80000ee5 authored by Nicolas Delaby's avatar Nicolas Delaby

Follows last changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23372 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90c18294
...@@ -304,7 +304,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -304,7 +304,7 @@ class TestBug(ERP5TypeTestCase):
Open the bug. Open the bug.
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'confirm_action') self.workflow_tool.doActionFor(bug, 'confirm_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'confirmed') self.assertEquals(bug.getSimulationState(), 'confirmed')
def stepAssignBug(self, sequence=None, sequence_list=None, **kw): def stepAssignBug(self, sequence=None, sequence_list=None, **kw):
...@@ -312,7 +312,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -312,7 +312,7 @@ class TestBug(ERP5TypeTestCase):
Close the bug. Close the bug.
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'set_ready_action') self.workflow_tool.doActionFor(bug, 'set_ready_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'ready') self.assertEquals(bug.getSimulationState(), 'ready')
def stepResolveBug(self, sequence=None, sequence_list=None, **kw): def stepResolveBug(self, sequence=None, sequence_list=None, **kw):
...@@ -320,16 +320,23 @@ class TestBug(ERP5TypeTestCase): ...@@ -320,16 +320,23 @@ class TestBug(ERP5TypeTestCase):
Close the bug. Close the bug.
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'stop_action') self.workflow_tool.doActionFor(bug, 'stop_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'stopped') self.assertEquals(bug.getSimulationState(), 'stopped')
def stepReAssignBug(self, sequence=None, sequence_list=None, **kw):
"""
Close the bug.
"""
bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 're_assign_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'ready')
def stepCloseBug(self, sequence=None, sequence_list=None, **kw): def stepCloseBug(self, sequence=None, sequence_list=None, **kw):
""" """
Close the bug. Close the bug.
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'deliver_action') self.workflow_tool.doActionFor(bug, 'deliver_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'delivered') self.assertEquals(bug.getSimulationState(), 'delivered')
def stepCancelBug(self, sequence=None, sequence_list=None, **kw): def stepCancelBug(self, sequence=None, sequence_list=None, **kw):
...@@ -337,7 +344,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -337,7 +344,7 @@ class TestBug(ERP5TypeTestCase):
Cancel the bug. Cancel the bug.
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'cancel_action') self.workflow_tool.doActionFor(bug, 'cancel_action', send_event=1)
self.assertEquals(bug.getSimulationState(), 'cancelled') self.assertEquals(bug.getSimulationState(), 'cancelled')
def stepSetTestedBug(self, sequence=None, sequence_list=None, **kw): def stepSetTestedBug(self, sequence=None, sequence_list=None, **kw):
...@@ -381,7 +388,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -381,7 +388,7 @@ class TestBug(ERP5TypeTestCase):
, 'stepTic' , 'stepTic'
, 'stepResolveBug' , 'stepResolveBug'
, 'stepTic' , 'stepTic'
, 'stepAssignBug' , 'stepReAssignBug'
, 'stepTic' , 'stepTic'
, 'stepResolveBug' , 'stepResolveBug'
, 'stepTic' , 'stepTic'
...@@ -416,7 +423,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -416,7 +423,7 @@ class TestBug(ERP5TypeTestCase):
, 'stepResolveBug' , 'stepResolveBug'
, 'stepTic' , 'stepTic'
, 'stepCheckBugNotification' , 'stepCheckBugNotification'
, 'stepAssignBug' , 'stepReAssignBug'
, 'stepTic' , 'stepTic'
, 'stepCheckBugNotification' , 'stepCheckBugNotification'
, 'stepResolveBug' , 'stepResolveBug'
......
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