Commit 8f50443083cbf13d0f4cffd3df915458a347639e
1 parent
37b9eb59
op_client: Simplify 'Get offers'; amend name
Showing
1 changed file
with
8 additions
and
12 deletions
@@ -312,18 +312,14 @@ Library openprocurement_client_helper.py | @@ -312,18 +312,14 @@ Library openprocurement_client_helper.py | ||
312 | Log object data ${reply} reply | 312 | Log object data ${reply} reply |
313 | [return] ${reply} | 313 | [return] ${reply} |
314 | 314 | ||
315 | -Отримати пропозиції | ||
316 | - [Documentation] | ||
317 | - ... ${ARGUMENTS[0]} == username | ||
318 | - ... ${ARGUMENTS[1]} == tender_uid | ||
319 | - ... ${ARGUMENTS[2]} == bid_id | ||
320 | - ... ${ARGUMENTS[3]} == token | ||
321 | - [Arguments] @{ARGUMENTS} | ||
322 | - ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | ||
323 | - ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | ||
324 | - ${bids}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_bid ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} | ||
325 | - Log ${bids} | ||
326 | - [return] ${bids} | 315 | +Отримати пропозицію |
316 | + [Arguments] ${username} ${tender_uid} | ||
317 | + ${internalid}= Отримати internal id по UAid ${username} ${tender_uid} | ||
318 | + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id} | ||
319 | + ${token}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].access.token} | ||
320 | + ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid} | ||
321 | + ${bid}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token} | ||
322 | + [return] ${bid} | ||
327 | 323 | ||
328 | Отримати документ | 324 | Отримати документ |
329 | [Documentation] | 325 | [Documentation] |
Please
register
or
login
to post a comment