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
Jérome Perrin
slapos.core
Commits
cdce3c17
Commit
cdce3c17
authored
Sep 04, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Payments are created in confirmed state.
parent
a69636a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
+7
-5
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
View file @
cdce3c17
...
@@ -100,13 +100,15 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
...
@@ -100,13 +100,15 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
'
\
n
'
.
join
([
q
for
q
in
difflib
.
unified_diff
(
expected
.
split
(
'
\
n
'
),
'
\
n
'
.
join
([
q
for
q
in
difflib
.
unified_diff
(
expected
.
split
(
'
\
n
'
),
sequence
[
'payment_page'
].
split
(
'
\
n
'
))]))
sequence
[
'payment_page'
].
split
(
'
\
n
'
))]))
def
stepCallStartPaymentOn
Plann
edPayment
(
self
,
sequence
,
**
kw
):
def
stepCallStartPaymentOn
Confirm
edPayment
(
self
,
sequence
,
**
kw
):
current_skin
=
self
.
app
.
REQUEST
.
get
(
'portal_skin'
,
'View'
)
current_skin
=
self
.
app
.
REQUEST
.
get
(
'portal_skin'
,
'View'
)
try
:
try
:
self
.
changeSkin
(
'Hosting'
)
self
.
changeSkin
(
'Hosting'
)
sequence
[
'payment'
]
=
self
.
portal
.
portal_catalog
.
getResultValue
(
sequence
[
'payment'
]
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Payment Transaction"
,
simulation_state
=
"planned"
)
portal_type
=
"Payment Transaction"
,
simulation_state
=
"confirmed"
)
sequence
[
'payment_page'
]
=
sequence
[
'payment'
].
__of__
(
self
.
portal
.
web_site_module
.
hosting
).
AccountingTransaction_startPayment
()
sequence
[
'payment_page'
]
=
sequence
[
'payment'
].
__of__
(
self
.
portal
.
web_site_module
.
hosting
).
AccountingTransaction_startPayment
()
finally
:
finally
:
self
.
changeSkin
(
current_skin
)
self
.
changeSkin
(
current_skin
)
...
@@ -119,7 +121,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
...
@@ -119,7 +121,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
self
.
register_new_user_sequence_string
+
'
\
sequence_string
=
self
.
register_new_user_sequence_string
+
'
\
LoginWebUser
\
LoginWebUser
\
CallStartPaymentOn
Plann
edPayment
\
CallStartPaymentOn
Confirm
edPayment
\
CleanTic
\
CleanTic
\
Logout
\
Logout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
...
@@ -159,7 +161,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
...
@@ -159,7 +161,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
self
.
register_new_user_sequence_string
+
'
\
sequence_string
=
self
.
register_new_user_sequence_string
+
'
\
LoginWebUser
\
LoginWebUser
\
CallStartPaymentOn
Plann
edPayment
\
CallStartPaymentOn
Confirm
edPayment
\
CleanTic
\
CleanTic
\
Logout
\
Logout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
...
...
master/bt5/vifib_erp5/bt/revision
View file @
cdce3c17
453
454
\ No newline at end of file
\ No newline at end of file
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