Commit d1793c84 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a test to chec if unnecessary simulation movement is well deleted by expand.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35843 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7af88b20
...@@ -1060,6 +1060,13 @@ class TestOrderMixin: ...@@ -1060,6 +1060,13 @@ class TestOrderMixin:
order_line = sequence.get('order_line') order_line = sequence.get('order_line')
order_line.setQuantity(order_line.getQuantity() + 111) order_line.setQuantity(order_line.getQuantity() + 111)
def stepDeleteOrderLine(self, sequence=None, sequence_list=None, **kw):
"""
Delete order line
"""
order_line = sequence.get('order_line')
order_line.getParentValue().manage_delObjects([order_line.getId()])
def stepCheckOrderSimulationStable(self, sequence=None, \ def stepCheckOrderSimulationStable(self, sequence=None, \
sequence_list=None, **kw): sequence_list=None, **kw):
""" """
...@@ -1746,6 +1753,21 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -1746,6 +1753,21 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
' '
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
# Test when order line is deleted
sequence_string = '\
stepCreateOrganisation \
stepCreateProject \
' + self.non_variated_order_creation + '\
stepOrderOrder \
stepTic \
stepDeleteOrderLine \
stepTic \
stepConfirmOrder \
stepTic \
stepCheckOrderSimulation \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
# XXX # XXX
......
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