Skip to content

Commit

Permalink
Merge PR #566 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 24, 2023
2 parents 4fe419a + c627456 commit e130c25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions auth_oauth_multi_token/tests/test_multi_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ class TestMultiToken(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# Remove this variable in v16 and put instead:
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
DISABLED_MAIL_CONTEXT = {
"tracking_disable": True,
"mail_create_nolog": True,
"mail_create_nosubscribe": True,
"mail_notrack": True,
"no_reset_password": True,
}
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.token_model = cls.env["auth.oauth.multi.token"]
cls.provider_google = cls.env.ref("auth_oauth.provider_google")
cls.user_model = cls.env["res.users"].with_context(
Expand Down

0 comments on commit e130c25

Please sign in to comment.