Browse Source

[FIX] squelch expected error log

pull/1277/head
Holger Brunn 7 years ago
committed by Atte Isopuro
parent
commit
69b175105c
  1. 5
      dead_mans_switch_client/tests/test_dead_mans_switch_client.py

5
dead_mans_switch_client/tests/test_dead_mans_switch_client.py

@ -2,6 +2,7 @@
# © 2015 Therp BV <http://therp.nl> # © 2015 Therp BV <http://therp.nl>
# © 2017 Avoin.Systems - Miku Laitinen # © 2017 Avoin.Systems - Miku Laitinen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tools import mute_logger
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
@ -10,6 +11,10 @@ class TestDeadMansSwitchClient(TransactionCase):
# test unconfigured case # test unconfigured case
self.env['ir.config_parameter'].search([ self.env['ir.config_parameter'].search([
('key', '=', 'dead_mans_switch_client.url')]).unlink() ('key', '=', 'dead_mans_switch_client.url')]).unlink()
with mute_logger(
'odoo.addons.dead_mans_switch_client.models'
'.dead_mans_switch_client'
):
self.env['dead.mans.switch.client'].alive() self.env['dead.mans.switch.client'].alive()
# test configured case # test configured case
self.env['ir.config_parameter'].set_param( self.env['ir.config_parameter'].set_param(

Loading…
Cancel
Save