[FIX] base: mute handled errors
This commit is contained in:
@@ -251,14 +251,14 @@ class TestCustomFields(common.TransactionCase):
|
|||||||
def test_create_unique(self):
|
def test_create_unique(self):
|
||||||
""" one cannot create two fields with the same name on a given model """
|
""" one cannot create two fields with the same name on a given model """
|
||||||
self.create_field('x_foo')
|
self.create_field('x_foo')
|
||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'):
|
||||||
self.create_field('x_foo')
|
self.create_field('x_foo')
|
||||||
|
|
||||||
def test_rename_unique(self):
|
def test_rename_unique(self):
|
||||||
""" one cannot create two fields with the same name on a given model """
|
""" one cannot create two fields with the same name on a given model """
|
||||||
field1 = self.create_field('x_foo')
|
field1 = self.create_field('x_foo')
|
||||||
field2 = self.create_field('x_bar')
|
field2 = self.create_field('x_bar')
|
||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'):
|
||||||
field2.name = field1.name
|
field2.name = field1.name
|
||||||
|
|
||||||
def test_remove_without_view(self):
|
def test_remove_without_view(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user