[Erp5-report] r36520 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Simulation.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 22 17:36:18 CEST 2010
Author: kazuhiko
Date: Tue Jun 22 17:36:12 2010
New Revision: 36520
URL: http://svn.erp5.org?rev=36520&view=rev
Log:
override TestSaleInvoice.test_09_InvoiceChangeStartDateFail because the behaviour is different.
Modified:
erp5/trunk/products/ERP5/tests/testERP5Simulation.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=36520&r1=36519&r2=36520&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Tue Jun 22 17:36:12 2010
@@ -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()
More information about the Erp5-report
mailing list