Commit b12aa277 authored by Julien Muchembled's avatar Julien Muchembled

Add comment about failing test in testTradeModelLine

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d026cee1
......@@ -638,6 +638,10 @@ class TestTradeModelLine(TestTradeModelLineMixin):
# second packing list, and we end up with 3 invoices. In other words,
# the new simulation splits the second invoice, and I am not sure it's
# correct.
# The difference between old and new simulation is that when the first
# invoice is confirmed, the old code does not expand the simulation
# tree completely and SaleInvoice_selectTradeModelMovementList can't
# find any simulation movements related to the second packing list.
expectedFailure(self.assertEqual)(invoice_count + 1, len(self.portal
.accounting_module.objectValues(portal_type=self.invoice_portal_type)))
self.processPackingListBuildInvoice(new_packing_list)
......
......@@ -212,11 +212,6 @@ class TestBPMMixin(ERP5TypeTestCase):
def beforeTearDown(self):
# abort any transaction
transaction.abort()
# put non finished activities into ignored state
activity_connection = self.portal.cmf_activity_sql_connection
for table in 'message', 'message_queue':
activity_connection.manage_test(
'delete from %s where processing_node=-2' % table)
# remove not needed rules
self.portal.portal_rules.manage_delObjects(
ids=['test_invoice_transaction_simulation_rule'])
......
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