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,9 +431,11 @@ Library openprocurement_client_helper.py | ||
431 | 431 | ||
432 | Перетворити вимогу в скаргу | 432 | Перетворити вимогу в скаргу |
433 | [Documentation] Переводить вимогу у статус "pending" | 433 | [Documentation] Переводить вимогу у статус "pending" |
434 | - [Arguments] ${username} ${tender_uaid} ${claim} ${escalating_data} | 434 | + [Arguments] ${username} ${tender_uaid} ${complaintID} ${escalating_data} |
435 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 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 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${escalating_data} | 439 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${escalating_data} |
438 | Log ${reply} | 440 | Log ${reply} |
439 | 441 |
@@ -236,16 +236,6 @@ def test_claim_answer_data(): | @@ -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 | def test_cancel_tender_data(cancellation_reason): | 239 | def test_cancel_tender_data(cancellation_reason): |
250 | return munchify({ | 240 | return munchify({ |
251 | 'data': { | 241 | 'data': { |
@@ -26,7 +26,6 @@ from .initial_data import ( | @@ -26,7 +26,6 @@ from .initial_data import ( | ||
26 | test_complaint_data, | 26 | test_complaint_data, |
27 | test_complaint_reply_data, | 27 | test_complaint_reply_data, |
28 | test_confirm_data, | 28 | test_confirm_data, |
29 | - test_escalate_claim_data, | ||
30 | test_invalid_features_data, | 29 | test_invalid_features_data, |
31 | test_item_data, | 30 | test_item_data, |
32 | test_lot_complaint_data, | 31 | test_lot_complaint_data, |
@@ -607,13 +607,12 @@ ${mode} single | @@ -607,13 +607,12 @@ ${mode} single | ||
607 | ... ${USERS.users['${provider}']['claim_data5']['complaintID']} | 607 | ... ${USERS.users['${provider}']['claim_data5']['complaintID']} |
608 | ... ${answer_data} | 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 | ... ${TENDER['TENDER_UAID']} | 614 | ... ${TENDER['TENDER_UAID']} |
616 | - ... ${USERS.users['${provider}']['claim_data5']['claim_resp']} | 615 | + ... ${USERS.users['${provider}']['claim_data5']['complaintID']} |
617 | ... ${escalation_data} | 616 | ... ${escalation_data} |
618 | Set To Dictionary ${USERS.users['${provider}'].claim_data5} escalation ${escalation_data} | 617 | Set To Dictionary ${USERS.users['${provider}'].claim_data5} escalation ${escalation_data} |
619 | 618 | ||
@@ -731,5 +730,5 @@ ${mode} single | @@ -731,5 +730,5 @@ ${mode} single | ||
731 | ... ${USERS.users['${provider}'].broker} | 730 | ... ${USERS.users['${provider}'].broker} |
732 | ... from-0.12 | 731 | ... from-0.12 |
733 | Звірити поле тендера із значенням ${provider} | 732 | Звірити поле тендера із значенням ${provider} |
734 | - ... ${USERS.users['${provider}'].claim_data2['cancellation']['data']['cancellationReason']} | 733 | + ... ${USERS.users['${provider}'].claim_data5['cancellation']['data']['cancellationReason']} |
735 | ... complaints[${CLAIM_NUM}].cancellationReason | 734 | ... complaints[${CLAIM_NUM}].cancellationReason |
Please
register
or
login
to post a comment