Commit 5396a5e53260f0c5fae429f0dafacd2c46e2d58e
1 parent
f3f71938
Update `Перетворити вимогу в скаргу` to work with complaintID
Delete test_escalate_claim_data Dict with data is created in test case, id is inserted into it in op_client.robot keyword 'Перетворити вимогу в скаргу' Update singleItemTenderComplaints to work with this changes
Showing
4 changed files
with
9 additions
and
19 deletions
| ... | ... | @@ -431,9 +431,11 @@ Library openprocurement_client_helper.py |
| 431 | 431 | |
| 432 | 432 | Перетворити вимогу в скаргу |
| 433 | 433 | [Documentation] Переводить вимогу у статус "pending" |
| 434 | - [Arguments] ${username} ${tender_uaid} ${claim} ${escalating_data} | |
| 434 | + [Arguments] ${username} ${tender_uaid} ${complaintID} ${escalating_data} | |
| 435 | 435 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 436 | - ${tender}= set_access_key ${tender} ${claim.access.token} | |
| 436 | + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} | |
| 437 | + ${complaint_internal_id}= Отримати internal id по UAid для скарги ${tender} ${complaintID} | |
| 438 | + Set To Dictionary ${escalating_data.data} id=${complaint_internal_id} | |
| 437 | 439 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${escalating_data} |
| 438 | 440 | Log ${reply} |
| 439 | 441 | ... | ... |
| ... | ... | @@ -236,16 +236,6 @@ def test_claim_answer_data(): |
| 236 | 236 | }) |
| 237 | 237 | |
| 238 | 238 | |
| 239 | -def test_escalate_claim_data(claim_id): | |
| 240 | - return munchify({ | |
| 241 | - "data": { | |
| 242 | - "status": "pending", | |
| 243 | - "satisfied": False, | |
| 244 | - "id": claim_id | |
| 245 | - } | |
| 246 | - }) | |
| 247 | - | |
| 248 | - | |
| 249 | 239 | def test_cancel_tender_data(cancellation_reason): |
| 250 | 240 | return munchify({ |
| 251 | 241 | 'data': { | ... | ... |
| ... | ... | @@ -607,13 +607,12 @@ ${mode} single |
| 607 | 607 | ... ${USERS.users['${provider}']['claim_data5']['complaintID']} |
| 608 | 608 | ... ${answer_data} |
| 609 | 609 | |
| 610 | - | |
| 611 | - ${escalation_data}= test_escalate_claim_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']} | |
| 612 | - Log ${escalation_data} | |
| 613 | - Викликати для учасника ${tender_owner} | |
| 610 | + ${data}= Create Dictionary status=pending satisfied=${False} | |
| 611 | + ${escalation_data}= Create Dictionary data=${data} | |
| 612 | + Викликати для учасника ${provider} | |
| 614 | 613 | ... Перетворити вимогу в скаргу |
| 615 | 614 | ... ${TENDER['TENDER_UAID']} |
| 616 | - ... ${USERS.users['${provider}']['claim_data5']['claim_resp']} | |
| 615 | + ... ${USERS.users['${provider}']['claim_data5']['complaintID']} | |
| 617 | 616 | ... ${escalation_data} |
| 618 | 617 | Set To Dictionary ${USERS.users['${provider}'].claim_data5} escalation ${escalation_data} |
| 619 | 618 | |
| ... | ... | @@ -731,5 +730,5 @@ ${mode} single |
| 731 | 730 | ... ${USERS.users['${provider}'].broker} |
| 732 | 731 | ... from-0.12 |
| 733 | 732 | Звірити поле тендера із значенням ${provider} |
| 734 | - ... ${USERS.users['${provider}'].claim_data2['cancellation']['data']['cancellationReason']} | |
| 733 | + ... ${USERS.users['${provider}'].claim_data5['cancellation']['data']['cancellationReason']} | |
| 735 | 734 | ... complaints[${CLAIM_NUM}].cancellationReason | ... | ... |
Please
register
or
login
to post a comment