Commit 0a1b7851 authored by Aurel's avatar Aurel

cancel is no longer possible, we must reject the document before


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18897 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e87b5f0
......@@ -311,8 +311,11 @@ class TestERP5BankingCheckPaymentMixin:
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 @@ class TestERP5BankingCheckPaymentMixin:
'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')
......
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