Fix bemade_utils to pass tests on the test runner as well as in PyCharm environment. There was a Python Path issue.

This commit is contained in:
Marc Durepos 2024-04-01 15:21:42 -04:00
parent 07297f6c3f
commit 5e337ca2ee
4 changed files with 6 additions and 3 deletions

View file

@ -1 +1,2 @@
from odoo.addons.bemade_utils.tools import patch_test
from . import tools

View file

@ -25,7 +25,7 @@
'author': 'Bemade Inc.',
'website': 'http://www.bemade.org',
'license': 'OPL-1',
'depends': [],
'depends': ['base'],
'data': [],
'assets': {},
'installable': True,

View file

@ -1 +1,2 @@
from . import test_patching_test

View file

@ -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):