Commit edc45d88 authored by Vincent Pelletier's avatar Vincent Pelletier

Open counter date before runing tests.

Update workflow step naming following business template recent update.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12933 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a02423d
...@@ -165,6 +165,7 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -165,6 +165,7 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1, self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1,
line_list=line_list) line_list=line_list)
self.openCounterDate(site=self.paris)
...@@ -453,8 +454,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -453,8 +454,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
self.stepTic() self.stepTic()
# get state # get state
state = self.cash_movement.getSimulationState() state = self.cash_movement.getSimulationState()
# check state is confirmed # check state is stopped
self.assertEqual(state, 'confirmed') self.assertEqual(state, 'stopped')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
# check len of workflow history is 8 # check len of workflow history is 8
...@@ -473,8 +474,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -473,8 +474,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
self.stepTic() self.stepTic()
# get state # get state
state = self.cash_movement.getSimulationState() state = self.cash_movement.getSimulationState()
# check state is planned # check state is confirmed
self.assertEqual(state, 'planned') self.assertEqual(state, 'confirmed')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
# check len of workflow history is 4 # check len of workflow history is 4
...@@ -492,8 +493,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -492,8 +493,8 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
self.stepTic() self.stepTic()
# get state # get state
state = self.cash_movement.getSimulationState() state = self.cash_movement.getSimulationState()
# check state is ordered # check state is started
self.assertEqual(state, 'ordered') self.assertEqual(state, 'started')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_movement, name='history', wf_id='cash_movement_workflow')
# check len of workflow history is 4 # check len of workflow history is 4
......
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