Browse Source

[FIX] squelch expected error log

pull/964/merge
Holger Brunn 7 years ago
committed by Pedro M. Baeza
parent
commit
3632a32454
  1. 7
      dead_mans_switch_client/tests/test_dead_mans_switch_client.py

7
dead_mans_switch_client/tests/test_dead_mans_switch_client.py

@ -2,6 +2,7 @@
# © 2015 Therp BV <http://therp.nl>
# © 2017 Avoin.Systems - Miku Laitinen
# 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
@ -10,7 +11,11 @@ class TestDeadMansSwitchClient(TransactionCase):
# test unconfigured case
self.env['ir.config_parameter'].search([
('key', '=', 'dead_mans_switch_client.url')]).unlink()
self.env['dead.mans.switch.client'].alive()
with mute_logger(
'odoo.addons.dead_mans_switch_client.models'
'.dead_mans_switch_client'
):
self.env['dead.mans.switch.client'].alive()
# test configured case
self.env['ir.config_parameter'].set_param(
'dead_mans_switch_client.url', 'fake_url')

Loading…
Cancel
Save