Commit 77d08ff7493d08cd20bbd5d2e5fa74fd85700786

Authored by selurvedu
1 parent 91e84357

keywords.robot: Use kwargs when working with dicts

... ... @@ -95,8 +95,8 @@ Get Broker Property By Username
95 95 Run Keyword If '${USERS.users['${tender_owner}'].broker}' == 'Quinta'
96 96 ... Run Keyword And Ignore Error
97 97 ... Set To Dictionary ${artifact}
98   - ... access_token ${USERS.users['${tender_owner}'].access_token}
99   - ... tender_id ${USERS.users['${tender_owner}'].tender_data.data.id}
  98 + ... access_token=${USERS.users['${tender_owner}'].access_token}
  99 + ... tender_id=${USERS.users['${tender_owner}'].tender_data.data.id}
100 100 Log ${artifact}
101 101 log_object_data ${artifact} artifact update=${True}
102 102
... ... @@ -105,10 +105,10 @@ Get Broker Property By Username
105 105 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml
106 106 ${ARTIFACT}= load_initial_data_from ${file_path}
107 107 Run Keyword If '${USERS.users['${tender_owner}'].broker}' == 'Quinta'
108   - ... Set To Dictionary ${USERS.users['${tender_owner}']} access_token ${ARTIFACT.access_token}
  108 + ... Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.access_token}
109 109 ${TENDER}= Create Dictionary
110   - Set To Dictionary ${TENDER} TENDER_UAID ${ARTIFACT.tender_uaid}
111   - Set To Dictionary ${TENDER} LAST_MODIFICATION_DATE ${ARTIFACT.last_modification_date}
  110 + Set To Dictionary ${TENDER} TENDER_UAID=${ARTIFACT.tender_uaid}
  111 + Set To Dictionary ${TENDER} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date}
112 112 Set Global Variable ${TENDER}
113 113 log_object_data ${ARTIFACT} artifact
114 114
... ... @@ -156,7 +156,7 @@ Get Broker Property By Username
156 156 Підготувати дані про постачальника
157 157 [Arguments] ${username}
158 158 ${supplier_data}= test_supplier_data
159   - Set To Dictionary ${USERS.users['${username}']} supplier_data ${supplier_data}
  159 + Set To Dictionary ${USERS.users['${username}']} supplier_data=${supplier_data}
160 160 Log ${supplier_data}
161 161 [Return] ${supplier_data}
162 162
... ... @@ -167,7 +167,7 @@ Get Broker Property By Username
167 167 ${document}= create_fake_doc
168 168 ${new_description}= create_fake_sentence
169 169 ${cancellation_data}= Create Dictionary cancellation_reason=${cancellation_reason} document=${document} description=${new_description}
170   - Set To Dictionary ${USERS.users['${username}']} cancellation_data ${cancellation_data}
  170 + Set To Dictionary ${USERS.users['${username}']} cancellation_data=${cancellation_data}
171 171 [Return] ${cancellation_data}
172 172
173 173
... ... @@ -221,7 +221,7 @@ Get Broker Property By Username
221 221 ${time_diff}= Subtract Date From Date ${last_modification_date_corrected} ${USERS.users['${username}']['LAST_REFRESH_DATE']}
222 222 Run Keyword If ${time_diff} > 0 Викликати для учасника ${username} Оновити сторінку з тендером ${TENDER['TENDER_UAID']}
223 223 ${LAST_REFRESH_DATE}= Get Current TZdate
224   - Run Keyword If ${time_diff} > 0 Set To Dictionary ${USERS.users['${username}']} LAST_REFRESH_DATE ${LAST_REFRESH_DATE}
  224 + Run Keyword If ${time_diff} > 0 Set To Dictionary ${USERS.users['${username}']} LAST_REFRESH_DATE=${LAST_REFRESH_DATE}
225 225
226 226 Звірити поле тендера
227 227 [Arguments] ${username} ${tender_data} ${field}
... ... @@ -402,4 +402,4 @@ Require Failure
402 402
403 403 Оновити LAST_MODIFICATION_DATE
404 404 ${LAST_MODIFICATION_DATE}= Get Current TZdate
405   - Run keyword if '${TEST_STATUS}' == 'PASS' Set To Dictionary ${TENDER} LAST_MODIFICATION_DATE ${LAST_MODIFICATION_DATE}
  405 + Run keyword if '${TEST_STATUS}' == 'PASS' Set To Dictionary ${TENDER} LAST_MODIFICATION_DATE=${LAST_MODIFICATION_DATE}
... ...
Please register or login to post a comment