Commit 99745285 authored by Aurel's avatar Aurel

remove check of workflow history length

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3dd998c3
No related merge requests found
...@@ -326,8 +326,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -326,8 +326,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
self.assertEqual(state, 'draft') self.assertEqual(state, 'draft')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow')
# check its len is 2
self.assertEqual(len(workflow_history), 2)
# check we get an "Insufficient balance" message in the workflow history because of the invalid line # check we get an "Insufficient balance" message in the workflow history because of the invalid line
msg = workflow_history[-1]['error_message'] msg = workflow_history[-1]['error_message']
self.assertEqual("You can't have excess and deficit on the document.", "%s" %(msg,)) self.assertEqual("You can't have excess and deficit on the document.", "%s" %(msg,))
...@@ -360,8 +358,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -360,8 +358,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
self.assertEqual(state, 'draft') self.assertEqual(state, 'draft')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow')
# check its len is 2
self.assertEqual(len(workflow_history), 3)
# check we get an "Insufficient balance" message in the workflow history because of the invalid line # check we get an "Insufficient balance" message in the workflow history because of the invalid line
msg = workflow_history[-1]['error_message'] msg = workflow_history[-1]['error_message']
self.assertEqual("Price differs between document and resource.", "%s" %(msg,)) self.assertEqual("Price differs between document and resource.", "%s" %(msg,))
...@@ -409,8 +405,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -409,8 +405,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
self.assertEqual(state, 'planned') self.assertEqual(state, 'planned')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow')
# check len of workflow history is 4
self.assertEqual(len(workflow_history), 5)
def stepConfirmCashSortingIncident(self, sequence=None, sequence_list=None, **kwd): def stepConfirmCashSortingIncident(self, sequence=None, sequence_list=None, **kwd):
...@@ -428,9 +422,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -428,9 +422,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
self.assertEqual(state, 'confirmed') self.assertEqual(state, 'confirmed')
# get workflow history # get workflow history
workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow') workflow_history = self.workflow_tool.getInfoFor(ob=self.cash_sorting_incident, name='history', wf_id='cash_sorting_incident_workflow')
# check len of len workflow history is 6
self.assertEqual(len(workflow_history), 7)
def stepDeliverCashSortingIncident(self, sequence=None, sequence_list=None, **kwd): def stepDeliverCashSortingIncident(self, sequence=None, sequence_list=None, **kwd):
""" """
......
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