mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[FIX] base_user_role: tests - include trans_implied_ids
The unlink tests miss to add `trans_implied_ids` which is accounted for when reseting the groups.
This commit is contained in:
committed by
Bert Van Groenendael
parent
4cee4101bf
commit
add0c02edf
@@ -137,7 +137,9 @@ class TestUserRole(TransactionCase):
|
|||||||
|
|
||||||
def test_role_unlink(self):
|
def test_role_unlink(self):
|
||||||
# Get role1 groups
|
# Get role1 groups
|
||||||
role1_group_ids = self.role1_id.implied_ids.ids
|
role1_group_ids = (
|
||||||
|
self.role1_id.implied_ids.ids + self.role1_id.trans_implied_ids.ids
|
||||||
|
)
|
||||||
role1_group_ids.append(self.role1_id.group_id.id)
|
role1_group_ids.append(self.role1_id.group_id.id)
|
||||||
role1_group_ids = sorted(set(role1_group_ids))
|
role1_group_ids = sorted(set(role1_group_ids))
|
||||||
|
|
||||||
@@ -161,7 +163,9 @@ class TestUserRole(TransactionCase):
|
|||||||
|
|
||||||
def test_role_line_unlink(self):
|
def test_role_line_unlink(self):
|
||||||
# Get role1 groups
|
# Get role1 groups
|
||||||
role1_group_ids = self.role1_id.implied_ids.ids
|
role1_group_ids = (
|
||||||
|
self.role1_id.implied_ids.ids + self.role1_id.trans_implied_ids.ids
|
||||||
|
)
|
||||||
role1_group_ids.append(self.role1_id.group_id.id)
|
role1_group_ids.append(self.role1_id.group_id.id)
|
||||||
role1_group_ids = sorted(set(role1_group_ids))
|
role1_group_ids = sorted(set(role1_group_ids))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user