Commit d27a4562 authored by Sebastien Robin's avatar Sebastien Robin

add a step in order to check the worklist

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16246 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 061c07ec
......@@ -309,6 +309,17 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
"""
self.assertEqual(self.check_1.getSimulationState(),'confirmed')
def stepCheckConfirmedWorklist(self, sequence=None, sequence_list=None, **kw):
"""
"""
actions = self.getPortal().portal_actions.listFilteredActionsFor(self.stop_payment)
found = 0
for action in actions['global']:
if action.get('workflow_id', None) == 'stop_payment_workflow':
if action.get('title', None) == 'Stop Payment To Confirm (1)':
found = 1
self.assertEquals(found, 1)
##################################
## Tests
##################################
......@@ -325,6 +336,7 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
+ 'CreateStopPayment Tic ' \
+ 'SetStopPaymentDebit Tic ' \
+ 'ConfirmStopPayment Tic ' \
+ 'CheckConfirmedWorklist Tic ' \
+ 'CheckLineCreated Tic ' \
+ 'CheckConfirmedCheckbookInventory ' \
+ 'StartStopPayment Tic ' \
......
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