Skip to content

Commit

Permalink
chg: ✅ Added tests for null tax rates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanMindee committed Dec 1, 2020
1 parent 7641faa commit b3a1b57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/documents/test_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,13 @@ def test_empty_object_works():
assert receipt.total_tax.value is None


def test_null_tax_rates_dont_raise():
invoice = Receipt(
locale="fr",
total_incl=12,
total_excl=15,
taxes={(1, 0), (2, 20)},
orientation=0,
total_tax=3
)
assert invoice.checklist["taxes_match_total_incl"] is False

0 comments on commit b3a1b57

Please sign in to comment.