Commit 9c5855dc authored by Romain Courteaud's avatar Romain Courteaud

Sale packing list are now created quicker.

parent 749b68e9
...@@ -999,10 +999,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -999,10 +999,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_computer = """ prepare_computer = """
LoginTestVifibAdmin LoginTestVifibAdmin
CustomerRegisterNewComputer CustomerRegisterNewComputer
Tic CleanTic
SetComputerCoordinatesFromComputerTitle SetComputerCoordinatesFromComputerTitle
ComputerSetAllocationScopeOpenPublic ComputerSetAllocationScopeOpenPublic
Tic CleanTic
CheckComputerTradeConditionDestinationSectionListEmpty CheckComputerTradeConditionDestinationSectionListEmpty
Logout Logout
""" """
...@@ -3695,11 +3695,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -3695,11 +3695,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def _checkSoftwareInstanceAndRelatedPartition(self, software_instance, def _checkSoftwareInstanceAndRelatedPartition(self, software_instance,
partition_portal_type=computer_partition_portal_type): partition_portal_type=computer_partition_portal_type):
# There should be only one Sale Packing List Line # There should be two Sale Packing List Line
sale_packing_list_line_list = software_instance\ sale_packing_list_line_list = software_instance\
.getAggregateRelatedValueList( .getAggregateRelatedValueList(
portal_type=self.sale_packing_list_line_portal_type) portal_type=self.sale_packing_list_line_portal_type)
self.assertEqual(1, len(sale_packing_list_line_list)) self.assertEqual(2, len(sale_packing_list_line_list))
sale_packing_list_line = sale_packing_list_line_list[0] sale_packing_list_line = sale_packing_list_line_list[0]
# This Sale Packing List Line shall have only one Computer Partition # This Sale Packing List Line shall have only one Computer Partition
...@@ -3709,11 +3709,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -3709,11 +3709,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition = computer_partition_list[0] computer_partition = computer_partition_list[0]
# This Computer Partition shall have only Sale Packing List Line related # This Computer Partition shall have two Sale Packing List Line related
computer_partition_sale_packing_list_line_list = computer_partition\ computer_partition_sale_packing_list_line_list = computer_partition\
.getAggregateRelatedValueList( .getAggregateRelatedValueList(
portal_type=self.sale_packing_list_line_portal_type) portal_type=self.sale_packing_list_line_portal_type)
self.assertEqual(1, len(computer_partition_sale_packing_list_line_list)) self.assertEqual(2, len(computer_partition_sale_packing_list_line_list))
def stepCheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition(self, def stepCheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition(self,
sequence, **kw): sequence, **kw):
......
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