Commit 49f1fa72 authored by Romain Courteaud's avatar Romain Courteaud

Do not modify order line with edit but with a setter, in order to be sure it

works with it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd20ed19
...@@ -926,7 +926,7 @@ class TestOrderMixin: ...@@ -926,7 +926,7 @@ class TestOrderMixin:
Modify order line start date Modify order line start date
""" """
order_line = sequence.get('order_line') order_line = sequence.get('order_line')
order_line.edit(start_date=self.datetime + 88) order_line._setStartDate(self.datetime + 88)
def stepModifyOrderCellStartDate(self, sequence=None, sequence_list=None, \ def stepModifyOrderCellStartDate(self, sequence=None, sequence_list=None, \
**kw): **kw):
...@@ -1551,6 +1551,18 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -1551,6 +1551,18 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
# Test when workflow state is modified
sequence_string = '\
stepCreateOrganisation \
' + self.variated_order_creation + '\
stepPlanOrder \
stepTic \
stepOrderOrder \
stepTic \
stepCheckOrderSimulation \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
# XXX # XXX
...@@ -1808,4 +1820,3 @@ else: ...@@ -1808,4 +1820,3 @@ else:
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestOrder)) suite.addTest(unittest.makeSuite(TestOrder))
return suite return suite
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