Commit d4239c4e authored by Vincent Pelletier's avatar Vincent Pelletier

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
parent ec5722b4
...@@ -1533,7 +1533,6 @@ class TestTrackingList(InventoryAPITestCase): ...@@ -1533,7 +1533,6 @@ class TestTrackingList(InventoryAPITestCase):
now = DateTime() now = DateTime()
node_1 = self._makeOrganisation(title='Node 1') node_1 = self._makeOrganisation(title='Node 1')
node_2 = self._makeOrganisation(title='Node 2') node_2 = self._makeOrganisation(title='Node 2')
node_3 = self._makeOrganisation(title='Node 3')
date_0 = now - 4 # Before first movement date_0 = now - 4 # Before first movement
date_1 = now - 3 # First movement date_1 = now - 3 # First movement
date_2 = now - 2 # Between both movements date_2 = now - 2 # Between both movements
...@@ -1543,13 +1542,13 @@ class TestTrackingList(InventoryAPITestCase): ...@@ -1543,13 +1542,13 @@ class TestTrackingList(InventoryAPITestCase):
aggregate_value=self.item, aggregate_value=self.item,
resource_value=self.resource, resource_value=self.resource,
start_date=date_1, start_date=date_1,
source_value=node_2, source_value=None,
destination_value=node_1) destination_value=node_1)
self._makeMovement(quantity=1, price=1, self._makeMovement(quantity=1, price=1,
aggregate_value=self.item, aggregate_value=self.item,
resource_value=self.resource, resource_value=self.resource,
start_date=date_3, start_date=date_3,
source_value=node_3, source_value=node_1,
destination_value=node_2) destination_value=node_2)
node_1_uid = node_1.getUid() node_1_uid = node_1.getUid()
node_2_uid = node_2.getUid() node_2_uid = node_2.getUid()
......
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