[Erp5-report] r18897 - /erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 29 10:02:48 CET 2008


Author: aurel
Date: Tue Jan 29 10:02:48 2008
New Revision: 18897

URL: http://svn.erp5.org?rev=18897&view=rev
Log:
cancel is no longer possible, we must reject the document before

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py?rev=18897&r1=18896&r2=18897&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py Tue Jan 29 10:02:48 2008
@@ -311,8 +311,11 @@
         self.failUnless(message.find('Bank account is not sufficient')>=0)
       self.assertEqual(new_payment.getSimulationState(), 'planned')
       get_transaction().commit()
+      self.workflow_tool.doActionFor(new_payment, 'reject_action', 
+                                     wf_id='check_payment_workflow')
       self.workflow_tool.doActionFor(new_payment, 'cancel_action', 
                                      wf_id='check_payment_workflow')
+            
     else:
       self.workflow_tool.doActionFor( 
                         new_payment, 'confirm_action', 
@@ -325,6 +328,8 @@
                            'check_payment_workflow','deliver_action')
         LOG('self.assertWorkflowTransitionFails message',0,message)
         self.failUnless(message.find('There are operations pending for this vault')>=0)
+      self.workflow_tool.doActionFor(new_payment, 'reject_action', 
+                                     wf_id='check_payment_workflow')
       self.workflow_tool.doActionFor(new_payment, 'cancel_action', 
                                      wf_id='check_payment_workflow')
 




More information about the Erp5-report mailing list