-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPD] queue_job_subscribe: Update disable tracking and use no_reset_p…
…assword for tests
- Loading branch information
1 parent
1342662
commit 00345e5
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,22 @@ | |
class TestJobSubscribe(common.TransactionCase): | ||
def setUp(self): | ||
super().setUp() | ||
self.env = self.env(context=dict(self.env.context, tracking_disable=True)) | ||
grp_queue_job_manager = self.ref("queue_job.group_queue_job_manager") | ||
self.other_partner_a = self.env["res.partner"].create( | ||
{"name": "My Company a", "is_company": True, "email": "[email protected]"} | ||
) | ||
self.other_user_a = self.env["res.users"].create( | ||
{ | ||
"partner_id": self.other_partner_a.id, | ||
"login": "my_login a", | ||
"name": "my user", | ||
"groups_id": [(4, grp_queue_job_manager)], | ||
} | ||
self.other_user_a = ( | ||
self.env["res.users"] | ||
.with_context(no_reset_password=True) | ||
.create( | ||
{ | ||
"partner_id": self.other_partner_a.id, | ||
"login": "my_login a", | ||
"name": "my user", | ||
"groups_id": [(4, grp_queue_job_manager)], | ||
} | ||
) | ||
) | ||
self.other_partner_b = self.env["res.partner"].create( | ||
{"name": "My Company b", "is_company": True, "email": "[email protected]"} | ||
|