From 031aa1e530ebd1ada8f85002b783d92b8935be26 Mon Sep 17 00:00:00 2001 From: Mame Coumba Sall <mame@nexedi.com> Date: Wed, 19 Aug 2009 19:51:20 +0000 Subject: [PATCH] modified so that organisations used for testItem are not deleted git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28475 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testInvoice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py index 8879a81a092..a299ebbc2bd 100644 --- a/product/ERP5/tests/testInvoice.py +++ b/product/ERP5/tests/testInvoice.py @@ -135,7 +135,9 @@ class TestInvoiceMixin(TestPackingListMixin, self.portal.sale_packing_list_module, self.portal.purchase_packing_list_module, self.portal.portal_simulation,): - folder.manage_delObjects(list(folder.objectIds())) + + folder.manage_delObjects([x for x in folder.objectIds() if x not in ('organisation_1','organisation_2')]) + transaction.commit() self.tic() -- 2.30.9