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,6 +85,10 @@ Resource resource.robot | ||
85 | Run As ${tender_owner} Внести зміни в тендер ${TENDER['TENDER_UAID']} ${field_name} ${field_value} | 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 | ${file_path} ${file_name} ${file_content}= create_fake_doc | 93 | ${file_path} ${file_name} ${file_content}= create_fake_doc |
90 | Run As ${tender_owner} Завантажити документ ${file_path} ${TENDER['TENDER_UAID']} | 94 | Run As ${tender_owner} Завантажити документ ${file_path} ${TENDER['TENDER_UAID']} |
@@ -228,6 +228,16 @@ Library openprocurement_client.utils | @@ -228,6 +228,16 @@ Library openprocurement_client.utils | ||
228 | ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender} | 228 | ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender} |
229 | Set_To_Object ${USERS.users['${username}'].tender_data} ${fieldname} ${fieldvalue} | 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 | # Item operations | 242 | # Item operations |
233 | ############################################################################## | 243 | ############################################################################## |
@@ -36,6 +36,10 @@ def create_fake_date(): | @@ -36,6 +36,10 @@ def create_fake_date(): | ||
36 | return get_now().isoformat() | 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 | def field_with_id(prefix, sentence): | 43 | def field_with_id(prefix, sentence): |
40 | return u"{}-{}: {}".format(prefix, fake.uuid4()[:8], sentence) | 44 | return u"{}-{}: {}".format(prefix, fake.uuid4()[:8], sentence) |
41 | 45 |
@@ -20,6 +20,7 @@ from .initial_data import ( | @@ -20,6 +20,7 @@ from .initial_data import ( | ||
20 | create_fake_doc, | 20 | create_fake_doc, |
21 | create_fake_sentence, | 21 | create_fake_sentence, |
22 | create_fake_amount, | 22 | create_fake_amount, |
23 | + create_fake_value_amount, | ||
23 | create_fake_date, | 24 | create_fake_date, |
24 | fake, | 25 | fake, |
25 | field_with_id, | 26 | field_with_id, |
Please
register
or
login
to post a comment