Skip to content

Commit

Permalink
[IMP] account_banking_sepa_credit_transfer: Prevent test error if pro…
Browse files Browse the repository at this point in the history
…ject demo data exists

TT52526
  • Loading branch information
victoralmau committed Jan 7, 2025
1 parent 061c286 commit 6613d8b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions account_banking_sepa_credit_transfer/tests/test_sct.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
from lxml import etree

from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase

from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
from odoo.addons.base.tests.common import BaseCommon


class TestSCT(TransactionCase):
class TestSCT(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.account_model = cls.env["account.account"]
cls.move_model = cls.env["account.move"]
cls.journal_model = cls.env["account.journal"]
Expand All @@ -28,9 +26,9 @@ def setUpClass(cls):
cls.attachment_model = cls.env["ir.attachment"]
cls.invoice_model = cls.env["account.move"]
cls.invoice_line_model = cls.env["account.move.line"]
cls.partner_agrolait = cls.env.ref("base.res_partner_2")
cls.partner_asus = cls.env.ref("base.res_partner_1")
cls.partner_c2c = cls.env.ref("base.res_partner_12")
cls.partner_agrolait = cls.env["res.partner"].create({"name": "Agrolait"})
cls.partner_asus = cls.env["res.partner"].create({"name": "Asus"})
cls.partner_c2c = cls.env["res.partner"].create({"name": "C2C"})
cls.eur_currency = cls.env.ref("base.EUR")
cls.eur_currency.active = True
cls.usd_currency = cls.env.ref("base.USD")
Expand Down

0 comments on commit 6613d8b

Please sign in to comment.