Commit bf5b04a15097dfcb6cbc85f647876c3828ac50a4

Authored by mykhaly
1 parent c142c55d

Update `Відповісти на вимогу` to work with complaintID

Deleted claim_id from arguments in test_claim_answer_data, now it is inserted
into dict in op_client.robot keyword 'Відповісти на вимогу'
Update singleItemTenderComplaints to work with this changes
@@ -398,12 +398,12 @@ Library openprocurement_client_helper.py @@ -398,12 +398,12 @@ Library openprocurement_client_helper.py
398 398
399 Відповісти на вимогу 399 Відповісти на вимогу
400 [Documentation] Переводить вимогу зі статусу "claim" у статус "answered" 400 [Documentation] Переводить вимогу зі статусу "claim" у статус "answered"
401 - [Arguments] ${username} ${tender_uaid} ${claim} ${answer_data}  
402 - Log ${claim}  
403 - Log ${answer_data} 401 + [Arguments] ${username} ${tender_uaid} ${complaintID} ${answer_data}
404 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 402 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
405 - log ${tender} 403 + ${complaint_internal_id}= Отримати internal id по UAid для скарги ${tender} ${complaintID}
  404 + Set To Dictionary ${answer_data.data} id=${complaint_internal_id}
406 ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${answer_data} 405 ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${answer_data}
  406 + log ${tender}
407 Log ${reply} 407 Log ${reply}
408 408
409 409
@@ -235,14 +235,13 @@ def test_claim_answer_satisfying_data(claim_id): @@ -235,14 +235,13 @@ def test_claim_answer_satisfying_data(claim_id):
235 }) 235 })
236 236
237 237
238 -def test_claim_answer_data(claim_id): 238 +def test_claim_answer_data():
239 return munchify({ 239 return munchify({
240 "data": { 240 "data": {
241 "status": "answered", 241 "status": "answered",
242 "resolutionType": "resolved", 242 "resolutionType": "resolved",
243 "tendererAction": fake.sentence(nb_words=10, variable_nb_words=True), 243 "tendererAction": fake.sentence(nb_words=10, variable_nb_words=True),
244 - "resolution": fake.sentence(nb_words=15, variable_nb_words=True),  
245 - "id": claim_id 244 + "resolution": fake.sentence(nb_words=15, variable_nb_words=True)
246 } 245 }
247 }) 246 })
248 247
@@ -199,12 +199,12 @@ ${mode} single @@ -199,12 +199,12 @@ ${mode} single
199 ... ${USERS.users['${tender_owner}'].broker} 199 ... ${USERS.users['${tender_owner}'].broker}
200 ... from-0.12 200 ... from-0.12
201 [Teardown] Оновити LAST_MODIFICATION_DATE 201 [Teardown] Оновити LAST_MODIFICATION_DATE
202 - ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data']['claim_resp']['data']['id']} 202 + ${answer_data}= test_claim_answer_data
203 Log ${answer_data} 203 Log ${answer_data}
204 Викликати для учасника ${tender_owner} 204 Викликати для учасника ${tender_owner}
205 ... Відповісти на вимогу 205 ... Відповісти на вимогу
206 ... ${TENDER['TENDER_UAID']} 206 ... ${TENDER['TENDER_UAID']}
207 - ... ${USERS.users['${provider}']['claim_data']['claim_resp']} 207 + ... ${USERS.users['${provider}']['claim_data']['complaintID']}
208 ... ${answer_data} 208 ... ${answer_data}
209 ${claim_data}= Create Dictionary claim_answer=${answer_data} 209 ${claim_data}= Create Dictionary claim_answer=${answer_data}
210 Set To Dictionary ${USERS.users['${tender_owner}']} claim_data ${claim_data} 210 Set To Dictionary ${USERS.users['${tender_owner}']} claim_data ${claim_data}
@@ -520,12 +520,12 @@ ${mode} single @@ -520,12 +520,12 @@ ${mode} single
520 ... ${confirmation_data} 520 ... ${confirmation_data}
521 521
522 522
523 - ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data4']['claim_resp']['data']['id']} 523 + ${answer_data}= test_claim_answer_data
524 Log ${answer_data} 524 Log ${answer_data}
525 Викликати для учасника ${tender_owner} 525 Викликати для учасника ${tender_owner}
526 ... Відповісти на вимогу 526 ... Відповісти на вимогу
527 ... ${TENDER['TENDER_UAID']} 527 ... ${TENDER['TENDER_UAID']}
528 - ... ${USERS.users['${provider}']['claim_data4']['claim_resp']} 528 + ... ${USERS.users['${provider}']['claim_data4']['complaintID']}
529 ... ${answer_data} 529 ... ${answer_data}
530 530
531 531
@@ -597,12 +597,12 @@ ${mode} single @@ -597,12 +597,12 @@ ${mode} single
597 ... ${confirmation_data} 597 ... ${confirmation_data}
598 598
599 599
600 - ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']} 600 + ${answer_data}= test_claim_answer_data
601 Log ${answer_data} 601 Log ${answer_data}
602 Викликати для учасника ${tender_owner} 602 Викликати для учасника ${tender_owner}
603 ... Відповісти на вимогу 603 ... Відповісти на вимогу
604 ... ${TENDER['TENDER_UAID']} 604 ... ${TENDER['TENDER_UAID']}
605 - ... ${USERS.users['${provider}']['claim_data5']['claim_resp']} 605 + ... ${USERS.users['${provider}']['claim_data5']['complaintID']}
606 ... ${answer_data} 606 ... ${answer_data}
607 607
608 608
Please register or login to post a comment