Browse Source

Merge pull request #1146 from Tecnativa/9.0-base_technical_features-post_test

[FIX] base_technical_features: Test in post-install
pull/983/head
Moises Lopez - https://www.vauxoo.com/ 7 years ago
committed by GitHub
parent
commit
c31cbfa319
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      base_technical_features/tests/test_base_technical_features.py

7
base_technical_features/tests/test_base_technical_features.py

@ -38,7 +38,12 @@ class TestBaseTechnicalFeatures(common.TransactionCase):
self.env.user.write({'technical_features': True})
self.assertEqual(get_partner_field_invisible(), None)
def test03_user_access(self):
@common.at_install(False)
@common.post_install(True)
class UserCase(common.TransactionCase):
def test_user_access(self):
""" Setting the user pref raises an access error if the user is not \
in group_no_one """
user = self.env['res.users'].create({

Loading…
Cancel
Save