Description
Module
base_role_user
Describe the bug
There is an issue with the ordering of lists in the base_role_user module that is causing a test failure. The error occurs when the test test_group_groups_into_role checks if the implied_ids.ids from a new role matches the user_group_ids. Although the lists contain the same elements, they are in a different order, which leads to an AssertionError.
To Reproduce
Affected versions: 17
Steps to reproduce the behavior:
-
Run the tests using the OCA CI for the base_role_user module.
-
Compare the two lists that are expected to be identical.
Example:
The lists are as follows:List 1 (from new_role.implied_ids.ids): [8, 28, 35, 60, 23, 45, 16, 26, 27, 9, 1, 13, 46, ... , 21]
List 2 (from user_group_ids): [8, 28, 23, 45, 35, 60, 16, 26, 27, 9, 1, 13, 46, ... , 21]
The first differing element is at index 2:List 1 has 35 at index 2, while List 2 has 23 at that position.
Expected behavior
The two lists (new_role.implied_ids.ids and user_group_ids) should be identical, with the elements appearing in the same order.
Additional context
test function that cause where the error comes from