From 5e337ca2ee9327d0b9662c559cdc13fcff48a164 Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Mon, 1 Apr 2024 15:21:42 -0400 Subject: [PATCH] Fix bemade_utils to pass tests on the test runner as well as in PyCharm environment. There was a Python Path issue. --- bemade_utils/__init__.py | 1 + bemade_utils/__manifest__.py | 2 +- bemade_utils/tests/__init__.py | 1 + bemade_utils/tests/test_patching_test.py | 5 +++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bemade_utils/__init__.py b/bemade_utils/__init__.py index 9ac735b..91a8e75 100644 --- a/bemade_utils/__init__.py +++ b/bemade_utils/__init__.py @@ -1 +1,2 @@ from odoo.addons.bemade_utils.tools import patch_test +from . import tools \ No newline at end of file diff --git a/bemade_utils/__manifest__.py b/bemade_utils/__manifest__.py index 669c94a..ca98882 100644 --- a/bemade_utils/__manifest__.py +++ b/bemade_utils/__manifest__.py @@ -25,7 +25,7 @@ 'author': 'Bemade Inc.', 'website': 'http://www.bemade.org', 'license': 'OPL-1', - 'depends': [], + 'depends': ['base'], 'data': [], 'assets': {}, 'installable': True, diff --git a/bemade_utils/tests/__init__.py b/bemade_utils/tests/__init__.py index 27cd6d5..396c8ff 100644 --- a/bemade_utils/tests/__init__.py +++ b/bemade_utils/tests/__init__.py @@ -1 +1,2 @@ from . import test_patching_test + diff --git a/bemade_utils/tests/test_patching_test.py b/bemade_utils/tests/test_patching_test.py index 9cd5bb4..fc45946 100644 --- a/bemade_utils/tests/test_patching_test.py +++ b/bemade_utils/tests/test_patching_test.py @@ -1,7 +1,8 @@ -from odoo.tests import TransactionCase -from addons.bemade_utils import patch_test +from odoo.tests import TransactionCase, tagged +from odoo.addons.bemade_utils import patch_test +@tagged("-at_install", "post_install") class TestA(TransactionCase): @classmethod def setUpClass(cls):