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
c5be8f6eb209
Commit
dd108a83
authored
Jul 08, 2015
by
Rémi Cardona
Browse files
[test] Use CubicWeb 3.19 test API
parent
eefada3e5e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest_notifications.py
View file @
c5be8f6e
...
...
@@ -9,12 +9,13 @@ from cubicweb.web.request import CubicWebRequestBase
class
ForgotTC
(
CubicWebTC
):
def
setup_database
(
self
):
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
)
with
self
.
admin_access
.
repo_cnx
()
as
cnx
:
for
index
in
xrange
(
4
):
user
=
self
.
create_user
(
cnx
,
u
'test_user%s'
%
index
)
cnx
.
create_entity
(
'EmailAddress'
,
address
=
u
'test_user%s@logilab.fr'
%
index
,
reverse_use_email
=
user
)
cnx
.
commit
()
def
test_reset_password
(
self
):
MAILBOX
[:]
=
[]
...
...
Write
Preview
Supports
Markdown
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