mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] account_bank_statement_reopen_skip_undo_reconciliation: test performance improvement
- Create setUpClass method - Include context keys for avoiding mail operations overhead.
This commit is contained in:
@@ -11,6 +11,20 @@ from odoo.addons.account.tests.test_account_bank_statement import (
|
||||
|
||||
@tagged("post_install", "-at_install")
|
||||
class TestAccountBankStatementLine(TestAccountBankStatementCommon):
|
||||
@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,
|
||||
)
|
||||
)
|
||||
|
||||
def test_button_undo_reconciliation(self):
|
||||
statement = self.env["account.bank.statement"].create(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user