[FIX] *: do not import tests folder

The tests must be only imported in a test context, not in a running
context.
Since 92a7f8c13f a new test requirement was added but it should
not be necessary to run a module, only to execute the tests.

closes odoo/odoo#54578

X-original-commit: 15f2bbd40a70d9d9e969a2c75b7b9131c100dc09
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2020-07-16 12:55:00 +00:00
parent c0745584aa
commit 09fa76afff
4 changed files with 0 additions and 4 deletions
-1
View File
@@ -2,7 +2,6 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import tests
from odoo.api import Environment, SUPERUSER_ID
-1
View File
@@ -2,4 +2,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import tests
-1
View File
@@ -3,5 +3,4 @@
from . import controllers
from . import models
from . import tests
from . import wizard
-1
View File
@@ -2,5 +2,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import tests
from . import wizard