Commit 12498658 authored by Jérome Perrin's avatar Jérome Perrin

those tests were wrong, they were using packing list builders instead of

invoice builder


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24976 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e5322b16
......@@ -1160,9 +1160,9 @@ class TestInvoice(TestInvoiceMixin):
self.assertEquals('quantity', divergence.tested_property)
# accept decision
builder_list = packing_list.getBuilderList()
self.assertEquals(1, len(builder_list))
builder = builder_list[0]
builder_list = invoice.getBuilderList()
self.assertEquals(2, len(builder_list))
for builder in builder_list:
builder.solveDivergence(invoice.getRelativeUrl(),
divergence_to_accept_list=divergence_list)
......@@ -1220,9 +1220,9 @@ class TestInvoice(TestInvoiceMixin):
self.assertEquals('quantity', divergence.tested_property)
# adopt prevision
builder_list = packing_list.getBuilderList()
self.assertEquals(1, len(builder_list))
builder = builder_list[0]
builder_list = invoice.getBuilderList()
self.assertEquals(2, len(builder_list))
for builder in builder_list:
builder.solveDivergence(invoice.getRelativeUrl(),
divergence_to_adopt_list=divergence_list)
......@@ -2198,9 +2198,9 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
self.assertEquals('quantity', divergence.tested_property)
# accept decision
builder_list = packing_list.getBuilderList()
self.assertEquals(1, len(builder_list))
builder = builder_list[0]
builder_list = invoice.getBuilderList()
self.assertEquals(2, len(builder_list))
for builder in builder_list:
builder.solveDivergence(invoice.getRelativeUrl(),
divergence_to_accept_list=divergence_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment