Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
forgotpwd
Commits
57af2f6babf2
Commit
c8562a2e
authored
Aug 05, 2015
by
Julien Cristau
Browse files
[test] silence lgdb warning about passing str instead of unicode
parent
1917bc20620c
Changes
1
Show whitespace changes
Inline
Side-by-side
test/unittest_notifications.py
View file @
57af2f6b
...
...
@@ -21,7 +21,7 @@ class ForgotTC(CubicWebTC):
MAILBOX
[:]
=
[]
self
.
assertEqual
(
len
(
MAILBOX
),
0
)
with
self
.
repo
.
internal_cnx
()
as
cnx
:
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
'test_user1@logilab.fr'
)
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
u
'test_user1@logilab.fr'
)
cnx
.
commit
()
self
.
assertEqual
(
len
(
MAILBOX
),
1
)
self
.
assertNotIn
(
'None'
,
MAILBOX
[
0
].
content
)
...
...
@@ -30,13 +30,13 @@ class ForgotTC(CubicWebTC):
MAILBOX
[:]
=
[]
self
.
config
.
global_set_option
(
'base-url'
,
'http://babar.com/'
)
with
self
.
repo
.
internal_cnx
()
as
cnx
:
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
'test_user2@logilab.fr'
)
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
u
'test_user2@logilab.fr'
)
cnx
.
commit
()
self
.
assertIn
(
'http://babar.com/'
,
MAILBOX
[
0
].
content
)
self
.
config
.
global_set_option
(
'https-url'
,
'https://babar.com/'
)
with
self
.
repo
.
internal_cnx
()
as
cnx
:
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
'test_user3@logilab.fr'
)
cnx
.
call_service
(
'forgotpwd_send_email'
,
use_email
=
u
'test_user3@logilab.fr'
)
cnx
.
commit
()
self
.
assertIn
(
'https://babar.com/'
,
MAILBOX
[
1
].
content
)
...
...
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