Commit bf5b04a15097dfcb6cbc85f647876c3828ac50a4
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
Showing
3 changed files
with
12 additions
and
13 deletions
... | ... | @@ -398,12 +398,12 @@ Library openprocurement_client_helper.py |
398 | 398 | |
399 | 399 | Відповісти на вимогу |
400 | 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 | 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 | 405 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${answer_data} |
406 | + log ${tender} | |
407 | 407 | Log ${reply} |
408 | 408 | |
409 | 409 | ... | ... |
... | ... | @@ -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 | 239 | return munchify({ |
240 | 240 | "data": { |
241 | 241 | "status": "answered", |
242 | 242 | "resolutionType": "resolved", |
243 | 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 | 199 | ... ${USERS.users['${tender_owner}'].broker} |
200 | 200 | ... from-0.12 |
201 | 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 | 203 | Log ${answer_data} |
204 | 204 | Викликати для учасника ${tender_owner} |
205 | 205 | ... Відповісти на вимогу |
206 | 206 | ... ${TENDER['TENDER_UAID']} |
207 | - ... ${USERS.users['${provider}']['claim_data']['claim_resp']} | |
207 | + ... ${USERS.users['${provider}']['claim_data']['complaintID']} | |
208 | 208 | ... ${answer_data} |
209 | 209 | ${claim_data}= Create Dictionary claim_answer=${answer_data} |
210 | 210 | Set To Dictionary ${USERS.users['${tender_owner}']} claim_data ${claim_data} |
... | ... | @@ -520,12 +520,12 @@ ${mode} single |
520 | 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 | 524 | Log ${answer_data} |
525 | 525 | Викликати для учасника ${tender_owner} |
526 | 526 | ... Відповісти на вимогу |
527 | 527 | ... ${TENDER['TENDER_UAID']} |
528 | - ... ${USERS.users['${provider}']['claim_data4']['claim_resp']} | |
528 | + ... ${USERS.users['${provider}']['claim_data4']['complaintID']} | |
529 | 529 | ... ${answer_data} |
530 | 530 | |
531 | 531 | |
... | ... | @@ -597,12 +597,12 @@ ${mode} single |
597 | 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 | 601 | Log ${answer_data} |
602 | 602 | Викликати для учасника ${tender_owner} |
603 | 603 | ... Відповісти на вимогу |
604 | 604 | ... ${TENDER['TENDER_UAID']} |
605 | - ... ${USERS.users['${provider}']['claim_data5']['claim_resp']} | |
605 | + ... ${USERS.users['${provider}']['claim_data5']['complaintID']} | |
606 | 606 | ... ${answer_data} |
607 | 607 | |
608 | 608 | ... | ... |
Please
register
or
login
to post a comment