Skip to content

Commit

Permalink
Added tests for l10n_nl_rgs
Browse files Browse the repository at this point in the history
Pre-commit fixes

Test Updates

Test Updates

Test Updates

Test Updates

Test Updates

Test Updates
  • Loading branch information
ByteMeAsap committed Feb 16, 2024
1 parent 1d23580 commit 0afadea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_nl_rgs/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_l10n_nl_rgs_coa
20 changes: 20 additions & 0 deletions l10n_nl_rgs/tests/test_l10n_nl_rgs_coa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2024 Onestein (<http://www.onestein.eu>).
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo.tests.common import TransactionCase


class L10nNlRGSCoa(TransactionCase):
def setUp(self):
super().setUp()
self.l10n_nl_rgs_coa = self.env.ref("l10n_nl_rgs.l10nnl_rgs_chart_template")
self.l10n_nl_rgs_company = self.env["res.company"].create(
{"name": "Test Company"}
)

def test_l10n_nl_rgs_coa(self):
"""Test installing the chart of accounts template in a new company"""
self.l10n_nl_rgs_coa._load(company=self.l10n_nl_rgs_company)
self.assertEqual(
self.l10n_nl_rgs_coa, self.l10n_nl_rgs_company.chart_template_id
)

0 comments on commit 0afadea

Please # to comment.