test_user_modify_own_profile.py 620 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo.tests import HttpCase, tagged
  4. @tagged('-at_install', 'post_install')
  5. class TestUserModifyOwnProfile(HttpCase):
  6. def test_user_modify_own_profile(self):
  7. """" A user should be able to modify their own profile.
  8. Even if that user does not have access rights to write on the res.users model. """
  9. self.start_tour("/web", "mail/static/tests/tours/user_modify_own_profile_tour.js", login="demo")
  10. self.assertEqual(self.env.ref('base.user_demo').email, "updatedemail@example.com")