Commit fe06db19 authored by Romain Courteaud's avatar Romain Courteaud

[test] Fixup failing tests

See 28774376
parent ebc161b4
...@@ -841,7 +841,8 @@ class TestAuthenticationPolicy(ERP5TypeTestCase): ...@@ -841,7 +841,8 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
handle_errors=False) handle_errors=False)
# When password reset is succesful, user is logged out # When password reset is succesful, user is logged out
self.assertEqual(httplib.FOUND, ret.getStatus()) self.assertEqual(httplib.FOUND, ret.getStatus())
self.assertTrue(ret.getHeader("Location").endswith("/logout")) self.assertEqual(self.portal.portal_preferences.absolute_url(),
ret.getHeader("Location"))
# password is changed on the login # password is changed on the login
self.assertTrue(login.checkPassword('long_enough_password')) self.assertTrue(login.checkPassword('long_enough_password'))
......
...@@ -544,7 +544,7 @@ class TestPreferences(UserManagementTestCase): ...@@ -544,7 +544,7 @@ class TestPreferences(UserManagementTestCase):
current_password=password, current_password=password,
new_password=new_password, new_password=new_password,
) )
self.assertEqual(result, self.portal.absolute_url()+'/logout') self.assertEqual(result, self.portal.absolute_url()+'/portal_preferences')
self.login() self.login()
self._assertUserExists(login, new_password) self._assertUserExists(login, new_password)
......
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