mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Fix flake8: E501 line too long
This commit is contained in:
@@ -40,8 +40,9 @@ class TestBaseSuspendSecurity(TransactionCase):
|
||||
groups_id=[(5,)],
|
||||
)
|
||||
)
|
||||
model = self.env["ir.config_parameter"]
|
||||
# the search is forbidden
|
||||
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
|
||||
self.env["ir.config_parameter"].sudo(user_without_access).suspend_security().search([])
|
||||
model.sudo(user_without_access).suspend_security().search([])
|
||||
|
||||
Reference in New Issue
Block a user