From a41725cf75e88017188c70632452c589fa45bdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Mon, 27 Feb 2023 17:40:52 +0100 Subject: [PATCH] [FIX] module_analysis: Fix tests Prevent import error ImportError: cannot import name 'at_install' from 'odoo.tests.common' (/opt/odoo/odoo/tests/common.py) --- module_analysis/tests/test_module.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module_analysis/tests/test_module.py b/module_analysis/tests/test_module.py index 2908d0f95..6769c8b7d 100644 --- a/module_analysis/tests/test_module.py +++ b/module_analysis/tests/test_module.py @@ -2,11 +2,10 @@ # @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import TransactionCase, at_install, post_install +from odoo.tests.common import TransactionCase, tagged -@at_install(False) -@post_install(True) +@tagged("-at_install", "post_install") class TestModule(TransactionCase): def setUp(self): super().setUp()