Commit 9f802fc9 authored by Łukasz Nowak's avatar Łukasz Nowak

Use correct workflow state.

Also fixup method names.
parent 87900f4c
...@@ -983,7 +983,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -983,7 +983,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self.assertEquals('account_module/bank', sale_line.getSource()) self.assertEquals('account_module/bank', sale_line.getSource())
self.assertEquals('account_module/bank', sale_line.getDestination()) self.assertEquals('account_module/bank', sale_line.getDestination())
def stepStoreCurrentPlannedConfirmedAccountingWorkflowCount(self, sequence, def stepStoreCurrentToPostAccountingWorkflowCount(self, sequence,
**kw): **kw):
# there shall be no divergency # there shall be no divergency
count = 0 count = 0
...@@ -994,14 +994,14 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -994,14 +994,14 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self.clearCache() self.clearCache()
self.changeSkin('RSS') self.changeSkin('RSS')
for q in self.portal.ERP5Site_getWorklistObjectList(): for q in self.portal.ERP5Site_getWorklistObjectList():
if q.title.startswith("Accounting Transactions to Start"): if q.title.startswith("Accounting Transactions to Post"):
count = q.count count = q.count
break break
finally: finally:
self.changeSkin(current_skin) self.changeSkin(current_skin)
sequence['planned_confirmed_accounting_workflow_count'] = count sequence['to_post_transaction_count'] = count
def stepCheckCurrentPlannedConfirmedAccountingWorkflowCount(self, sequence, def stepCheckCurrentToPostAccountingWorkflowCount(self, sequence,
**kw): **kw):
# there shall be no divergency # there shall be no divergency
count = 0 count = 0
...@@ -1012,19 +1012,19 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1012,19 +1012,19 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self.clearCache() self.clearCache()
self.changeSkin('RSS') self.changeSkin('RSS')
for q in self.portal.ERP5Site_getWorklistObjectList(): for q in self.portal.ERP5Site_getWorklistObjectList():
if q.title.startswith("Accounting Transactions to Start"): if q.title.startswith("Accounting Transactions to Post"):
count = q.count count = q.count
break break
finally: finally:
self.changeSkin(current_skin) self.changeSkin(current_skin)
self.assertEqual(count, sequence[ self.assertEqual(count, sequence[
'planned_confirmed_accounting_workflow_count']) 'to_post_transaction_count'])
def stepDecreaseCurrentPlannedConfirmedAccountingWorkflowCount(self, def stepDecreaseCurrentToPostAccountingWorkflowCount(self,
sequence, **kw): sequence, **kw):
sequence['planned_confirmed_accounting_workflow_count'] = sequence[ sequence['to_post_transaction_count'] = sequence[
'planned_confirmed_accounting_workflow_count'] - 1 'to_post_transaction_count'] - 1
def test_default_use_case(self): def test_default_use_case(self):
"""Test full default use case. """Test full default use case.
...@@ -1042,7 +1042,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1042,7 +1042,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self.prepare_installed_software_release_sequence_string + \ self.prepare_installed_software_release_sequence_string + \
self.register_new_user_sequence_string + '\ self.register_new_user_sequence_string + '\
LoginTestVifibAdmin \ LoginTestVifibAdmin \
StoreCurrentPlannedConfirmedAccountingWorkflowCount \ StoreCurrentToPostAccountingWorkflowCount \
Logout \ Logout \
LoginWebUser \ LoginWebUser \
CheckRegistrationAccounting \ CheckRegistrationAccounting \
...@@ -1052,8 +1052,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1052,8 +1052,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic \ CleanTic \
Logout \ Logout \
LoginTestVifibAdmin \ LoginTestVifibAdmin \
DecreaseCurrentPlannedConfirmedAccountingWorkflowCount \ DecreaseCurrentToPostAccountingWorkflowCount \
CheckCurrentPlannedConfirmedAccountingWorkflowCount \ CheckCurrentToPostAccountingWorkflowCount \
Logout \ Logout \
LoginWebUser \ LoginWebUser \
CheckPaidRegistrationAccounting \ CheckPaidRegistrationAccounting \
...@@ -1154,9 +1154,11 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1154,9 +1154,11 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic \ CleanTic \
\ \
LoginTestVifibAdmin \ LoginTestVifibAdmin \
StoreCurrentPlannedConfirmedAccountingWorkflowCount \
Logout \ Logout \
LoginWebUser \ LoginWebUser \
CallVifibPayzenUpdateConfirmedPaymentAlarm \
CleanTic \
StoreCurrentToPostAccountingWorkflowCount \
CheckWaitingInvoice \ CheckWaitingInvoice \
Tic \ Tic \
PayPayment \ PayPayment \
...@@ -1165,8 +1167,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -1165,8 +1167,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic \ CleanTic \
CheckPaidInvoice \ CheckPaidInvoice \
LoginTestVifibAdmin \ LoginTestVifibAdmin \
DecreaseCurrentPlannedConfirmedAccountingWorkflowCount \ DecreaseCurrentToPostAccountingWorkflowCount \
CheckCurrentPlannedConfirmedAccountingWorkflowCount \ CheckCurrentToPostAccountingWorkflowCount \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
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