Commit 8c4c6efcec6eb16b6f095f58b11fb0e7e80d949b

Authored by kvik
1 parent 1de176c9

Add keywords for below_funders

... ... @@ -131,6 +131,19 @@ Resource resource.robot
131 131 Run As ${tender_owner} Видалити предмет закупівлі плану ${TENDER['TENDER_UAID']} ${USERS.users['${tender_owner}'].item_data.item_id}
132 132
133 133
  134 +Можливість видалити поле ${field} з донора ${funders_index}
  135 + Run As ${tender_owner} Видалити поле з донора ${TENDER['TENDER_UAID']} ${funders_index} ${field}
  136 +
  137 +
  138 +Можливість видалити донора ${funders_index}
  139 + Run As ${tender_owner} Видалити донора ${TENDER['TENDER_UAID']} ${funders_index}
  140 +
  141 +
  142 +Можливість додати донора ${funder_index}
  143 + ${funders_data}= create_fake_funder
  144 + Run As ${tender_owner} Додати донора ${TENDER['TENDER_UAID']} ${funders_data}
  145 +
  146 +
134 147 Звірити відображення поля ${field} документа ${doc_id} із ${left} для користувача ${username}
135 148 ${right}= Run As ${username} Отримати інформацію із документа ${TENDER['TENDER_UAID']} ${doc_id} ${field}
136 149 Порівняти об'єкти ${left} ${right}
... ...
... ... @@ -298,6 +298,7 @@ Library openprocurement_client.utils
298 298 Remove From List ${tender.data['items']} ${item_index}
299 299 Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
300 300
  301 +
301 302 Видалити предмет закупівлі плану
302 303 [Arguments] ${username} ${tender_uaid} ${item_id} ${lot_id}=${Empty}
303 304 ${tender}= openprocurement_client.Пошук плану по ідентифікатору ${username} ${tender_uaid}
... ... @@ -305,6 +306,33 @@ Library openprocurement_client.utils
305 306 Remove From List ${tender.data['items']} ${item_index}
306 307 Call Method ${USERS.users['${username}'].client} patch_plan ${tender}
307 308
  309 +
  310 +Видалити поле з донора
  311 + [Arguments] ${username} ${tender_uaid} ${funders_index} ${field} ${field_1}=${Empty}
  312 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  313 + Delete From Dictionary ${tender.data['funders'][${funders_index}]} ${field}
  314 + Log ${tender.data['funders'][${funders_index}]}
  315 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
  316 + Dictionary Should Not Contain Path ${reply.data['funders'][${funders_index}]} ${field}
  317 +
  318 +
  319 +Видалити донора
  320 + [Arguments] ${username} ${tender_uaid} ${funders_index}
  321 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  322 + Remove From List ${tender.data.funders} ${funders_index}
  323 + Log ${tender}
  324 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
  325 + Log ${reply}
  326 +
  327 +
  328 +Додати донора
  329 + [Arguments] ${username} ${tender_uaid} ${funders_data}
  330 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  331 + Set To Dictionary ${tender.data} funders=@{EMPTY}
  332 + Append To List ${tender.data.funders} ${funders_data}
  333 + Log ${tender}
  334 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
  335 +
308 336 ##############################################################################
309 337 # Lot operations
310 338 ##############################################################################
... ...
... ... @@ -33,6 +33,10 @@ def create_fake_sentence():
33 33 return fake.sentence(nb_words=10, variable_nb_words=True)
34 34
35 35
  36 +def create_fake_funder():
  37 + return fake.funders_data()
  38 +
  39 +
36 40 def create_fake_amount(award_amount):
37 41 return round(random.uniform(1, award_amount), 2)
38 42
... ...
... ... @@ -21,6 +21,7 @@ from .initial_data import (
21 21 create_fake_sentence,
22 22 create_fake_amount,
23 23 create_fake_date,
  24 + create_fake_funder,
24 25 fake,
25 26 subtraction,
26 27 field_with_id,
... ...
Please register or login to post a comment