Skip to content

Commit

Permalink
Refactor setUpClass method to use setup_country decorator
Browse files Browse the repository at this point in the history
Replaced the manual chart template reference with the setup_country decorator for improved clarity and maintainability. The setup process for the test class is now more streamlined and adheres to updated coding practices.
  • Loading branch information
dhongu committed Jan 27, 2025
1 parent 4865bff commit 6f15d94
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
@tagged("post_install", "-at_install")
class TestMT940BankStatementImport(AccountTestInvoicingCommon):
@classmethod
def setUpClass(cls, chart_template_ref="ro"):
super().setUpClass(chart_template_ref=chart_template_ref)
@AccountTestInvoicingCommon.setup_country("ro")
def setUpClass(cls):
super().setUpClass()
cls.env.company.anglo_saxon_accounting = True
cls.env.company.l10n_ro_accounting = True

Expand Down

0 comments on commit 6f15d94

Please sign in to comment.