Use kwargs in with_context, as per pre-commit recommendation

This commit is contained in:
Guillaume Pothier
2023-06-21 17:21:41 -04:00
committed by Raf Ven
parent bc514df073
commit c31ccb3b61

View File

@@ -237,8 +237,7 @@ class TestUserRole(TransactionCase):
"assign_to_user": False, "assign_to_user": False,
} }
) )
ctx = {"active_ids": [self.user_id.id]} result = wizard.with_context(active_ids=[self.user_id.id]).create_from_user()
result = wizard.with_context(ctx).create_from_user()
# Check that the role has the same groups as the user # Check that the role has the same groups as the user
role_id = result["res_id"] role_id = result["res_id"]