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 ...@@ -9,12 +9,13 @@ from cubicweb.web.request import CubicWebRequestBase
class ForgotTC(CubicWebTC): class ForgotTC(CubicWebTC):
def setup_database(self): def setup_database(self):
req = self.request() with self.admin_access.repo_cnx() as cnx:
for index in xrange(4): for index in xrange(4):
user = self.create_user(req, u'test_user%s' % index) user = self.create_user(cnx, u'test_user%s' % index)
req.create_entity('EmailAddress', cnx.create_entity('EmailAddress',
address=u'' % index, address=u'' % index,
reverse_use_email=user) reverse_use_email=user)
def test_reset_password(self): def test_reset_password(self):
MAILBOX[:] = [] 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