Commit a2738230 authored by Julien Cristau's avatar Julien Cristau
Browse files

[test] expect_redirect_publish → expect_redirect_handle_request

Silences cubicweb 3.15 deprecation warning.
parent 78909fa1761c
......@@ -35,7 +35,7 @@ class RegistrationTC(CubicWebTC):
expected_errors=None,
expected_msg=None,
expected_formvalues=None):
path, params = self.expect_redirect_publish(req, path)
path, params = self.expect_redirect_handle_request(req, path)
self.assertEqual(path, expected_path)
if expected_msg:
self.assertMessageEqual(req, params, expected_msg)
......@@ -74,7 +74,7 @@ class RegistrationTC(CubicWebTC):
with self.new_access(u'anon').web_request() as req:
req.form = self._posted_form()
req.session.data['captcha'] = self.captcha_value
path, params = self.expect_redirect_publish(req, 'registration_sendmail')
path, params = self.expect_redirect_handle_request(req, 'registration_sendmail')
self.assertEqual(path, '')
self.assertMessageEqual(req, params, 'Your registration email has been sent. Follow instructions in there to activate your account.')
# check email contains activation url...
......@@ -117,7 +117,7 @@ class RegistrationTC(CubicWebTC):
def test_confirm_ok(self):
with self._confirm_req() as req:
path, params = self.expect_redirect_publish(req, 'registration_confirm')
path, params = self.expect_redirect_handle_request(req, 'registration_confirm')
self.assertEqual(path, '')
self.assertMessageEqual(req, params, 'Congratulations, your registration is complete. Welcome %(firstname-subject)s %(surname-subject)s !' % self.data)
with self.admin_access.repo_cnx() as cnx:
......
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