summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-26 17:46:20 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-26 17:46:20 +0200
commitc4e9b854ff22af31bbbd88d1414e77d27eaed7ea (patch)
treeaa36c1273437ce0cd47b6c4dad93c91851f1e948 /addons
parente8d4a11e6edeb3cc6cb229ce230f5e58e2463099 (diff)
[IMP] core: log bad queries as ERROR
Also adapt default config and config mapping.
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/tests/test_mail_followers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/tests/test_mail_followers.py b/addons/mail/tests/test_mail_followers.py
index 7a82f09f381..249981706e1 100644
--- a/addons/mail/tests/test_mail_followers.py
+++ b/addons/mail/tests/test_mail_followers.py
@@ -4,6 +4,7 @@
from psycopg2 import IntegrityError
from odoo.addons.mail.tests.common import TestMail
+from odoo.tools.misc import mute_logger
class TestMailFollowers(TestMail):
@@ -134,7 +135,7 @@ class TestMailFollowers(TestMail):
test_channel = self.env['mail.channel'].create({
'name': 'I used to be schizo, but now we are alright.'
})
- with self.assertRaises(IntegrityError):
+ with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'):
self.env['mail.followers'].create({
'res_model_id': self.env['ir.model']._get('mail.channel').id,
'res_id': test_channel.id,