Commit 96faddd1a1ef9630da4bf6b197fafe65b2b2a012
Committed by
OrysiaDrabych
1 parent
30b5c7bd
Update `Можливість завершити договір' test case
Move creation of data to be passed into `Завершити договір` keyword to the highest test case level
Showing
2 changed files
with
7 additions
and
6 deletions
... | ... | @@ -1373,12 +1373,8 @@ Library openprocurement_client.utils |
1373 | 1373 | |
1374 | 1374 | |
1375 | 1375 | Завершити договір |
1376 | - [Arguments] ${username} ${contract_uaid} ${amount} | |
1376 | + [Arguments] ${username} ${contract_uaid} ${data} | |
1377 | 1377 | ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} |
1378 | - ${data}= Create Dictionary status=terminated | |
1379 | - ${amountPaid}= Create Dictionary amount=${amount} | |
1380 | - ${data}= Create Dictionary data=${data} | |
1381 | - Set to dictionary ${data.data} amountPaid=${amountPaid} | |
1382 | 1378 | ${reply}= Call Method ${USERS.users['${username}'].contracting_client} patch_contract ${internalid} ${USERS.users['${username}'].contract_access_token} ${data} |
1383 | 1379 | Log ${reply} |
1384 | 1380 | ... | ... |
... | ... | @@ -104,4 +104,9 @@ Suite Teardown Test Suite Teardown |
104 | 104 | ... ${USERS.users['${tender_owner}'].broker} |
105 | 105 | Log ${USERS.users['${tender_owner}'].contract_data} |
106 | 106 | ${amount}= Get variable value ${USERS.users['${tender_owner}'].contract_data.data.value.amount} |
107 | - Run As ${tender_owner} Завершити договір ${CONTRACT_UAID} ${amount} | |
107 | + ${data}= Create Dictionary status=terminated | |
108 | + ${amountPaid}= Create Dictionary amount=${amount} valueAddedTaxIncluded=${True} currency=UAH | |
109 | + ${data}= Create Dictionary data=${data} | |
110 | + Set to dictionary ${data.data} amountPaid=${amountPaid} | |
111 | + Set to dictionary ${USERS.users['${tender_owner}']} terminating_data=${data} | |
112 | + Run As ${tender_owner} Завершити договір ${CONTRACT_UAID} ${data} | ... | ... |
Please
register
or
login
to post a comment