[FIX] base_user_role: Improve test validation sorting values

Related to https://github.com/OCA/server-backend/pull/304
This commit is contained in:
Víctor Martínez
2024-09-05 17:35:42 +02:00
parent 10d6db4ce6
commit 5cdaa567c7

View File

@@ -269,4 +269,4 @@ class TestUserRole(TransactionCase):
new_role = self.role_model.search([("name", "=", "Test Role")]) new_role = self.role_model.search([("name", "=", "Test Role")])
self.assertTrue(new_role) self.assertTrue(new_role)
# Check that the role has the correct groups # Check that the role has the correct groups
self.assertEqual(new_role.implied_ids.ids, user_group_ids) self.assertEqual(set(new_role.implied_ids.ids), set(user_group_ids))