Commit cc5ea80a authored by Aurel's avatar Aurel

remove order step and check of wf history


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15035 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3206f19f
...@@ -596,30 +596,11 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -596,30 +596,11 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.cash_sorting.getTotalPrice(), (10000 * 5.0 + 100 * 10.0 + 200 * 12.0 + 5000 * 24.0) * 2.0) self.assertEqual(self.cash_sorting.getTotalPrice(), (10000 * 5.0 + 100 * 10.0 + 200 * 12.0 + 5000 * 24.0) * 2.0)
def stepOrderCashSorting(self, sequence=None, sequence_list=None, **kwd):
"""
Order the cash sorting and check it
"""
# fix amount (10000 * 5.0 + 200 * 12.0 + 5000 * 24 + 100 * 10)
self.cash_sorting.setSourceTotalAssetPrice('173400.0')
# do the Workflow action
self.workflow_tool.doActionFor(self.cash_sorting, 'order_action', wf_id='cash_sorting_workflow')
# execute tic
self.stepTic()
# get state
state = self.cash_sorting.getSimulationState()
# check state is confirmed
self.assertEqual(state, 'ordered')
# get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting, name='history', wf_id='cash_sorting_workflow')
# check len of workflow history is 4
self.assertEqual(len(workflow_history), 3)
def stepConfirmCashSorting(self, sequence=None, sequence_list=None, **kwd): def stepConfirmCashSorting(self, sequence=None, sequence_list=None, **kwd):
""" """
Confirm the cash sorting and check it Confirm the cash sorting and check it
""" """
self.cash_sorting.setSourceTotalAssetPrice('173400.0')
# do the Workflow action # do the Workflow action
self.workflow_tool.doActionFor(self.cash_sorting, 'confirm_action', wf_id='cash_sorting_workflow') self.workflow_tool.doActionFor(self.cash_sorting, 'confirm_action', wf_id='cash_sorting_workflow')
# execute tic # execute tic
...@@ -628,10 +609,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -628,10 +609,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
state = self.cash_sorting.getSimulationState() state = self.cash_sorting.getSimulationState()
# check state is confirmed # check state is confirmed
self.assertEqual(state, 'confirmed') self.assertEqual(state, 'confirmed')
# get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting, name='history', wf_id='cash_sorting_workflow')
# check len of workflow history is 6
self.assertEqual(len(workflow_history), 5)
def stepCheckSourceDebitPlanned(self, sequence=None, sequence_list=None, **kwd): def stepCheckSourceDebitPlanned(self, sequence=None, sequence_list=None, **kwd):
...@@ -687,10 +664,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -687,10 +664,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
state = self.cash_sorting.getSimulationState() state = self.cash_sorting.getSimulationState()
# check that state is delivered # check that state is delivered
self.assertEqual(state, 'delivered') self.assertEqual(state, 'delivered')
# get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting, name='history', wf_id='cash_sorting_workflow')
# check len of len workflow history is 6
self.assertEqual(len(workflow_history), 7)
def stepCheckSourceDebit(self, sequence=None, sequence_list=None, **kwd): def stepCheckSourceDebit(self, sequence=None, sequence_list=None, **kwd):
...@@ -752,7 +725,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -752,7 +725,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
+ 'CreateValidOutgoingLineForMixed ' \ + 'CreateValidOutgoingLineForMixed ' \
+ 'Tic CheckTotal ' \ + 'Tic CheckTotal ' \
+ 'CheckSource CheckDestination ' \ + 'CheckSource CheckDestination ' \
+ 'OrderCashSorting Tic '\
+ 'ConfirmCashSorting Tic ' \ + 'ConfirmCashSorting Tic ' \
+ 'CheckSourceDebitPlanned CheckDestinationCreditPlanned ' \ + 'CheckSourceDebitPlanned CheckDestinationCreditPlanned ' \
+ 'DeliverCashSorting Tic ' \ + 'DeliverCashSorting 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