mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_payment_order_return: test performance improvement
- Include context keys for avoiding mail operations overhead.
This commit is contained in:
@@ -14,6 +14,16 @@ class TestAccountPaymentOrderReturn(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.env = cls.env(
|
||||
context=dict(
|
||||
cls.env.context,
|
||||
mail_create_nolog=True,
|
||||
mail_create_nosubscribe=True,
|
||||
mail_notrack=True,
|
||||
no_reset_password=True,
|
||||
tracking_disable=True,
|
||||
)
|
||||
)
|
||||
cls.a_income = cls.env["account.account"].create(
|
||||
{
|
||||
"code": "TIA",
|
||||
|
||||
Reference in New Issue
Block a user