Skip to content

Commit b3a1b57

Browse files
chg: ✅ Added tests for null tax rates
1 parent 7641faa commit b3a1b57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/documents/test_receipt.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,13 @@ def test_empty_object_works():
181181
assert receipt.total_tax.value is None
182182

183183

184+
def test_null_tax_rates_dont_raise():
185+
invoice = Receipt(
186+
locale="fr",
187+
total_incl=12,
188+
total_excl=15,
189+
taxes={(1, 0), (2, 20)},
190+
orientation=0,
191+
total_tax=3
192+
)
193+
assert invoice.checklist["taxes_match_total_incl"] is False

0 commit comments

Comments
 (0)