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 | 409 | |
410 | 410 | Підтвердити вирішення вимоги |
411 | 411 | [Documentation] Переводить вимогу зі статусу "answered" у статус "resolved" |
412 | - [Arguments] ${username} ${tender_uaid} ${claim} ${confirmation_data} | |
412 | + [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data} | |
413 | 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 | 417 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data} |
416 | 418 | Log ${reply} |
417 | 419 | ... | ... |
... | ... | @@ -225,16 +225,6 @@ def test_complaint_data(lot=False): |
225 | 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 | 228 | def test_claim_answer_data(): |
239 | 229 | return munchify({ |
240 | 230 | "data": { | ... | ... |
... | ... | @@ -287,13 +287,12 @@ ${mode} single |
287 | 287 | ... ${USERS.users['${provider}'].broker} |
288 | 288 | ... from-0.12 |
289 | 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 | 292 | Викликати для учасника ${provider} |
294 | 293 | ... Підтвердити вирішення вимоги |
295 | 294 | ... ${TENDER['TENDER_UAID']} |
296 | - ... ${USERS.users['${provider}']['claim_data']['claim_resp']} | |
295 | + ... ${USERS.users['${provider}']['claim_data']['complaintID']} | |
297 | 296 | ... ${confirmation_data} |
298 | 297 | Set To Dictionary ${USERS.users['${provider}']['claim_data']} claim_answer_confirm ${confirmation_data} |
299 | 298 | ... | ... |
Please
register
or
login
to post a comment