Commit caa8bb448e2019c318c05d9ccdf3b356b4c414a0
1 parent
521eb55e
Add 'Підготувати дані для оголошення тендера' to limited_keywords
Showing
1 changed file
with
24 additions
and
6 deletions
... | ... | @@ -10,12 +10,21 @@ Resource resource.robot |
10 | 10 | ############################################################################################## |
11 | 11 | Можливість створити закупівлю для тестування скасування |
12 | 12 | ${tender_data}= Підготовка даних для створення тендера |
13 | + # munchify is used to make deep copy of ${tender_data} | |
14 | + ${tender_data_copy}= munchify ${tender_data} | |
15 | + ${status} ${adapted_data}= Run Keyword And Ignore Error Викликати для учасника ${tender_owner} Підготувати дані для оголошення тендера ${tender_data_copy} | |
16 | + ${adapted_data}= Set variable if '${status}' == 'FAIL' ${tender_data_copy} ${adapted_data} | |
17 | + # munchify is used to make nice log output | |
18 | + ${adapted_data}= munchify ${adapted_data} | |
19 | + Log ${tender_data} | |
20 | + Log ${adapted_data} | |
21 | + ${status}= Run keyword and return status Dictionaries Should Be Equal ${adapted_data.data} ${tender_data.data} | |
22 | + Run keyword if ${status} == ${False} Log Initial tender data was changed WARN | |
13 | 23 | ${TENDER_UAID}= Викликати для учасника ${tender_owner} |
14 | 24 | ... Створити тендер |
15 | - ... ${tender_data} | |
16 | - Log ${tender_data} | |
25 | + ... ${adapted_data} | |
17 | 26 | Set To Dictionary ${TENDER} TENDER_UAID ${TENDER_UAID} |
18 | - Set To Dictionary ${USERS.users['${tender_owner}']} initial_data ${tender_data} | |
27 | + Set To Dictionary ${USERS.users['${tender_owner}']} initial_data ${adapted_data} | |
19 | 28 | Log ${TENDER} |
20 | 29 | |
21 | 30 | |
... | ... | @@ -62,12 +71,21 @@ Resource resource.robot |
62 | 71 | |
63 | 72 | Можливість створити закупівлю |
64 | 73 | ${tender_data}= Підготовка даних для створення тендера |
74 | + # munchify is used to make deep copy of ${tender_data} | |
75 | + ${tender_data_copy}= munchify ${tender_data} | |
76 | + ${status} ${adapted_data}= Run Keyword And Ignore Error Викликати для учасника ${tender_owner} Підготувати дані для оголошення тендера ${tender_data_copy} | |
77 | + ${adapted_data}= Set variable if '${status}' == 'FAIL' ${tender_data_copy} ${adapted_data} | |
78 | + # munchify is used to make nice log output | |
79 | + ${adapted_data}= munchify ${adapted_data} | |
80 | + Log ${tender_data} | |
81 | + Log ${adapted_data} | |
82 | + ${status}= Run keyword and return status Dictionaries Should Be Equal ${adapted_data.data} ${tender_data.data} | |
83 | + Run keyword if ${status} == ${False} Log Initial tender data was changed WARN | |
65 | 84 | ${TENDER_UAID}= Викликати для учасника ${tender_owner} |
66 | 85 | ... Створити тендер |
67 | - ... ${tender_data} | |
68 | - Log ${tender_data} | |
86 | + ... ${adapted_data} | |
69 | 87 | Set To Dictionary ${TENDER} TENDER_UAID ${TENDER_UAID} |
70 | - Set To Dictionary ${USERS.users['${tender_owner}']} initial_data ${tender_data} | |
88 | + Set To Dictionary ${USERS.users['${tender_owner}']} initial_data ${adapted_data} | |
71 | 89 | Log ${TENDER} |
72 | 90 | |
73 | 91 | ... | ... |
Please
register
or
login
to post a comment