You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
server-backend/base_user_role/tests/test_user_role.py
Line 272 in 77db565
The text was updated successfully, but these errors were encountered: