Commit 044ac654742c07a5a2857dbc3fb4e3d82a092d3e
1 parent
bf5b04a1
Update `Підтвердити вирішення вимоги` to work with complaintID
Deleted test_claim_answer_satisfying_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
7 additions
and
17 deletions
| @@ -409,9 +409,11 @@ Library openprocurement_client_helper.py | @@ -409,9 +409,11 @@ Library openprocurement_client_helper.py | ||
| 409 | 409 | ||
| 410 | Підтвердити вирішення вимоги | 410 | Підтвердити вирішення вимоги |
| 411 | [Documentation] Переводить вимогу зі статусу "answered" у статус "resolved" | 411 | [Documentation] Переводить вимогу зі статусу "answered" у статус "resolved" |
| 412 | - [Arguments] ${username} ${tender_uaid} ${claim} ${confirmation_data} | 412 | + [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data} |
| 413 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 413 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 414 | - ${tender}= set_access_key ${tender} ${claim.access.token} | 414 | + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} |
| 415 | + ${complaint_internal_id}= Отримати internal id по UAid для скарги ${tender} ${complaintID} | ||
| 416 | + Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} | ||
| 415 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data} | 417 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data} |
| 416 | Log ${reply} | 418 | Log ${reply} |
| 417 | 419 |
| @@ -225,16 +225,6 @@ def test_complaint_data(lot=False): | @@ -225,16 +225,6 @@ def test_complaint_data(lot=False): | ||
| 225 | test_claim_data = test_complaint_data | 225 | test_claim_data = test_complaint_data |
| 226 | 226 | ||
| 227 | 227 | ||
| 228 | -def test_claim_answer_satisfying_data(claim_id): | ||
| 229 | - return munchify({ | ||
| 230 | - "data": { | ||
| 231 | - "id": claim_id, | ||
| 232 | - "status": "resolved", | ||
| 233 | - "satisfied": True | ||
| 234 | - } | ||
| 235 | - }) | ||
| 236 | - | ||
| 237 | - | ||
| 238 | def test_claim_answer_data(): | 228 | def test_claim_answer_data(): |
| 239 | return munchify({ | 229 | return munchify({ |
| 240 | "data": { | 230 | "data": { |
| @@ -23,7 +23,6 @@ from .initial_data import ( | @@ -23,7 +23,6 @@ from .initial_data import ( | ||
| 23 | test_cancel_claim_data, | 23 | test_cancel_claim_data, |
| 24 | test_cancel_tender_data, | 24 | test_cancel_tender_data, |
| 25 | test_claim_answer_data, | 25 | test_claim_answer_data, |
| 26 | - test_claim_answer_satisfying_data, | ||
| 27 | test_claim_data, | 26 | test_claim_data, |
| 28 | test_complaint_data, | 27 | test_complaint_data, |
| 29 | test_complaint_reply_data, | 28 | test_complaint_reply_data, |
| @@ -287,13 +287,12 @@ ${mode} single | @@ -287,13 +287,12 @@ ${mode} single | ||
| 287 | ... ${USERS.users['${provider}'].broker} | 287 | ... ${USERS.users['${provider}'].broker} |
| 288 | ... from-0.12 | 288 | ... from-0.12 |
| 289 | [Teardown] Оновити LAST_MODIFICATION_DATE | 289 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 290 | - ${confirmation_data}= test_claim_answer_satisfying_data | ||
| 291 | - ... ${USERS.users['${provider}']['claim_data']['claim_resp']['data']['id']} | ||
| 292 | - Log ${confirmation_data} | 290 | + ${data}= Create Dictionary status=resolved satisfied=${True} |
| 291 | + ${confirmation_data}= Create Dictionary data=${data} | ||
| 293 | Викликати для учасника ${provider} | 292 | Викликати для учасника ${provider} |
| 294 | ... Підтвердити вирішення вимоги | 293 | ... Підтвердити вирішення вимоги |
| 295 | ... ${TENDER['TENDER_UAID']} | 294 | ... ${TENDER['TENDER_UAID']} |
| 296 | - ... ${USERS.users['${provider}']['claim_data']['claim_resp']} | 295 | + ... ${USERS.users['${provider}']['claim_data']['complaintID']} |
| 297 | ... ${confirmation_data} | 296 | ... ${confirmation_data} |
| 298 | Set To Dictionary ${USERS.users['${provider}']['claim_data']} claim_answer_confirm ${confirmation_data} | 297 | Set To Dictionary ${USERS.users['${provider}']['claim_data']} claim_answer_confirm ${confirmation_data} |
| 299 | 298 |
Please
register
or
login
to post a comment