Skip to content

Commit 9e77d57

Browse files
committed
Delete unnecessary keywords, edit formatting
1 parent 2752068 commit 9e77d57

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

op_robot_tests/tests_files/initial_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ def test_tender_data_dgf_other(params):
440440

441441
data['dgfID'] = fake.dgfID()
442442
data['dgfDecisionID'] = fake.dgfDecisionID()
443-
data['dgfDecisionDate'] = (get_now() + timedelta(days=-2)).strftime('%Y-%m-%d')
444-
data['tenderAttempts'] = fake.random_int(min=1, max=4)
443+
data['dgfDecisionDate'] = (get_now() + timedelta(days=-2)).strftime('%Y-%m-%d')
444+
data['tenderAttempts'] = fake.random_int(min=1, max=4)
445445
del data["procuringEntity"]
446446

447447
for i in range(params['number_of_items']):

op_robot_tests/tests_files/keywords.robot

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -161,41 +161,6 @@ Get Broker Property By Username
161161
Run Keyword And Return Get Broker Property ${broker_name} ${property}
162162

163163

164-
Створити артефакт
165-
${artifact}= Create Dictionary
166-
... api_version=${api_version}
167-
... tender_uaid=${TENDER['TENDER_UAID']}
168-
... last_modification_date=${TENDER['LAST_MODIFICATION_DATE']}
169-
... mode=${MODE}
170-
Run Keyword And Ignore Error Set To Dictionary ${artifact}
171-
... tender_owner=${USERS.users['${tender_owner}'].broker}
172-
... access_token=${USERS.users['${tender_owner}'].access_token}
173-
... tender_id=${USERS.users['${tender_owner}'].tender_data.data.id}
174-
Run Keyword And Ignore Error Set To Dictionary ${artifact} tender_owner_access_token=${USERS.users['${tender_owner}'].access_token}
175-
Run Keyword And Ignore Error Set To Dictionary ${artifact} provider_access_token=${USERS.users['${provider}'].access_token}
176-
Run Keyword And Ignore Error Set To Dictionary ${artifact} provider1_access_token=${USERS.users['${provider1}'].access_token}
177-
Run Keyword And Ignore Error Set To Dictionary ${artifact} provider_bid_id=${USERS.users['${provider}'].bid_id}
178-
Run Keyword And Ignore Error Set To Dictionary ${artifact} provider1_bid_id=${USERS.users['${provider1}'].bid_id}
179-
Log ${artifact}
180-
log_object_data ${artifact} file_name=artifact update=${True} artifact=${True}
181-
182-
183-
Завантажити дані про тендер
184-
${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml
185-
${ARTIFACT}= load_data_from ${file_path}
186-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.access_token}
187-
${TENDER}= Create Dictionary TENDER_UAID=${ARTIFACT.tender_uaid} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date} LOT_ID=${Empty}
188-
${MODE}= Get Variable Value ${MODE} ${ARTIFACT.mode}
189-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.tender_owner_access_token}
190-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider}']} access_token=${ARTIFACT.provider_access_token}
191-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider1}']} access_token=${ARTIFACT.provider1_access_token}
192-
Set Suite Variable ${MODE}
193-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider}']} bid_id=${ARTIFACT.provider_bid_id}
194-
Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider1}']} bid_id=${ARTIFACT.provider1_bid_id}
195-
Set Suite Variable ${TENDER}
196-
log_object_data ${ARTIFACT} file_name=artifact update=${True} artifact=${True}
197-
198-
199164
Підготувати дані для створення тендера
200165
[Arguments] ${tender_parameters}
201166
${period_intervals}= compute_intrs ${BROKERS} ${used_brokers}
@@ -217,6 +182,7 @@ Get Broker Property By Username
217182
${reply}= test_feature_data
218183
[Return] ${reply}
219184

185+
220186
Підготувати дані для подання вимоги
221187
${claim}= test_claim_data
222188
[Return] ${claim}

0 commit comments

Comments
 (0)