Commit 24a1b0c8 authored by Kevin Deldycke's avatar Kevin Deldycke

Fix state tests.

Set bug as tested before closing it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b46ec583
...@@ -150,7 +150,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -150,7 +150,7 @@ class TestBug(ERP5TypeTestCase):
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'close_action') self.workflow_tool.doActionFor(bug, 'close_action')
self.assertEquals(bug.getValidationState(), 'close') self.assertEquals(bug.getValidationState(), 'closed')
def stepCancelBug(self, sequence=None, sequence_list=None, **kw): def stepCancelBug(self, sequence=None, sequence_list=None, **kw):
...@@ -159,7 +159,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -159,7 +159,7 @@ class TestBug(ERP5TypeTestCase):
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'cancel_action') self.workflow_tool.doActionFor(bug, 'cancel_action')
self.assertEquals(bug.getValidationState(), 'cancel') self.assertEquals(bug.getValidationState(), 'cancelled')
def stepFollowBug(self, sequence=None, sequence_list=None, **kw): def stepFollowBug(self, sequence=None, sequence_list=None, **kw):
...@@ -168,7 +168,6 @@ class TestBug(ERP5TypeTestCase): ...@@ -168,7 +168,6 @@ class TestBug(ERP5TypeTestCase):
""" """
bug = sequence.get('bug') bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'follow_action', comment="Your Bug report is bad. You don't know how to report a bug. Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html and resubmit your bug.") self.workflow_tool.doActionFor(bug, 'follow_action', comment="Your Bug report is bad. You don't know how to report a bug. Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html and resubmit your bug.")
self.assertEquals(bug.getValidationState(), 'follow')
def stepSetTestedBug(self, sequence=None, sequence_list=None, **kw): def stepSetTestedBug(self, sequence=None, sequence_list=None, **kw):
...@@ -212,6 +211,7 @@ class TestBug(ERP5TypeTestCase): ...@@ -212,6 +211,7 @@ class TestBug(ERP5TypeTestCase):
, 'stepOpenBug' , 'stepOpenBug'
, 'stepTic' , 'stepTic'
, 'stepSetOldClosedDate' , 'stepSetOldClosedDate'
, 'stepSetTestedBug'
, 'stepCloseBug' , 'stepCloseBug'
, 'stepTic' , 'stepTic'
, 'stepCheckClosedDate' , 'stepCheckClosedDate'
......
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