Commit f82e3a73aa5abebdd70043df8b74126bc5cf272d
Committed by
OrysiaDrabych
1 parent
3730cfa8
Add `Можливість редагувати договір` test case
And corresponding keyword to op_client.robot
Showing
2 changed files
with
15 additions
and
0 deletions
@@ -1338,3 +1338,13 @@ Library openprocurement_client.utils | @@ -1338,3 +1338,13 @@ Library openprocurement_client.utils | ||
1338 | ${reply_doc_patch}= Call Method ${USERS.users['${username}'].contracting_client} patch_document ${internalid} ${reply_doc_create.data.id} ${USERS.users['${username}'].contract_access_token} ${data} | 1338 | ${reply_doc_patch}= Call Method ${USERS.users['${username}'].contracting_client} patch_document ${internalid} ${reply_doc_create.data.id} ${USERS.users['${username}'].contract_access_token} ${data} |
1339 | Log ${reply_doc_create} | 1339 | Log ${reply_doc_create} |
1340 | Log ${reply_doc_patch} | 1340 | Log ${reply_doc_patch} |
1341 | + | ||
1342 | + | ||
1343 | +Редагувати договір | ||
1344 | + [Arguments] ${username} ${contract_uaid} ${fieldname} ${fieldvalue} | ||
1345 | + ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} | ||
1346 | + ${contract}= openprocurement_client.Пошук договору по ідентифікатору ${username} ${contract_uaid} | ||
1347 | + Set_To_Object ${contract.data} ${fieldname} ${fieldvalue} | ||
1348 | + Log ${contract} | ||
1349 | + ${contract}= Call Method ${USERS.users['${username}'].contracting_client} patch_contract ${internalid} ${USERS.users['${username}'].contract_access_token} ${contract} | ||
1350 | + Log ${contract} |
@@ -51,3 +51,8 @@ Suite Teardown Test Suite Teardown | @@ -51,3 +51,8 @@ Suite Teardown Test Suite Teardown | ||
51 | ... ${USERS.users['${tender_owner}'].broker} | 51 | ... ${USERS.users['${tender_owner}'].broker} |
52 | ${document}= create_fake_doc | 52 | ${document}= create_fake_doc |
53 | Run As ${tender_owner} Додати документацію до зміни в договорі ${CONTRACT_UAID} ${document} | 53 | Run As ${tender_owner} Додати документацію до зміни в договорі ${CONTRACT_UAID} ${document} |
54 | + | ||
55 | + | ||
56 | +Можливість редагувати договір | ||
57 | + ${description}= create_fake_sentence | ||
58 | + Run As ${tender_owner} Редагувати договір ${CONTRACT_UAID} description ${description} |
Please
register
or
login
to post a comment