Commit bbd512f6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

testInventoryAPI: edit dummy movement with resource_value instead of resource_uid.

otherwise edit is called with both (new) resource_uid and (old) resource_value.
parent b29ae4b8
......@@ -1640,7 +1640,7 @@ class TestInventoryList(InventoryAPITestCase):
for month, value in six.iteritems(data):
for mov in value['movement_list']:
d = DateTime('%s/15 15:00 UTC' % month)
self._makeMovement(start_date=d, resource_uid=resource_uid, **mov)
self._makeMovement(start_date=d, resource_value=resource, **mov)
# and check
for cur in sorted(data)[1:]:
......@@ -1665,7 +1665,7 @@ class TestInventoryList(InventoryAPITestCase):
for month, value in six.iteritems(internal_data):
for mov in value['movement_list']:
d = DateTime('%s/15 15:00 UTC' % month)
self._makeMovement(is_internal=1, start_date=d, resource_uid=resource_uid, **mov)
self._makeMovement(is_internal=1, start_date=d, resource_value=resource, **mov)
for cur in sorted(internal_data):
to_date = DateTime("%s/1" % cur) + 31
# check by section
......
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