From ebe5f5157ff4da3cdc2bafb32afb0fccae38f20b Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 22 Jun 2010 15:36:12 +0000 Subject: [PATCH] override TestSaleInvoice.test_09_InvoiceChangeStartDateFail because the behaviour is different. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36520 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Simulation.py | 43 +++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py index 91d9202ee8..4652d70ca2 100644 --- a/product/ERP5/tests/testERP5Simulation.py +++ b/product/ERP5/tests/testERP5Simulation.py @@ -543,7 +543,48 @@ for failing_method in [ expectedFailure(getattr(TestERP5SimulationPackingList, failing_method))) class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice): - pass + quiet = TestSaleInvoice.quiet + + def test_09_InvoiceChangeStartDateFail(self, quiet=quiet): + """ + Change the start_date of a Invoice Line, + check that the invoice is divergent, + then accept decision, and check Packing list is *not* divergent, + because Unify Solver does not propagage the change to the upper + simulation movement. + """ + if not quiet: + self.logMessage('Invoice Change Sart Date') + sequence = self.PACKING_LIST_DEFAULT_SEQUENCE + \ + """ + stepSetReadyPackingList + stepTic + stepStartPackingList + stepCheckInvoicingRule + stepCheckInvoiceTransactionRule + stepTic + stepCheckInvoiceBuilding + + stepChangeInvoiceStartDate + stepCheckInvoiceIsDivergent + stepCheckInvoiceIsCalculating + stepTic + stepCheckInvoiceIsDiverged + stepUnifyStartDateWithDecisionInvoice + stepTic + + stepCheckInvoiceNotSplitted + stepCheckInvoiceIsNotDivergent + stepCheckInvoiceIsSolved + + stepCheckPackingListIsNotDivergent + stepCheckPackingListIsSolved + stepCheckInvoiceTransactionRule + + stepRebuildAndCheckNothingIsCreated + stepCheckInvoicesConsistency + """ + self.playSequence(sequence, quiet=quiet) def test_suite(): suite = unittest.TestSuite() -- 2.30.9