Commit 8f4e126e authored by Nicolas Dumazet's avatar Nicolas Dumazet

* base_id is movement.

* assert that movement_list is not empty to avoid silent failures


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33484 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f6bb2295
......@@ -348,10 +348,10 @@ class TestProductionOrderMixin(TestOrderMixin):
for colour in self.colour_list:
for size in self.mrp_size_list:
order_line.newCell(
'colour/%s' % colour,
'size/%s' % size,
'colour/%s' % colour,
quantity = self.order_line_colour_size_quantity_dict[colour][size],
base_id="quantity",
base_id='movement',
)
def stepSetOrderLineVariationCategories(self, sequence=None, sequence_list=None,
......@@ -555,7 +555,10 @@ class TestProductionOrderMixin(TestOrderMixin):
# used in production simulations.
order = sequence.get('order')
for order_movement in order.getMovementList():
movement_list = order.getMovementList()
self.assertNotEqual(len(movement_list), 0)
for order_movement in movement_list:
size = order_movement.getSize()
colour = order_movement.getColour()
......
......@@ -345,10 +345,10 @@ class TestProductionOrderMixin(TestOrderMixin):
for colour in self.colour_list:
for size in self.mrp_size_list:
order_line.newCell(
'colour/%s' % colour,
'size/%s' % size,
'colour/%s' % colour,
quantity = self.order_line_colour_size_quantity_dict[colour][size],
base_id="quantity",
base_id='movement',
)
def stepSetOrderLineVariationCategories(self, sequence=None, sequence_list=None,
......@@ -552,7 +552,10 @@ class TestProductionOrderMixin(TestOrderMixin):
# used in production simulations.
order = sequence.get('order')
for order_movement in order.getMovementList():
movement_list = order.getMovementList()
self.assertNotEqual(len(movement_list), 0)
for order_movement in movement_list:
size = order_movement.getSize()
colour = order_movement.getColour()
......
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