Browse Source

[FIX][12.0] database_cleanup: Mute logger on tests

12.0-mig-module_prototyper_last
Enric Tobella 4 years ago
parent
commit
f7dd9d769e
  1. 3
      database_cleanup/tests/test_database_cleanup.py

3
database_cleanup/tests/test_database_cleanup.py

@ -95,7 +95,8 @@ class TestDatabaseCleanup(TransactionCase):
# reference to it
original_registry = Registry.registries[self.env.cr.dbname]
config.options['test_enable'] = False
purge_modules.purge_all()
with mute_logger('odoo.modules.graph', 'odoo.modules.loading'):
purge_modules.purge_all()
config.options['test_enable'] = True
# must be removed by the wizard
self.assertFalse(self.env['ir.module.module'].search([

Loading…
Cancel
Save