Commit 465cb68c353d42f551f61c479f05da24e618b17b
1 parent
670c76a2
keywords for test cases 'Можливість змінити...'
Showing
4 changed files
with
19 additions
and
0 deletions
... | ... | @@ -85,6 +85,10 @@ Resource resource.robot |
85 | 85 | Run As ${tender_owner} Внести зміни в тендер ${TENDER['TENDER_UAID']} ${field_name} ${field_value} |
86 | 86 | |
87 | 87 | |
88 | +Можливість змінити поле ${field_name} плану на ${field_value} | |
89 | + Run As ${tender_owner} Внести зміни в план ${TENDER['TENDER_UAID']} ${field_name} ${field_value} | |
90 | + | |
91 | + | |
88 | 92 | Можливість додати документацію до тендера |
89 | 93 | ${file_path} ${file_name} ${file_content}= create_fake_doc |
90 | 94 | Run As ${tender_owner} Завантажити документ ${file_path} ${TENDER['TENDER_UAID']} | ... | ... |
... | ... | @@ -228,6 +228,16 @@ Library openprocurement_client.utils |
228 | 228 | ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender} |
229 | 229 | Set_To_Object ${USERS.users['${username}'].tender_data} ${fieldname} ${fieldvalue} |
230 | 230 | |
231 | + | |
232 | +Внести зміни в план | |
233 | + [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue} | |
234 | + ${tender}= openprocurement_client.Пошук плану по ідентифікатору ${username} ${tender_uaid} | |
235 | + Set_To_Object ${tender.data} ${fieldname} ${fieldvalue} | |
236 | + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token} | |
237 | + ${tender}= Call Method ${USERS.users['${username}'].client} patch_plan ${tender} | |
238 | + Set_To_Object ${USERS.users['${username}'].tender_data} ${fieldname} ${fieldvalue} | |
239 | + | |
240 | + | |
231 | 241 | ############################################################################## |
232 | 242 | # Item operations |
233 | 243 | ############################################################################## | ... | ... |
... | ... | @@ -36,6 +36,10 @@ def create_fake_date(): |
36 | 36 | return get_now().isoformat() |
37 | 37 | |
38 | 38 | |
39 | +def create_fake_value_amount(): | |
40 | + return fake.random_int(min=1) | |
41 | + | |
42 | + | |
39 | 43 | def field_with_id(prefix, sentence): |
40 | 44 | return u"{}-{}: {}".format(prefix, fake.uuid4()[:8], sentence) |
41 | 45 | ... | ... |
Please
register
or
login
to post a comment