Showing
3 changed files
with
10 additions
and
5 deletions
... | ... | @@ -1338,11 +1338,11 @@ Library openprocurement_client.utils |
1338 | 1338 | |
1339 | 1339 | Додати документацію до зміни в договорі |
1340 | 1340 | [Arguments] ${username} ${contract_uaid} ${document} |
1341 | - ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} | |
1342 | - ${reply_doc_create}= Call Method ${USERS.users['${username}'].contracting_client} upload_document ${document} ${internalid} ${USERS.users['${username}'].contract_access_token} | |
1343 | - ${data}= Create Dictionary documentOf=change relatedItem=${USERS.users['${username}'].changes[0].data.id} | |
1344 | - ${data}= Create Dictionary data=${data} | |
1345 | - ${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} | |
1341 | + ${contract}= openprocurement_client.Пошук договору по ідентифікатору ${username} ${contract_uaid} | |
1342 | + ${contract}= set_access_key ${contract} ${USERS.users['${username}'].contract_access_token} | |
1343 | + ${reply_doc_create}= Call Method ${USERS.users['${username}'].contracting_client} upload_document ${document} ${contract} | |
1344 | + ${change_document}= test_change_document_data ${reply_doc_create} ${USERS.users['${username}'].changes[0].data.id} | |
1345 | + ${reply_doc_patch}= Call Method ${USERS.users['${username}'].contracting_client} patch_document ${contract} ${change_document} | |
1346 | 1346 | Log ${reply_doc_create} |
1347 | 1347 | Log ${reply_doc_patch} |
1348 | 1348 | ... | ... |
... | ... | @@ -441,6 +441,10 @@ def test_lot_document_data(document, lot_id): |
441 | 441 | document.data.update({"documentOf": "lot", "relatedItem": lot_id}) |
442 | 442 | return munchify(document) |
443 | 443 | |
444 | +def test_change_document_data(document, change_id): | |
445 | + document.data.update({"documentOf": "change", "relatedItem": change_id}) | |
446 | + return munchify(document) | |
447 | + | |
444 | 448 | |
445 | 449 | def test_tender_data_openua(params, submissionMethodDetails): |
446 | 450 | # We should not provide any values for `enquiryPeriod` when creating | ... | ... |
Please
register
or
login
to post a comment