From 34e769d314be5d9eb41b08a0683a9d45ead15087 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 7 Feb 2018 13:44:32 +0000 Subject: [PATCH] [FIX] base_technical_features: Test in post-install Creating a user in a test leads to errors in integration tests. Moving test to post install mode. --- .../tests/test_base_technical_features.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/base_technical_features/tests/test_base_technical_features.py b/base_technical_features/tests/test_base_technical_features.py index 3e9ac0348..e7380e3e7 100644 --- a/base_technical_features/tests/test_base_technical_features.py +++ b/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({