Fix flake8: E501 line too long

This commit is contained in:
Monica Diaz Pena
2020-01-24 17:24:32 -05:00
parent d255acc749
commit 35f5b88073

View File

@@ -40,8 +40,9 @@ class TestBaseSuspendSecurity(TransactionCase):
groups_id=[(5,)], groups_id=[(5,)],
) )
) )
model = self.env["ir.config_parameter"]
# the search is forbidden # the search is forbidden
with self.assertRaises(exceptions.AccessError): with self.assertRaises(exceptions.AccessError):
self.env["ir.config_parameter"].sudo(user_without_access).search([]) model.sudo(user_without_access).search([])
# this tests the search # this tests the search
self.env["ir.config_parameter"].sudo(user_without_access).suspend_security().search([]) model.sudo(user_without_access).suspend_security().search([])