Commit cc0034669ebdd0513726e51cf79c1d16a764608a
Committed by
mykhaly
1 parent
e76b07a1
Fix LOT_ID error
Showing
2 changed files
with
9 additions
and
9 deletions
... | ... | @@ -49,9 +49,9 @@ Library openprocurement_client_helper.py |
49 | 49 | |
50 | 50 | |
51 | 51 | Отримати посилання на аукціон для глядача |
52 | - [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty} | |
52 | + [Arguments] ${username} ${tender_uaid} ${lot_id}=${None} | |
53 | 53 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
54 | - ${auctionUrl}= Run Keyword IF '${lot_id}' Set Variable ${tender.data.lots[${lot_index}].auctionUrl} | |
54 | + ${auctionUrl}= Run Keyword IF ${lot_id} Set Variable ${tender.data.lots[${lot_index}].auctionUrl} | |
55 | 55 | ... ELSE Set Variable ${tender.data.auctionUrl} |
56 | 56 | [return] ${auctionUrl} |
57 | 57 | |
... | ... | @@ -435,9 +435,9 @@ Library openprocurement_client_helper.py |
435 | 435 | |
436 | 436 | |
437 | 437 | Отримати посилання на аукціон для учасника |
438 | - [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty} | |
438 | + [Arguments] ${username} ${tender_uaid} ${lot_id}=${None} | |
439 | 439 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} |
440 | - ${participationUrl}= Run Keyword IF '${lot_id}' Set Variable ${bid.data.lotValues[${lot_index}].participationUrl} | |
440 | + ${participationUrl}= Run Keyword IF ${lot_id} Set Variable ${bid.data.lotValues[${lot_index}].participationUrl} | |
441 | 441 | ... ELSE Set Variable ${bid.data.participationUrl} |
442 | 442 | [return] ${participationUrl} |
443 | 443 | |
... | ... | @@ -450,11 +450,11 @@ Library openprocurement_client_helper.py |
450 | 450 | ... [Arguments] Username, tender uaid, qualification number and document to upload |
451 | 451 | ... [Description] Find tender using uaid, and call upload_qualification_document |
452 | 452 | ... [Return] Reply of API |
453 | - [Arguments] ${username} ${document} ${tender_uaid} ${award_num} ${lot_id}=${Empty} | |
453 | + [Arguments] ${username} ${document} ${tender_uaid} ${award_num} ${lot_id}=${None} | |
454 | 454 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
455 | 455 | ${doc}= Call Method ${USERS.users['${username}'].client} upload_award_document ${document} ${tender} ${tender.data.awards[${award_num}].id} |
456 | - ${lot_index}= Run Keyword If '${lot_id}' get_object_index_by_id ${tender.data.lots} ${lot_id} | |
457 | - Run Keyword If '${lot_id}' | |
456 | + ${lot_index}= Run Keyword If ${lot_id} get_object_index_by_id ${tender.data.lots} ${lot_id} | |
457 | + Run Keyword If ${lot_id} | |
458 | 458 | ... Set To Object ${doc.data} documentOf lot |
459 | 459 | ... Set To Object ${doc.data} relatedItem ${tender.data.lots[${lot_index}].id} |
460 | 460 | ... Call Method ${USERS.users['${username}'].client} patch_document ${tender} ${doc} | ... | ... |
... | ... | @@ -180,7 +180,7 @@ Get Broker Property By Username |
180 | 180 | ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml |
181 | 181 | ${ARTIFACT}= load_data_from ${file_path} |
182 | 182 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.access_token} |
183 | - ${TENDER}= Create Dictionary TENDER_UAID=${ARTIFACT.tender_uaid} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date} LOT_ID=${Empty} | |
183 | + ${TENDER}= Create Dictionary TENDER_UAID=${ARTIFACT.tender_uaid} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date} LOT_ID=${None} | |
184 | 184 | ${lot_index}= Get Variable Value ${lot_index} 0 |
185 | 185 | Run Keyword And Ignore Error Set To Dictionary ${TENDER} LOT_ID=${ARTIFACT.lots[${lot_index}]} |
186 | 186 | ${mode}= Get Variable Value ${mode} ${ARTIFACT.mode} |
... | ... | @@ -481,7 +481,7 @@ Get Broker Property By Username |
481 | 481 | Отримати шлях до поля об’єкта |
482 | 482 | [Arguments] ${username} ${field_name} ${object_id} |
483 | 483 | ${object_type}= get_object_type_by_id ${object_id} |
484 | - ${objects}= Get Variable Value ${USERS.users['${username}'].tender_data.data['${object_type}']} ${empty} | |
484 | + ${objects}= Get Variable Value ${USERS.users['${username}'].tender_data.data['${object_type}']} ${None} | |
485 | 485 | ${object_index}= get_object_index_by_id ${objects} ${object_id} |
486 | 486 | [return] ${object_type}[${object_index}].${field_name} |
487 | 487 | ... | ... |
Please
register
or
login
to post a comment