Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos.core
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):
...
@@ -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
stepStoreCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
sequence
,
def
stepStoreCurrent
ToPost
AccountingWorkflowCount
(
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
Star
t"
):
if
q
.
title
.
startswith
(
"Accounting Transactions to
Pos
t"
):
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
stepCheckCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
sequence
,
def
stepCheckCurrent
ToPost
AccountingWorkflowCount
(
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
Star
t"
):
if
q
.
title
.
startswith
(
"Accounting Transactions to
Pos
t"
):
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
stepDecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
(
self
,
def
stepDecreaseCurrent
ToPost
AccountingWorkflowCount
(
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
\
StoreCurrent
PlannedConfirmed
AccountingWorkflowCount
\
StoreCurrent
ToPost
AccountingWorkflowCount
\
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
\
DecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
\
DecreaseCurrent
ToPost
AccountingWorkflowCount
\
CheckCurrent
PlannedConfirmed
AccountingWorkflowCount
\
CheckCurrent
ToPost
AccountingWorkflowCount
\
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
\
DecreaseCurrent
PlannedConfirmed
AccountingWorkflowCount
\
DecreaseCurrent
ToPost
AccountingWorkflowCount
\
CheckCurrent
PlannedConfirmed
AccountingWorkflowCount
\
CheckCurrent
ToPost
AccountingWorkflowCount
\
Logout
\
Logout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
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