Commit 406c3bf9 authored by Sebastien Robin's avatar Sebastien Robin

many modificaitions related to the new default state and also to new checks on counters

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15311 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e19801c1
...@@ -231,7 +231,7 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin, ...@@ -231,7 +231,7 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin,
""" """
state = self.checkbook_delivery.getSimulationState() state = self.checkbook_delivery.getSimulationState()
# check that state is draft # check that state is draft
self.assertEqual(state, 'draft') self.assertEqual(state, 'empty')
self.workflow_tool.doActionFor(self.checkbook_delivery, self.workflow_tool.doActionFor(self.checkbook_delivery,
'deliver_action', 'deliver_action',
wf_id='checkbook_delivery_workflow') wf_id='checkbook_delivery_workflow')
......
...@@ -268,7 +268,7 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -268,7 +268,7 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
state = self.checkbook_reception.getSimulationState() state = self.checkbook_reception.getSimulationState()
# check that state is draft # check that state is draft
self.assertEqual(state, 'draft') self.assertEqual(state, 'empty')
self.workflow_tool.doActionFor(self.checkbook_reception, 'confirm_action', wf_id='checkbook_reception_workflow') self.workflow_tool.doActionFor(self.checkbook_reception, 'confirm_action', wf_id='checkbook_reception_workflow')
self.assertEqual(self.checkbook_reception.getSimulationState(), 'confirmed') self.assertEqual(self.checkbook_reception.getSimulationState(), 'confirmed')
workflow_history = self.workflow_tool.getInfoFor(ob=self.checkbook_reception, name='history', wf_id='checkbook_reception_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.checkbook_reception, name='history', wf_id='checkbook_reception_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