Skip to content

Commit

Permalink
[UPD] queue_job_subscribe: Update disable tracking and use no_reset_p…
Browse files Browse the repository at this point in the history
…assword for tests
  • Loading branch information
thienvh332 committed Oct 18, 2024
1 parent 1342662 commit 00345e5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions queue_job_subscribe/tests/test_job_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]"}
Expand Down

0 comments on commit 00345e5

Please sign in to comment.