mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
Use kwargs in with_context, as per pre-commit recommendation
This commit is contained in:
committed by
Bert Van Groenendael
parent
b7ed210c8d
commit
5921ddff03
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user