From bdcd2e60e353e1cd2dc6d0ba43a07750dccc5602 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 14 Oct 2022 08:17:09 +0000 Subject: [PATCH] [FIX] test_module_operations: nightly errors Enable the test for payment modules, as we want to test their install/uninstall. But disable the test for the deprecated payment modules, which can only be installed through command line since 16.0. closes odoo/odoo#107349 X-original-commit: ae559ee083723ff16ec78d93ec781202686553e6 Signed-off-by: Victor Feyens (vfe) --- odoo/tests/test_module_operations.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/odoo/tests/test_module_operations.py b/odoo/tests/test_module_operations.py index 935be2fc9b6..a14c2fb1b2c 100755 --- a/odoo/tests/test_module_operations.py +++ b/odoo/tests/test_module_operations.py @@ -20,8 +20,11 @@ BLACKLIST = { 'auth_ldap', 'document_ftp', 'website_instantclick', 'pad', 'pad_project', 'note_pad', 'pos_cache', 'pos_blackbox_be', } -IGNORE = ('hw_', 'theme_', 'l10n_', 'test_', 'payment_') +IGNORE = ('hw_', 'theme_', 'l10n_', 'test_') +INSTALL_BLACKLIST = { + 'payment_alipay', 'payment_ogone', 'payment_payulatam', 'payment_payumoney', +} # deprecated modules (cannot be installed manually through button_install anymore) def install(db_name, module_id, module_name): with odoo.registry(db_name).cursor() as cr: @@ -82,6 +85,7 @@ def test_full(args): def valid(module): return not ( module.name in BLACKLIST + or module.name in INSTALL_BLACKLIST or module.name.startswith(IGNORE) or module.state in ('installed', 'uninstallable') ) @@ -117,7 +121,8 @@ def test_uninstall(args): for module_id, module_name in modules_todo: uninstall(args.database, module_id, module_name) - install(args.database, module_id, module_name) + if module_name not in INSTALL_BLACKLIST: + install(args.database, module_id, module_name) def test_scripts(args):