Commit 43e6e7a010953c521d18e402c02db871e997562d

Authored by Leits
1 parent c860534e

Fix relatedLot for items

... ... @@ -95,8 +95,8 @@ def test_tender_data(params, periods=("enquiry", "tender")):
95 95 data['lots'][lot_number]['id'] = lot_id
96 96 for i in range(params['number_of_items']):
97 97 new_item = test_item_data(cpv_group)
  98 + new_item['relatedLot'] = lot_id
98 99 data['items'].append(new_item)
99   - data['items'][lot_number]['relatedLot'] = lot_id
100 100 value_amount = sum(lot['value']['amount'] for lot in data['lots'])
101 101 minimalStep = min(lot['minimalStep']['amount'] for lot in data['lots'])
102 102 data['value']['amount'] = value_amount
... ...
Please register or login to post a comment