From d4239c4e930a147e78fced32e7485ede9392a846 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 4 Mar 2008 17:03:31 +0000 Subject: [PATCH] Make tracking list more realistic. Remove unused node. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19672 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testInventoryAPI.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5/tests/testInventoryAPI.py b/product/ERP5/tests/testInventoryAPI.py index b24da06530..3dd28b54a4 100644 --- a/product/ERP5/tests/testInventoryAPI.py +++ b/product/ERP5/tests/testInventoryAPI.py @@ -1533,7 +1533,6 @@ class TestTrackingList(InventoryAPITestCase): now = DateTime() node_1 = self._makeOrganisation(title='Node 1') node_2 = self._makeOrganisation(title='Node 2') - node_3 = self._makeOrganisation(title='Node 3') date_0 = now - 4 # Before first movement date_1 = now - 3 # First movement date_2 = now - 2 # Between both movements @@ -1543,13 +1542,13 @@ class TestTrackingList(InventoryAPITestCase): aggregate_value=self.item, resource_value=self.resource, start_date=date_1, - source_value=node_2, + source_value=None, destination_value=node_1) self._makeMovement(quantity=1, price=1, aggregate_value=self.item, resource_value=self.resource, start_date=date_3, - source_value=node_3, + source_value=node_1, destination_value=node_2) node_1_uid = node_1.getUid() node_2_uid = node_2.getUid() -- 2.30.9