Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
9f802fc9
Commit
9f802fc9
authored
Sep 04, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct workflow state.
Also fixup method names.
parent
87900f4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
master/product/Vifib/tests/testVifibDefaultUseCase.py
master/product/Vifib/tests/testVifibDefaultUseCase.py
+17
-15
No files found.
master/product/Vifib/tests/testVifibDefaultUseCase.py
View file @
9f802fc9
...
...
@@ -983,7 +983,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
'account_module/bank'
,
sale_line
.
getSource
())
self
.
assertEquals
(
'account_module/bank'
,
sale_line
.
getDestination
())
def
stepStoreCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
sequence
,
def
stepStoreCurrent
ToPost
AccountingWorkflowCount
(
self
,
sequence
,
**
kw
):
# there shall be no divergency
count
=
0
...
...
@@ -994,14 +994,14 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self
.
clearCache
()
self
.
changeSkin
(
'RSS'
)
for
q
in
self
.
portal
.
ERP5Site_getWorklistObjectList
():
if
q
.
title
.
startswith
(
"Accounting Transactions to
Star
t"
):
if
q
.
title
.
startswith
(
"Accounting Transactions to
Pos
t"
):
count
=
q
.
count
break
finally
:
self
.
changeSkin
(
current_skin
)
sequence
[
'
planned_confirmed_accounting_workflow
_count'
]
=
count
sequence
[
'
to_post_transaction
_count'
]
=
count
def
stepCheckCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
sequence
,
def
stepCheckCurrent
ToPost
AccountingWorkflowCount
(
self
,
sequence
,
**
kw
):
# there shall be no divergency
count
=
0
...
...
@@ -1012,19 +1012,19 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self
.
clearCache
()
self
.
changeSkin
(
'RSS'
)
for
q
in
self
.
portal
.
ERP5Site_getWorklistObjectList
():
if
q
.
title
.
startswith
(
"Accounting Transactions to
Star
t"
):
if
q
.
title
.
startswith
(
"Accounting Transactions to
Pos
t"
):
count
=
q
.
count
break
finally
:
self
.
changeSkin
(
current_skin
)
self
.
assertEqual
(
count
,
sequence
[
'
planned_confirmed_accounting_workflow
_count'
])
'
to_post_transaction
_count'
])
def
stepDecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
def
stepDecreaseCurrent
ToPost
AccountingWorkflowCount
(
self
,
sequence
,
**
kw
):
sequence
[
'
planned_confirmed_accounting_workflow
_count'
]
=
sequence
[
'
planned_confirmed_accounting_workflow
_count'
]
-
1
sequence
[
'
to_post_transaction
_count'
]
=
sequence
[
'
to_post_transaction
_count'
]
-
1
def
test_default_use_case
(
self
):
"""Test full default use case.
...
...
@@ -1042,7 +1042,7 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
self
.
prepare_installed_software_release_sequence_string
+
\
self
.
register_new_user_sequence_string
+
'
\
LoginTestVifibAdmin
\
StoreCurrent
PlannedConfirmed
AccountingWorkflowCount
\
StoreCurrent
ToPost
AccountingWorkflowCount
\
Logout
\
LoginWebUser
\
CheckRegistrationAccounting
\
...
...
@@ -1052,8 +1052,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic
\
Logout
\
LoginTestVifibAdmin
\
DecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
\
CheckCurrent
PlannedConfirmed
AccountingWorkflowCount
\
DecreaseCurrent
ToPost
AccountingWorkflowCount
\
CheckCurrent
ToPost
AccountingWorkflowCount
\
Logout
\
LoginWebUser
\
CheckPaidRegistrationAccounting
\
...
...
@@ -1154,9 +1154,11 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic
\
\
LoginTestVifibAdmin
\
StoreCurrentPlannedConfirmedAccountingWorkflowCount
\
Logout
\
LoginWebUser
\
CallVifibPayzenUpdateConfirmedPaymentAlarm
\
CleanTic
\
StoreCurrentToPostAccountingWorkflowCount
\
CheckWaitingInvoice
\
Tic
\
PayPayment
\
...
...
@@ -1165,8 +1167,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
CleanTic
\
CheckPaidInvoice
\
LoginTestVifibAdmin
\
DecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
\
CheckCurrent
PlannedConfirmed
AccountingWorkflowCount
\
DecreaseCurrent
ToPost
AccountingWorkflowCount
\
CheckCurrent
ToPost
AccountingWorkflowCount
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment