Skip to content
Snippets Groups Projects
Commit ae559ee0 authored by Victor Feyens's avatar Victor Feyens
Browse files

[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#103201

Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent c04c9474
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment