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
Léo-Paul Géneau
slapos.core
Commits
b0364ce7
Commit
b0364ce7
authored
Dec 30, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_payzen: Fixup test, the API reports errorCode rather them error_code
parent
c64ff63f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenSkins.py
...Item/portal_components/test.erp5.testSlapOSPayzenSkins.py
+4
-4
No files found.
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenSkins.py
View file @
b0364ce7
...
@@ -210,14 +210,14 @@ class TestSlapOSPayzenEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
...
@@ -210,14 +210,14 @@ class TestSlapOSPayzenEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
data_kw
=
{
data_kw
=
{
'status'
:
'ERROR'
,
'status'
:
'ERROR'
,
'answer'
:{
'answer'
:{
'error
_c
ode'
:
"foo"
,
'error
C
ode'
:
"foo"
,
},
},
}
}
event
.
PayzenEvent_processUpdate
(
data_kw
)
event
.
PayzenEvent_processUpdate
(
data_kw
)
self
.
assertEqual
(
event
.
getValidationState
(),
"confirmed"
)
self
.
assertEqual
(
event
.
getValidationState
(),
"confirmed"
)
self
.
assertEqual
(
self
.
assertEqual
(
"Unknown errorCode 'foo'"
,
"Unknown errorCode 'foo'
, message:
"
,
event
.
workflow_history
[
'system_event_workflow'
][
-
1
][
'comment'
])
event
.
workflow_history
[
'system_event_workflow'
][
-
1
][
'comment'
])
def
test_processUpdate_noTransactionsForOrder
(
self
):
def
test_processUpdate_noTransactionsForOrder
(
self
):
...
@@ -569,7 +569,7 @@ return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'f
...
@@ -569,7 +569,7 @@ return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'f
data_kw
=
{
data_kw
=
{
"status"
:
"ERROR"
,
"status"
:
"ERROR"
,
"answer"
:
{
"answer"
:
{
"error
_c
ode"
:
"PSP_010"
,
"error
C
ode"
:
"PSP_010"
,
},
},
}
}
...
@@ -599,7 +599,7 @@ return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'f
...
@@ -599,7 +599,7 @@ return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'f
data_kw
=
{
data_kw
=
{
"status"
:
"ERROR"
,
"status"
:
"ERROR"
,
"answer"
:
{
"answer"
:
{
"error
_c
ode"
:
"PSP_010"
,
"error
C
ode"
:
"PSP_010"
,
},
},
}
}
...
...
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