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,11 +1160,11 @@ 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.solveDivergence(invoice.getRelativeUrl(),
divergence_to_accept_list=divergence_list)
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)
get_transaction().commit()
self.tic()
......@@ -1220,11 +1220,11 @@ 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.solveDivergence(invoice.getRelativeUrl(),
divergence_to_adopt_list=divergence_list)
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)
get_transaction().commit()
self.tic()
......@@ -2198,11 +2198,11 @@ 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.solveDivergence(invoice.getRelativeUrl(),
divergence_to_accept_list=divergence_list)
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)
get_transaction().commit()
self.tic()
......
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