diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-07-27 12:09:50 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-08-19 07:28:44 +0000 |
| commit | ec8a64a85c7ce751bbd4fc3b5a2a8224a84c81d0 (patch) | |
| tree | 0bc5a7b4668688c2ea7d007137ee2705fce19d82 /odoo/modules/loading.py | |
| parent | e46a8bc7d95501569fd95c499b84a7027a3f2831 (diff) | |
[REF] core: move testing-related functions to odoo/tests submodules
Attempts to clean up odoo/module and odoo/service a tad, they still
invoke testing-related utilities but are more logical in what
they *contain*.
Diffstat (limited to 'odoo/modules/loading.py')
| -rw-r--r-- | odoo/modules/loading.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 03c04003275..a3adfe8492b 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -16,10 +16,8 @@ import odoo.modules.db import odoo.modules.graph import odoo.modules.migration import odoo.modules.registry -import odoo.tools as tools - -from odoo import api, SUPERUSER_ID -from odoo.modules.module import adapt_version, initialize_sys_path, load_openerp_module +from .. import SUPERUSER_ID, api, tools +from .module import adapt_version, initialize_sys_path, load_openerp_module _logger = logging.getLogger(__name__) _test_logger = logging.getLogger('odoo.tests') @@ -271,7 +269,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, report.record_result(load_test(idref, mode)) # Python tests env['ir.http']._clear_routing_map() # force routing map to be rebuilt - report.record_result(odoo.modules.module.run_unit_tests(module_name)) + report.record_result(odoo.tests.loader.run_unit_tests(module_name)) # tests may have reset the environment env = api.Environment(cr, SUPERUSER_ID, {}) module = env['ir.module.module'].browse(module_id) |
