Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Jan 17, 2025
1 parent ff8203c commit 2da7954
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions l10n_it_account/tests/test_l10n_it_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,12 @@ def test_partially_deductible_balance_recomputation(self):

# Check tomorrow's balance
self.check_date_balance(self.iva_22I5, tomorrow, -22, -22)

def check_date_balance(self, tax, date, deductible, not_deductible):
"""Compare expected balances with tax's balance in specified date."""
tax = tax.with_context(
from_date=date,
to_date=date,
)
self.assertEqual(tax.deductible_balance, deductible)
self.assertEqual(tax.undeductible_balance, not_deductible)

0 comments on commit 2da7954

Please sign in to comment.