Commit dd108a83 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[test] Use CubicWeb 3.19 test API

parent eefada3e5e91
......@@ -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[:] = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment