mirror of https://github.com/OCA/social.git
22 lines
522 B
Python
22 lines
522 B
Python
# Copyright 2024 Dixmit
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo.tests.common import HttpCase
|
|
|
|
|
|
class MailGatewayTestCase(HttpCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
cls._setup_env()
|
|
|
|
@classmethod
|
|
def _setup_context(cls):
|
|
return dict(
|
|
cls.env.context, tracking_disable=True, test_queue_job_no_delay=True
|
|
)
|
|
|
|
@classmethod
|
|
def _setup_env(cls):
|
|
cls.env = cls.env(context=cls._setup_context())
|