Commit d0a3cbf8 authored by Łukasz Nowak's avatar Łukasz Nowak

- method name rename, docstring addition/update

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8bc90869
...@@ -103,10 +103,10 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -103,10 +103,10 @@ class TestProductionOrderMixin(TestOrderMixin):
portal_type='Category', portal_type='Category',
id=category_id) id=category_id)
def stepCreateBrandCompositionVariatedComponent1(self,sequence=None, sequence_list=None, \ def stepCreateColourSizeVariatedComponent1(self,sequence=None, sequence_list=None, \
**kw): **kw):
""" """
Create a resource with no variation Create a resource with colour and size variation
""" """
portal = self.getPortal() portal = self.getPortal()
resource_module = portal.getDefaultModule(self.component_portal_type) resource_module = portal.getDefaultModule(self.component_portal_type)
...@@ -306,6 +306,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -306,6 +306,9 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepSetTransformationTransformedResourceQuantityMatrix(self, sequence=None, sequence_list=None, def stepSetTransformationTransformedResourceQuantityMatrix(self, sequence=None, sequence_list=None,
**kw): **kw):
"""
Fills variation based quantity matrix
"""
transformation_transformed_resource = sequence.get('transformation_transformed_resource') transformation_transformed_resource = sequence.get('transformation_transformed_resource')
colour_count = size_count = 0 colour_count = size_count = 0
...@@ -327,6 +330,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -327,6 +330,9 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepSetTransformationTransformedResourceVariationMatrix(self, sequence=None, sequence_list=None, def stepSetTransformationTransformedResourceVariationMatrix(self, sequence=None, sequence_list=None,
**kw): **kw):
"""
Fills variation matrix
"""
transformation_transformed_resource = sequence.get('transformation_transformed_resource') transformation_transformed_resource = sequence.get('transformation_transformed_resource')
colour_count = size_count = 0 colour_count = size_count = 0
...@@ -348,6 +354,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -348,6 +354,9 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepSetOrderLineQuantityMatrix(self, sequence=None, sequence_list=None, def stepSetOrderLineQuantityMatrix(self, sequence=None, sequence_list=None,
**kw): **kw):
"""
Fills variation based quantity matrix
"""
order_line = sequence.get('order_line') order_line = sequence.get('order_line')
colour_count = size_count = 0 colour_count = size_count = 0
...@@ -377,6 +386,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -377,6 +386,9 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepSetTransformationTransformedResourceVariation(self, sequence=None, sequence_list=None, def stepSetTransformationTransformedResourceVariation(self, sequence=None, sequence_list=None,
**kw): **kw):
"""
Fills categories of variation
"""
transformation_transformed_resource = sequence.get('transformation_transformed_resource') transformation_transformed_resource = sequence.get('transformation_transformed_resource')
...@@ -387,6 +399,9 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -387,6 +399,9 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepSetTransformationVariation(self, sequence=None, sequence_list=None, def stepSetTransformationVariation(self, sequence=None, sequence_list=None,
**kw): **kw):
"""
Fills categories of variation
"""
transformation = sequence.get('transformation') transformation = sequence.get('transformation')
...@@ -513,7 +528,7 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -513,7 +528,7 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepCreateOrder(self, sequence=None, sequence_list=None, **kw): def stepCreateOrder(self, sequence=None, sequence_list=None, **kw):
""" """
Create a empty order Create a filled order
""" """
portal = self.getPortal() portal = self.getPortal()
order_module = portal.getDefaultModule(portal_type=self.order_portal_type) order_module = portal.getDefaultModule(portal_type=self.order_portal_type)
...@@ -531,7 +546,7 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -531,7 +546,7 @@ class TestProductionOrderMixin(TestOrderMixin):
def stepCreateOrderLine(self, sequence=None, sequence_list=None, **kw): def stepCreateOrderLine(self, sequence=None, sequence_list=None, **kw):
""" """
Create a empty order line Create a filled order line
""" """
order = sequence.get('order') order = sequence.get('order')
order_line = order.newContent(portal_type=self.order_line_portal_type) order_line = order.newContent(portal_type=self.order_line_portal_type)
...@@ -1696,7 +1711,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase): ...@@ -1696,7 +1711,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
CreateSourcingSC \ CreateSourcingSC \
Tic \ Tic \
CreateColourSizeVariatedResource \ CreateColourSizeVariatedResource \
CreateBrandCompositionVariatedComponent1 \ CreateColourSizeVariatedComponent1 \
Tic \ Tic \
CreateEmptyTransformation \ CreateEmptyTransformation \
FillTransformationWithResource \ FillTransformationWithResource \
......
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