Skip to content

Commit

Permalink
[MIG] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Dec 23, 2022
1 parent 395c2a2 commit 67b813d
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions l10n_br_account_due_list/tests/test_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,26 @@
from odoo.tests import Form, common


class TestPayments(common.SavepointCase):
class TestPayments(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.account_type = cls.env["account.account.type"].create(
{"name": "Test", "type": "other", "internal_group": "income"}
)
cls.account = cls.env["account.account"].create(
{
"name": "Test account",
"code": "TEST",
"user_type_id": cls.account_type.id,
"reconcile": True,
}
)
cls.account_type_receivable = cls.env["account.account.type"].create(
{"name": "Test", "type": "receivable", "internal_group": "income"}
)
cls.account_receivable = cls.env["account.account"].create(
{
"name": "Test receivable account",
"code": "ACCRV",
"user_type_id": cls.account_type_receivable.id,
"account_type": "asset_receivable",
"reconcile": True,
}
)
cls.account_type_payable = cls.env["account.account.type"].create(
{"name": "Test", "type": "payable", "internal_group": "income"}
)
cls.account_payable = cls.env["account.account"].create(
{
"name": "Test receivable account",
"name": "Test payable account",
"code": "ACCPAY",
"user_type_id": cls.account_type_payable.id,
"account_type": "asset_payable",
"reconcile": True,
}
)

cls.partner_1 = cls.env["res.partner"].create(
{
"name": "Mr. Odoo",
Expand Down

0 comments on commit 67b813d

Please sign in to comment.