Commit 517ed23a authored by Łukasz Nowak's avatar Łukasz Nowak

- remove not exact enough docstrings

 - add test for building invoice in case of local trade model line in order


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28265 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1abcd4f8
......@@ -1757,7 +1757,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
""" + AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING
def test_TradeModelRuleSimulationExpandOrderSpecialise(self):
"""Tests tree of simulations from Trade Model Rule"""
sequence_list = SequenceList()
sequence_string = self \
.TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING
......@@ -1765,7 +1764,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
sequence_list.play(self)
def test_TradeModelRuleSimulationReexpandOrderSpecialise(self):
"""Tests tree of simulations from Trade Model Rule with reexpanding"""
sequence_list = SequenceList()
sequence_string = self \
.TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING+ """
......@@ -1817,7 +1815,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
sequence_list.play(self)
def test_TradeModelRuleSimulationBuildInvoice(self):
"""Check that invoice lines on invoice are correctly set"""
sequence_list = SequenceList()
sequence_string = self.TRADE_MODEL_RULE_SIMULATION_SEQUENCE_STRING
sequence_string += """
......@@ -1840,6 +1837,30 @@ class TestTradeModelLine(TestTradeModelLineMixin):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_TradeModelRuleSimulationBuildInvoiceOrderSpecialise(self):
sequence_list = SequenceList()
sequence_string = self\
.TRADE_MODEL_RULE_SIMULATION_ORDER_SPECIALISED_SEQUENCE_STRING
sequence_string += """
ConfirmOrder
Tic
""" + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
GetPackingList
PackPackingList
Tic
""" + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
StartPackingList
StopPackingList
DeliverPackingList
Tic
""" + self.AGGREGATED_AMOUNT_SIMULATION_CHECK_SEQUENCE_STRING + """
GetInvoice
CheckInvoiceCausalityStateSolved
CheckInvoiceNormalMovements
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_TradeModelRuleSimulationBuildInvoiceNewTradeCondition(self):
"""Check that after changing trade condition invoice is not diverged"""
sequence_list = SequenceList()
......
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