Commit 51d15c3bd371a0896e6485a3fd49a55b5a2cd898
Committed by
GitHub
Merge pull request #315 from gorserg/add_lot_limited
Виправив коментарі до #299
Showing
2 changed files
with
4 additions
and
3 deletions
... | ... | @@ -138,7 +138,7 @@ def test_tender_data_limited(params): |
138 | 138 | del data["enquiryPeriod"] |
139 | 139 | del data["tenderPeriod"] |
140 | 140 | for lot in data.get('lots', []): |
141 | - del lot['minimalStep'] | |
141 | + lot.pop('minimalStep', None) | |
142 | 142 | data["procuringEntity"]["kind"] = "general" |
143 | 143 | data.update({"procurementMethodType": params['mode'], "procurementMethod": "limited"}) |
144 | 144 | if params['mode'] == "negotiation": | ... | ... |
... | ... | @@ -265,9 +265,10 @@ Get Broker Property By Username |
265 | 265 | |
266 | 266 | Підготувати дані про постачальника |
267 | 267 | [Arguments] ${username} ${lotIndex}=${-1} |
268 | + ${lotIndex}= Convert To Number ${lotIndex} | |
268 | 269 | ${supplier_data}= test_supplier_data |
269 | - Run Keyword If ${lotIndex} > -1 Set To Dictionary ${supplier_data.data} lotID=${USERS.users['${username}'].tender_data.data['lots'][${lotIndex}]['id']} | |
270 | - Set To Dictionary ${USERS.users['${username}']} supplier_data=${supplier_data} | |
270 | + Run Keyword If ${lotIndex} > -1 Set To Dictionary ${supplier_data.data} lotID=${USERS.users['${tender_owner}'].initial_data.data['lots'][${lotIndex}]['id']} | |
271 | + Set To Dictionary ${USERS.users['${tender_owner}']} supplier_data=${supplier_data} | |
271 | 272 | Log ${supplier_data} |
272 | 273 | [Return] ${supplier_data} |
273 | 274 | ... | ... |
Please
register
or
login
to post a comment