Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
fee06a6d
Commit
fee06a6d
authored
Oct 24, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tests more extensible.
Add portal_secure_payments if not exists.
parent
02be4626
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
bt5/erp5_payzen_secure_payment/TestTemplateItem/testERP5PayzenSecurePayment.py
...e_payment/TestTemplateItem/testERP5PayzenSecurePayment.py
+11
-3
bt5/erp5_payzen_secure_payment/bt/revision
bt5/erp5_payzen_secure_payment/bt/revision
+1
-1
No files found.
bt5/erp5_payzen_secure_payment/TestTemplateItem/testERP5PayzenSecurePayment.py
View file @
fee06a6d
...
@@ -50,13 +50,21 @@ class TestERP5PayzenSecurePaymentMixin(ERP5TypeTestCase):
...
@@ -50,13 +50,21 @@ class TestERP5PayzenSecurePaymentMixin(ERP5TypeTestCase):
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
portal
=
self
.
getPortalObject
()
self
.
portal
=
self
.
getPortalObject
()
self
.
service_password
=
'0123456789012345'
if
not
self
.
portal
.
hasObject
(
'portal_secure_payments'
):
self
.
portal
.
manage_addProduct
[
'ERP5SecurePayment'
].
manage_addTool
(
'ERP5 Secure Payment Tool'
,
None
)
self
.
stepTic
()
self
.
service
=
self
.
portal
.
portal_secure_payments
.
newContent
(
self
.
service
=
self
.
portal
.
portal_secure_payments
.
newContent
(
portal_type
=
'Payzen Service'
,
portal_type
=
'Payzen Service'
)
service_password
=
self
.
service_password
)
self
.
stepTic
()
self
.
stepTic
()
class
TestERP5PayzenSecurePayment
(
TestERP5PayzenSecurePaymentMixin
):
class
TestERP5PayzenSecurePayment
(
TestERP5PayzenSecurePaymentMixin
):
def
afterSetUp
(
self
):
super
(
TestERP5PayzenSecurePayment
,
self
).
afterSetUp
()
self
.
service_password
=
'0123456789012345'
self
.
service
.
edit
(
service_password
=
self
.
service_password
)
self
.
stepTic
()
def
test_getSignature_dict_simple
(
self
):
def
test_getSignature_dict_simple
(
self
):
self
.
assertEqual
(
self
.
assertEqual
(
self
.
service
.
_getSignature
({
'key'
:
'value'
},
[
'key'
]),
self
.
service
.
_getSignature
({
'key'
:
'value'
},
[
'key'
]),
...
...
bt5/erp5_payzen_secure_payment/bt/revision
View file @
fee06a6d
38
39
\ 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