Commit 99deec6c authored by Nicolas Wavrant's avatar Nicolas Wavrant

testInventoryAPI: fix property setters

parent bcd22bf2
...@@ -2516,13 +2516,13 @@ class TestMovementHistoryList(InventoryAPITestCase): ...@@ -2516,13 +2516,13 @@ class TestMovementHistoryList(InventoryAPITestCase):
destination_value=self.node, destination_value=self.node,
source_value=self.mirror_node,) source_value=self.mirror_node,)
m1 = delivery.newContent(portal_type='Dummy Movement', quantity=1, m1 = delivery.newContent(portal_type='Dummy Movement', quantity=1,
price=3, resource_value=self.resource, price=3, resource=self.resource.getRelativeUrl(),
start_date=DateTime(2010, 1, 1)) start_date=DateTime(2010, 1, 1))
m2 = delivery.newContent(portal_type='Dummy Movement', quantity=1, m2 = delivery.newContent(portal_type='Dummy Movement', quantity=1,
price=2, resource_value=self.resource, price=2, resource=self.resource.getRelativeUrl(),
start_date=DateTime(2010, 1, 1)) start_date=DateTime(2010, 1, 1))
m3 = delivery.newContent(portal_type='Dummy Movement', quantity=1, m3 = delivery.newContent(portal_type='Dummy Movement', quantity=1,
price=7, resource_value=self.other_resource, price=7, resource=self.other_resource.getRelativeUrl(),
start_date=DateTime(2010, 1, 2)) start_date=DateTime(2010, 1, 2))
self.commit(); self.commit();
self.tic() self.tic()
...@@ -2818,15 +2818,15 @@ class TestTrackingList(InventoryAPITestCase): ...@@ -2818,15 +2818,15 @@ class TestTrackingList(InventoryAPITestCase):
node_b = self._makeOrganisation(title='Node B') node_b = self._makeOrganisation(title='Node B')
node_c = self._makeOrganisation(title='Node C') node_c = self._makeOrganisation(title='Node C')
movement_a = self._makeMovement(source_value=node_a, movement_a = self._makeMovement(source_value=node_a,
destination_value=node_b, resource=self.resource, destination_value=node_b, resource=self.resource.getResource(),
quantity=1, aggregate_value=item_a, start_date=now, quantity=1, aggregate_value=item_a, start_date=now,
simulation_state=state_a) simulation_state=state_a)
movement_b = self._makeMovement(source_value=node_b, movement_b = self._makeMovement(source_value=node_b,
destination_value=node_c, resource=self.resource, destination_value=node_c, resource=self.resource.getResource(),
quantity=1, aggregate_value=item_a, start_date=now+1, quantity=1, aggregate_value=item_a, start_date=now+1,
simulation_state=state_b) simulation_state=state_b)
movement_c = self._makeMovement(source_value=node_a, movement_c = self._makeMovement(source_value=node_a,
destination_value=node_b, resource=self.resource, destination_value=node_b, resource=self.resource.getResource(),
quantity=1, aggregate_value=item_b, start_date=now+1, quantity=1, aggregate_value=item_b, start_date=now+1,
simulation_state=state_c) simulation_state=state_c)
self.tic() 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