Skip to content

Commit f1f133d

Browse files
committed
API response change from avalara. The number of TaxAddress lines in the response is no longer conditioned on the number of lines, but solely on the number of addresses.
1 parent 16bbf7e commit f1f133d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test_avalara.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def test_justtozip():
214214
tax = api.post_tax(doc)
215215
assert tax.is_success is True
216216
assert tax.TotalTax > 0
217-
assert len(tax.TaxAddresses) == 6
217+
assert len(tax.TaxAddresses) == 2
218218
assert len(tax.TaxLines) == 3
219219
assert len(tax.TaxLines[0].TaxDetails) > 0
220220
assert tax.DocCode
@@ -280,7 +280,7 @@ def test_posttax():
280280
tax = api.post_tax(doc)
281281
assert tax.is_success is True
282282
assert tax.TotalTax > 0
283-
assert len(tax.TaxAddresses) == 6
283+
assert len(tax.TaxAddresses) == 2
284284
assert len(tax.TaxLines) == 3
285285
assert len(tax.TaxLines[0].TaxDetails) > 0
286286
assert tax.DocCode
@@ -342,7 +342,7 @@ def test_posttax_commit_exempt():
342342
assert doc.DocType == Document.DOC_TYPE_SALE_INVOICE # make sure the doc type changes with commit
343343
assert tax.is_success is True
344344
assert tax.TotalTax == '0'
345-
assert len(tax.TaxAddresses) == 4
345+
assert len(tax.TaxAddresses) == 2
346346
assert len(tax.TaxLines) == 2
347347

348348

@@ -364,7 +364,7 @@ def test_posttax_commit():
364364
assert tax.is_success is True
365365
assert tax.TotalTax > 0
366366
assert tax.total_tax == tax.TotalTax
367-
assert len(tax.TaxAddresses) == 4
367+
assert len(tax.TaxAddresses) == 2
368368
assert len(tax.TaxLines) == 2
369369
assert len(tax.TaxLines[0].TaxDetails) > 0
370370

0 commit comments

Comments
 (0)