Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
forgotpwd
Commits
81e045105a7e
Commit
72b3b1ed
authored
Apr 03, 2013
by
Sylvain Thénault
Browse files
fix cw 3.12 deprecation warning in test
--HG-- branch : stable
parent
d35cbfae8b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest_notifications.py
View file @
81e04510
...
...
@@ -2,20 +2,19 @@ from datetime import date
from
logilab.common.testlib
import
unittest_main
from
cubicweb.devtools.testlib
import
MAILBOX
from
cubicweb.devtools.testlib
import
CubicWebTC
from
cubicweb.devtools.testlib
import
MAILBOX
,
CubicWebTC
from
cubicweb.devtools.fake
import
FakeConfig
from
cubicweb.web.request
import
CubicWebRequestBase
class
ForgotTC
(
CubicWebTC
):
def
setup_database
(
self
):
for
index
in
range
(
4
):
user
=
self
.
create_user
(
u
'test_user%s'
%
index
)
self
.
request
().
create_entity
(
'EmailAddress'
,
address
=
u
'test_user%s@logilab.fr'
%
index
,
reverse_use_email
=
user
)
req
=
self
.
request
()
for
index
in
xrange
(
4
):
user
=
self
.
create_user
(
req
,
u
'test_user%s'
%
index
)
req
.
create_entity
(
'EmailAddress'
,
address
=
u
'test_user%s@logilab.fr'
%
index
,
reverse_use_email
=
user
)
def
test_reset_password
(
self
):
MAILBOX
[:]
=
[]
...
...
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