Commit 72b3b1ed authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

fix cw 3.12 deprecation warning in test

--HG--
branch : stable
parent d35cbfae8b9d
......@@ -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[:] = []
......
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