Commit 8b2aacef authored by Jérome Perrin's avatar Jérome Perrin

getTrackingList does not accept "aggregate_value" parameter, but

"aggregate_uid"


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ff061a6
...@@ -1737,7 +1737,8 @@ class TestTrackingList(InventoryAPITestCase): ...@@ -1737,7 +1737,8 @@ class TestTrackingList(InventoryAPITestCase):
for date, location_dict in date_location_dict.iteritems(): for date, location_dict in date_location_dict.iteritems():
for param_id, location_uid in location_dict.iteritems(): for param_id, location_uid in location_dict.iteritems():
param_dict = {param_id: date} param_dict = {param_id: date}
uid_list = [x.node_uid for x in getTrackingList(aggregate_value=self.item, **param_dict)] uid_list = [x.node_uid for x in getTrackingList(
aggregate_uid=self.item.getUid(), **param_dict)]
if location_uid is None: if location_uid is None:
self.assertEqual(len(uid_list), 0) self.assertEqual(len(uid_list), 0)
else: else:
......
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