Commit 140b31ec authored by Sebastien Robin's avatar Sebastien Robin

changed Delivery Cell, by Sale Packing List Cell, still one test failing


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3888 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9dcebb39
...@@ -68,7 +68,7 @@ class TestOrderMixin: ...@@ -68,7 +68,7 @@ class TestOrderMixin:
datetime = DateTime() datetime = DateTime()
packing_list_portal_type = 'Sale Packing List' packing_list_portal_type = 'Sale Packing List'
packing_list_line_portal_type = 'Sale Packing List Line' packing_list_line_portal_type = 'Sale Packing List Line'
packing_list_cell_portal_type = 'Delivery Cell' packing_list_cell_portal_type = 'Sale Packing List Cell'
delivery_builder_id = 'sale_packing_list_builder' delivery_builder_id = 'sale_packing_list_builder'
order_workflow_id='order_workflow' order_workflow_id='order_workflow'
...@@ -136,6 +136,9 @@ class TestOrderMixin: ...@@ -136,6 +136,9 @@ class TestOrderMixin:
) )
sequence.edit( resource = resource ) sequence.edit( resource = resource )
resource_list = sequence.get('resource_list',default=[])
resource_list.append(resource)
sequence.edit( resource_list = resource_list )
def stepCreateVariatedResource(self, sequence=None, sequence_list=None, \ def stepCreateVariatedResource(self, sequence=None, sequence_list=None, \
**kw): **kw):
...@@ -169,6 +172,9 @@ class TestOrderMixin: ...@@ -169,6 +172,9 @@ class TestOrderMixin:
) )
sequence.edit( resource = resource ) sequence.edit( resource = resource )
resource_list = sequence.get('resource_list',default=[])
resource_list.append(resource)
sequence.edit( resource_list = resource_list )
def stepCreateOrganisation(self, sequence=None, sequence_list=None, def stepCreateOrganisation(self, sequence=None, sequence_list=None,
title='organisation', **kw): title='organisation', **kw):
...@@ -543,12 +549,15 @@ class TestOrderMixin: ...@@ -543,12 +549,15 @@ class TestOrderMixin:
""" """
Check if properties are well acquired Check if properties are well acquired
""" """
# packing_list_movement, simulation_movement
self.assertEquals(acquired_object.getStartDate(), object.getStartDate()) self.assertEquals(acquired_object.getStartDate(), object.getStartDate())
self.assertEquals(acquired_object.getStopDate(), object.getStopDate()) self.assertEquals(acquired_object.getStopDate(), object.getStopDate())
self.assertEquals(acquired_object.getSourceValue(), \ self.assertEquals(acquired_object.getSourceValue(), \
object.getSourceValue()) object.getSourceValue())
self.assertEquals(acquired_object.getDestinationValue(), \ self.assertEquals(acquired_object.getDestinationValue(), \
object.getDestinationValue()) object.getDestinationValue())
self.assertEquals(acquired_object.getSourceSectionValue(), \ self.assertEquals(acquired_object.getSourceSectionValue(), \
object.getSourceSectionValue()) object.getSourceSectionValue())
self.assertEquals(acquired_object.getDestinationSectionValue(), \ self.assertEquals(acquired_object.getDestinationSectionValue(), \
...@@ -773,6 +782,7 @@ class TestOrderMixin: ...@@ -773,6 +782,7 @@ class TestOrderMixin:
for packing_list_movement in packing_list_movement_list: for packing_list_movement in packing_list_movement_list:
related_simulation_movement_list = packing_list_movement.\ related_simulation_movement_list = packing_list_movement.\
getDeliveryRelatedValueList(portal_type='Simulation Movement') getDeliveryRelatedValueList(portal_type='Simulation Movement')
self.failUnless(len(related_simulation_movement_list)>0)
quantity = 0 quantity = 0
total_price = 0 total_price = 0
packing_list_movement_quantity = packing_list_movement.getQuantity() packing_list_movement_quantity = packing_list_movement.getQuantity()
......
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