Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Tatuya Kamada
erp5
Commits
9cb63f8e
Commit
9cb63f8e
authored
Oct 26, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop tests for removed functionality.
parent
f42b8d51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
bt5/erp5_payzen_secure_payment/TestTemplateItem/testERP5PayzenSecurePayment.py
...e_payment/TestTemplateItem/testERP5PayzenSecurePayment.py
+0
-20
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 @
9cb63f8e
...
...
@@ -145,26 +145,6 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
# dict was updated
self
.
assertEqual
(
d
[
'key'
],
now
.
strftime
(
'%Y-%m-%dT%H:%M:%S'
))
def
test_getSignature_dict_date_as_DateTime_output_date
(
self
):
now
=
DateTime
.
DateTime
()
d
=
{
'key'
:
now
}
self
.
assertEqual
(
self
.
service
.
_getSignature
(
d
,
[
'key'
],
output_date_format
=
'%Y'
),
sha1
(
now
.
strftime
(
'%Y%m%d'
)
+
'+'
+
self
.
service_password
)
)
# dict was updated with passed format
self
.
assertEqual
(
d
[
'key'
],
now
.
strftime
(
'%Y'
))
def
test_getSignature_dict_date_as_DateTime_signature_format
(
self
):
now
=
DateTime
.
DateTime
()
d
=
{
'key'
:
now
}
self
.
assertEqual
(
self
.
service
.
_getSignature
(
d
,
[
'key'
],
signature_date_format
=
'%Y'
),
sha1
(
now
.
strftime
(
'%Y'
)
+
'+'
+
self
.
service_password
)
)
# dict was updated with passed format
self
.
assertEqual
(
d
[
'key'
],
now
.
strftime
(
'%Y-%m-%dT%H:%M:%S'
))
def
test_getSignature_dict_date_as_string
(
self
):
now
=
DateTime
.
DateTime
()
d
=
{
'keyDaTe'
:
now
.
strftime
(
'%Y-%m-%d %H:%M:%S'
)}
...
...
bt5/erp5_payzen_secure_payment/bt/revision
View file @
9cb63f8e
43
\ No newline at end of file
44
\ 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