[Erp5-report] r16649 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 27 12:03:34 CEST 2007


Author: seb
Date: Thu Sep 27 12:03:33 2007
New Revision: 16649

URL: http://svn.erp5.org?rev=16649&view=rev
Log:
add many worklist checks

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py Thu Sep 27 12:03:33 2007
@@ -220,6 +220,7 @@
         quantity_unit_value=self.unit)
     self.assertNotEqual(self.check_operation_line_1, None)
     self.assertEqual(len(self.check_deposit.objectIds()), 1)
+    import pdb; pdb.set_trace()
 
 
   def stepAddWrongCheckOperationLine(self, sequence=None, sequence_list=None, **kwd):
@@ -319,6 +320,9 @@
     if hasattr(self, 'check_deposit'):
       self.check_deposit_module.manage_delObjects([self.check_deposit.getId(),])
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.check_deposit)
+
   def test_01_ERP5BankingCheckDeposit(self, quiet=QUIET, run=RUN_ALL_TEST):
     """
     Define the sequence of step that will be play
@@ -328,8 +332,12 @@
     # define the sequence
     sequence_string1 = 'Tic CheckObjects Tic CheckInitialInventory ' \
                        + 'CreateCheckDepositOperation Tic ' \
+                       + 'CheckWorklist Tic ' \
                        + 'AddCheckOperationLine Tic ' \
-                       + 'PlanCheckDepositOperation Tic OrderCheckDepositOperation ' \
+                       + 'PlanCheckDepositOperation Tic ' \
+                       + 'CheckWorklist Tic ' \
+                       + 'OrderCheckDepositOperation Tic ' \
+                       + 'CheckWorklist Tic ' \
                        + 'Tic DeliverCheckDepositOperation Tic ' \
                        + 'CheckBankAccountInventoryAfterCheckDepositDelivered'
     # one to test reject

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py Thu Sep 27 12:03:33 2007
@@ -492,6 +492,9 @@
         wf_id='check_workflow')
     self.assertEquals(check.getSimulationState(), 'confirmed')
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.check_payment)
+
 class TestERP5BankingCheckPayment(TestERP5BankingCheckPaymentMixin,
                                   TestERP5BankingMixin, ERP5TypeTestCase):
 
@@ -508,11 +511,14 @@
     # define the sequence
     sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
                       'CreateCheckPayment Tic ' \
+                      'Tic CheckWorklist ' \
                       'CheckConsistency Tic ' \
+                      'Tic CheckWorklist ' \
                       'stepValidateAnotherCheckPaymentWorks Tic ' \
                       'SendToCounter ' \
                       'stepValidateAnotherCheckPaymentFails Tic ' \
                       'CheckConfirmedInventory ' \
+                      'Tic CheckWorklist ' \
                       'stepValidateAnotherCheckPaymentFailsAgain Tic ' \
                       'InputCashDetails Tic ' \
                       'ResetInventory Tic ' \

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py Thu Sep 27 12:03:33 2007
@@ -510,6 +510,9 @@
               'classification_survey_workflow','deliver_action')
     self.failUnless(message.find('Insufficient balance')>=0)
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.classification_survey)
+
   ##################################
   ##  Tests
   ##################################
@@ -526,6 +529,7 @@
                     + 'CreateTwoValidIncomingLine CheckSubTotal ' \
                     + 'CreateValidOutgoingLineForInternalBanknote ' \
                     + 'CreateValidOutgoingLineForExternalBanknote ' \
+                    + 'Tic CheckWorklist ' \
                     + 'Tic CheckTotal ' \
                     + 'CheckSource CheckDestination ' \
                     + 'ConfirmClassificationSurvey Tic ' \
@@ -533,6 +537,7 @@
                     + 'ResetSourceInventory Tic ' \
                     + 'DeliverClassificationSurveyFails Tic ' \
                     + 'DeleteResetInventory Tic ' \
+                    + 'Tic CheckWorklist ' \
                     + 'DeliverClassificationSurvey Tic ' \
                     + 'CheckSourceDebit CheckDestinationCredit '
     sequence_list.addSequenceString(sequence_string)

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py Thu Sep 27 12:03:33 2007
@@ -498,6 +498,8 @@
               'counter_rendering_workflow','deliver_action')
     self.failUnless(message.find('Insufficient balance')>=0)
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.counter_rendering)
 
   ##################################
   ##  Tests
@@ -519,12 +521,14 @@
                     + 'CreateInvalidLine ' \
                     + 'TryConfirmCounterRenderingWithBadInventory ' \
                     + 'DelInvalidLine Tic CheckTotal ' \
+                    + 'Tic CheckWorklist ' \
                     + 'ConfirmCounterRendering ' \
                     + 'Tic CheckSourceDebitPlanned CheckDestinationCreditPlanned ' \
                     + 'CheckSourceDebitPlanned CheckDestinationCreditPlanned ' \
                     + 'ResetInventory Tic ' \
                     + 'DeliverFails ' \
                     + 'DeleteResetInventory Tic ' \
+                    + 'Tic CheckWorklist ' \
                     + 'DeliverCounterRendering ' \
                     + 'CheckSourceDebit CheckDestinationCredit '
     sequence_list.addSequenceString(sequence_string)

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py Thu Sep 27 12:03:33 2007
@@ -433,6 +433,9 @@
               'destruction_survey_workflow','deliver_action')
     self.failUnless(message.find('Insufficient balance')>=0)
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.destruction_survey)
+
   ##################################
   ##  Tests
   ##################################
@@ -452,10 +455,12 @@
                     + 'CreateInvalidLine ' \
                     + 'TryConfirmDestructionSurveyWithBadInventory ' \
                     + 'DelInvalidLine Tic CheckTotal ' \
+                    + 'Tic CheckWorklist ' \
                     + 'ConfirmDestructionSurvey ' \
                     + 'ResetSourceInventory Tic ' \
                     + 'DeliverDestructionSurveyFails Tic ' \
                     + 'DeleteResetInventory Tic ' \
+                    + 'Tic CheckWorklist ' \
                     + 'DeliverDestructionSurvey ' \
                     + 'CheckSourceFinal CheckDestinationFinal '
     sequence_list.addSequenceString(sequence_string)

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py Thu Sep 27 12:03:33 2007
@@ -357,6 +357,9 @@
     self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.reception.getRelativeUrl(), resource = self.usd_billet_20.getRelativeUrl()), 5.0)
     self.assertEqual(self.simulation_tool.getFutureInventory(node=self.reception.getRelativeUrl(), resource = self.usd_billet_20.getRelativeUrl()), 5.0)
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.foreign_cash_reception)
+
   ##################################
   ##  Tests
   ##################################
@@ -375,8 +378,10 @@
                     + 'CreateValidLine2 Tic ' \
                     + 'CheckValidLine1 ' \
                     + 'CheckValidLine2 ' \
+                    + 'Tic CheckWorklist ' \
                     + 'ConfirmForeignCashReception Tic ' \
                     + 'CheckConfirmedInventory ' \
+                    + 'Tic CheckWorklist ' \
                     + 'DeliverForeignCashReception Tic ' \
                     + 'CheckFinalInventory'
     sequence_list.addSequenceString(sequence_string)

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py Thu Sep 27 12:03:33 2007
@@ -178,7 +178,6 @@
     self.internal_money_deposit = self.internal_money_deposit_module.newContent(
                                     id='internal_money_deposit', 
                                     portal_type='Internal Money Deposit', 
-                                    destination_value=self.bi_counter,
                                     resource_value = self.currency_1,
                                     source_total_asset_price=20000.0,
                                     grouping_reference="lettering",
@@ -264,7 +263,8 @@
     """
     self.internal_money_deposit_module.deleteContent('internal_money_deposit_1')
 
-
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.internal_money_deposit)
 
   ##################################
   ##  Tests
@@ -280,6 +280,7 @@
     sequence_string = 'Tic CheckObjects Tic CheckInitialInventory ' \
                     + 'CreateInternalMoneyDeposit ' \
                     + 'InputCashDetails  Tic ' \
+                    + 'Tic CheckWorklist ' \
                     + 'DeliverInternalMoneyDeposit Tic ' \
                     + 'CheckFinalInventory'
     sequence_list.addSequenceString(sequence_string)

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py?rev=16649&r1=16648&r2=16649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py Thu Sep 27 12:03:33 2007
@@ -792,6 +792,9 @@
               'monetary_destruction_workflow','deliver_action')
     self.failUnless(message.find('Insufficient balance')>=0)
 
+  def stepCheckWorklist(self, **kw):
+    self.checkWorklist(self.monetary_destruction)
+
   ##################################
   ##  Tests
   ##################################
@@ -812,11 +815,13 @@
                     + 'TryPlannedMonetaryDestructionWithBadInventory ' \
                     + 'DelInvalidLine Tic CheckTotal ' \
                     + 'SetMonetaryDestructionSourceTotalAssetPrice ' \
+                    + 'Tic CheckWorklist ' \
                     + 'PlannedMonetaryDestruction ' \
                     + 'CheckSourceDebitPlanned ' \
                     + 'ResetInventory Tic ' \
                     + 'ValidateFails ' \
                     + 'DeleteResetInventory Tic ' \
+                    + 'Tic CheckWorklist ' \
                     + 'ValidateMonetaryDestruction ' \
                     + 'CheckSourceDebit ' \
                     + 'Tic DelMonetaryDestruction Tic'




More information about the Erp5-report mailing list