Commit 80281d3a464472da6929314cccfba9a9d99142d7

Authored by OrysiaDrabych
1 parent a308d4df

Upload change document

@@ -1338,11 +1338,11 @@ Library openprocurement_client.utils @@ -1338,11 +1338,11 @@ Library openprocurement_client.utils
1338 1338
1339 Додати документацію до зміни в договорі 1339 Додати документацію до зміни в договорі
1340 [Arguments] ${username} ${contract_uaid} ${document} 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 Log ${reply_doc_create} 1346 Log ${reply_doc_create}
1347 Log ${reply_doc_patch} 1347 Log ${reply_doc_patch}
1348 1348
@@ -441,6 +441,10 @@ def test_lot_document_data(document, lot_id): @@ -441,6 +441,10 @@ def test_lot_document_data(document, lot_id):
441 document.data.update({"documentOf": "lot", "relatedItem": lot_id}) 441 document.data.update({"documentOf": "lot", "relatedItem": lot_id})
442 return munchify(document) 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 def test_tender_data_openua(params, submissionMethodDetails): 449 def test_tender_data_openua(params, submissionMethodDetails):
446 # We should not provide any values for `enquiryPeriod` when creating 450 # We should not provide any values for `enquiryPeriod` when creating
@@ -49,6 +49,7 @@ from .initial_data import ( @@ -49,6 +49,7 @@ from .initial_data import (
49 test_tender_data_planning, 49 test_tender_data_planning,
50 create_fake_title, 50 create_fake_title,
51 create_fake_value_amount, 51 create_fake_value_amount,
  52 + test_change_document_data,
52 ) 53 )
53 from barbecue import chef 54 from barbecue import chef
54 from restkit import request 55 from restkit import request
Please register or login to post a comment