summaryrefslogtreecommitdiff
path: root/odoo/tests/test_module_operations.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-07-27 12:09:50 +0000
committerXavier Morel <xmo@odoo.com>2020-08-19 07:28:44 +0000
commitec8a64a85c7ce751bbd4fc3b5a2a8224a84c81d0 (patch)
tree0bc5a7b4668688c2ea7d007137ee2705fce19d82 /odoo/tests/test_module_operations.py
parente46a8bc7d95501569fd95c499b84a7027a3f2831 (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/tests/test_module_operations.py')
-rwxr-xr-xodoo/tests/test_module_operations.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/odoo/tests/test_module_operations.py b/odoo/tests/test_module_operations.py
index 1ce9d4e3226..fca6dc274c4 100755
--- a/odoo/tests/test_module_operations.py
+++ b/odoo/tests/test_module_operations.py
@@ -5,14 +5,16 @@ import os
import sys
import time
+
sys.path.append(os.path.abspath(os.path.join(__file__,'../../../')))
import odoo
from odoo.tools import topological_sort, unique
from odoo.netsvc import init_logger
from odoo.tests import standalone_tests
+import odoo.tests.loader
-_logger = logging.getLogger('test_module_operations')
+_logger = logging.getLogger('odoo.tests.test_module_operations')
BLACKLIST = {
'auth_ldap', 'document_ftp', 'base_gengo', 'website_gengo', 'website_instantclick', 'pad',
@@ -119,7 +121,7 @@ def test_scripts(args):
registry = odoo.registry(args.database)
for module_name in registry._init_modules:
# import tests for loaded modules
- odoo.modules.module.get_test_modules(module_name)
+ odoo.tests.loader.get_test_modules(module_name)
# fetch and filter scripts to test
funcs = list(unique(