Showing
5 changed files
with
22 additions
and
19 deletions
| @@ -453,8 +453,8 @@ def test_complaint_reply_data(): | @@ -453,8 +453,8 @@ def test_complaint_reply_data(): | ||
| 453 | }) | 453 | }) |
| 454 | 454 | ||
| 455 | 455 | ||
| 456 | -def test_bid_data(): | ||
| 457 | - return munchify({ | 456 | +def test_bid_data(aboveThreshold=False): |
| 457 | + bid = munchify({ | ||
| 458 | "data": { | 458 | "data": { |
| 459 | "tenderers": [ | 459 | "tenderers": [ |
| 460 | { | 460 | { |
| @@ -485,7 +485,10 @@ def test_bid_data(): | @@ -485,7 +485,10 @@ def test_bid_data(): | ||
| 485 | } | 485 | } |
| 486 | } | 486 | } |
| 487 | }) | 487 | }) |
| 488 | - | 488 | + if aboveThreshold: |
| 489 | + bid.data['selfEligible'] = True | ||
| 490 | + bid.data['selfQualified'] = True | ||
| 491 | + return bid | ||
| 489 | 492 | ||
| 490 | def test_bid_data_meat_tender(): | 493 | def test_bid_data_meat_tender(): |
| 491 | bid = test_bid_data() | 494 | bid = test_bid_data() |
| @@ -714,8 +717,6 @@ def test_tender_data_openua(intervals): | @@ -714,8 +717,6 @@ def test_tender_data_openua(intervals): | ||
| 714 | t_data['procurementMethodType'] = 'aboveThresholdUA' | 717 | t_data['procurementMethodType'] = 'aboveThresholdUA' |
| 715 | t_data['procurementMethodDetails'] = 'quick, ' \ | 718 | t_data['procurementMethodDetails'] = 'quick, ' \ |
| 716 | 'accelerator={}'.format(accelerator) | 719 | 'accelerator={}'.format(accelerator) |
| 717 | - t_data['selfEligible'] = True | ||
| 718 | - t_data['selfQualified'] = True | ||
| 719 | return t_data | 720 | return t_data |
| 720 | 721 | ||
| 721 | 722 | ||
| @@ -737,6 +738,4 @@ def test_tender_data_openeu(intervals): | @@ -737,6 +738,4 @@ def test_tender_data_openeu(intervals): | ||
| 737 | t_data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() | 738 | t_data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() |
| 738 | t_data['procuringEntity']['contactPoint']['availableLanguage'] = "en" | 739 | t_data['procuringEntity']['contactPoint']['availableLanguage'] = "en" |
| 739 | t_data['procuringEntity']['identifier']['legalName_en'] = "Institution \"Vinnytsia City Council primary and secondary general school № 10\"" | 740 | t_data['procuringEntity']['identifier']['legalName_en'] = "Institution \"Vinnytsia City Council primary and secondary general school № 10\"" |
| 740 | - t_data['selfEligible'] = True | ||
| 741 | - t_data['selfQualified'] = True | ||
| 742 | return t_data | 741 | return t_data |
| @@ -177,6 +177,10 @@ Get Broker Property By Username | @@ -177,6 +177,10 @@ Get Broker Property By Username | ||
| 177 | ${answer}= test_question_answer_data | 177 | ${answer}= test_question_answer_data |
| 178 | [Return] ${answer} | 178 | [Return] ${answer} |
| 179 | 179 | ||
| 180 | +Підготувати дані для подання пропозиції | ||
| 181 | + [Arguments] ${aboveThreshold}=${False} | ||
| 182 | + ${supplier_data}= test_bid_data ${aboveThreshold} | ||
| 183 | + [Return] ${supplier_data} | ||
| 180 | 184 | ||
| 181 | Підготувати дані про постачальника | 185 | Підготувати дані про постачальника |
| 182 | [Arguments] ${username} | 186 | [Arguments] ${username} |
| @@ -106,7 +106,7 @@ ${broker} Quinta | @@ -106,7 +106,7 @@ ${broker} Quinta | ||
| 106 | ... provider | 106 | ... provider |
| 107 | ... ${USERS.users['${provider}'].broker} | 107 | ... ${USERS.users['${provider}'].broker} |
| 108 | [Teardown] Оновити LAST_MODIFICATION_DATE | 108 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 109 | - ${bid}= test bid data | 109 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 110 | Log ${bid} | 110 | Log ${bid} |
| 111 | ${bidresponses}= Create Dictionary | 111 | ${bidresponses}= Create Dictionary |
| 112 | Set To Dictionary ${bidresponses} bid ${bid} | 112 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -176,7 +176,7 @@ ${broker} Quinta | @@ -176,7 +176,7 @@ ${broker} Quinta | ||
| 176 | ... provider1 | 176 | ... provider1 |
| 177 | ... ${USERS.users['${provider1}'].broker} | 177 | ... ${USERS.users['${provider1}'].broker} |
| 178 | [Teardown] Оновити LAST_MODIFICATION_DATE | 178 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 179 | - ${bid}= test bid data | 179 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 180 | Log ${bid} | 180 | Log ${bid} |
| 181 | ${bidresponses}= Create Dictionary | 181 | ${bidresponses}= Create Dictionary |
| 182 | Set To Dictionary ${bidresponses} bid ${bid} | 182 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -226,7 +226,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -226,7 +226,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 226 | ... provider1 | 226 | ... provider1 |
| 227 | ... ${USERS.users['${provider1}'].broker} | 227 | ... ${USERS.users['${provider1}'].broker} |
| 228 | [Teardown] Оновити LAST_MODIFICATION_DATE | 228 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 229 | - ${bid}= test bid data | 229 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 230 | Log ${bid} | 230 | Log ${bid} |
| 231 | ${bidresponses}= Create Dictionary | 231 | ${bidresponses}= Create Dictionary |
| 232 | Set To Dictionary ${bidresponses} bid ${bid} | 232 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -348,7 +348,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -348,7 +348,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 348 | ... provider1 | 348 | ... provider1 |
| 349 | ... ${USERS.users['${provider1}'].broker} | 349 | ... ${USERS.users['${provider1}'].broker} |
| 350 | [Teardown] Оновити LAST_MODIFICATION_DATE | 350 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 351 | - ${bid}= test bid data | 351 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 352 | Log ${bid} | 352 | Log ${bid} |
| 353 | ${bidresponses}= Create Dictionary | 353 | ${bidresponses}= Create Dictionary |
| 354 | Set To Dictionary ${bidresponses} bid ${bid} | 354 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -98,7 +98,7 @@ ${broker} Quinta | @@ -98,7 +98,7 @@ ${broker} Quinta | ||
| 98 | ... provider | 98 | ... provider |
| 99 | ... ${USERS.users['${provider}'].broker} | 99 | ... ${USERS.users['${provider}'].broker} |
| 100 | [Teardown] Оновити LAST_MODIFICATION_DATE | 100 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 101 | - ${bid}= test bid data | 101 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 102 | Log ${bid} | 102 | Log ${bid} |
| 103 | ${bidresponses}= Create Dictionary | 103 | ${bidresponses}= Create Dictionary |
| 104 | Set To Dictionary ${bidresponses} bid ${bid} | 104 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -112,7 +112,7 @@ ${broker} Quinta | @@ -112,7 +112,7 @@ ${broker} Quinta | ||
| 112 | ... provider1 | 112 | ... provider1 |
| 113 | ... ${USERS.users['${provider1}'].broker} | 113 | ... ${USERS.users['${provider1}'].broker} |
| 114 | [Teardown] Оновити LAST_MODIFICATION_DATE | 114 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 115 | - ${bid}= test bid data | 115 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 116 | Log ${bid} | 116 | Log ${bid} |
| 117 | ${bidresponses}= Create Dictionary | 117 | ${bidresponses}= Create Dictionary |
| 118 | Set To Dictionary ${bidresponses} bid ${bid} | 118 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -162,7 +162,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -162,7 +162,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 162 | ... provider1 | 162 | ... provider1 |
| 163 | ... ${USERS.users['${provider1}'].broker} | 163 | ... ${USERS.users['${provider1}'].broker} |
| 164 | [Teardown] Оновити LAST_MODIFICATION_DATE | 164 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 165 | - ${bid}= test bid data | 165 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 166 | Log ${bid} | 166 | Log ${bid} |
| 167 | ${bidresponses}= Create Dictionary | 167 | ${bidresponses}= Create Dictionary |
| 168 | Set To Dictionary ${bidresponses} bid ${bid} | 168 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -287,7 +287,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -287,7 +287,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 287 | ... provider1 | 287 | ... provider1 |
| 288 | ... ${USERS.users['${provider1}'].broker} | 288 | ... ${USERS.users['${provider1}'].broker} |
| 289 | [Teardown] Оновити LAST_MODIFICATION_DATE | 289 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 290 | - ${bid}= test bid data | 290 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 291 | Log ${bid} | 291 | Log ${bid} |
| 292 | ${bidresponses}= Create Dictionary | 292 | ${bidresponses}= Create Dictionary |
| 293 | Set To Dictionary ${bidresponses} bid ${bid} | 293 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -371,7 +371,7 @@ ${question_id} 0 | @@ -371,7 +371,7 @@ ${question_id} 0 | ||
| 371 | ... provider | 371 | ... provider |
| 372 | ... ${USERS.users['${provider}'].broker} | 372 | ... ${USERS.users['${provider}'].broker} |
| 373 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 373 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 374 | - ${bid}= test bid data | 374 | + ${bid}= Підготувати дані для подання пропозиції |
| 375 | Log ${bid} | 375 | Log ${bid} |
| 376 | ${bidresponses}= Create Dictionary bid=${bid} | 376 | ${bidresponses}= Create Dictionary bid=${bid} |
| 377 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 377 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -418,7 +418,7 @@ ${question_id} 0 | @@ -418,7 +418,7 @@ ${question_id} 0 | ||
| 418 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 418 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 419 | [Teardown] Оновити LAST_MODIFICATION_DATE | 419 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 420 | Дочекатись дати початку прийому пропозицій ${provider} | 420 | Дочекатись дати початку прийому пропозицій ${provider} |
| 421 | - ${bid}= test bid data | 421 | + ${bid}= Підготувати дані для подання пропозиції |
| 422 | Log ${bid} | 422 | Log ${bid} |
| 423 | ${bidresponses}= Create Dictionary bid=${bid} | 423 | ${bidresponses}= Create Dictionary bid=${bid} |
| 424 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 424 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -443,7 +443,7 @@ ${question_id} 0 | @@ -443,7 +443,7 @@ ${question_id} 0 | ||
| 443 | ... minimal | 443 | ... minimal |
| 444 | [Teardown] Оновити LAST_MODIFICATION_DATE | 444 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 445 | Дочекатись дати початку прийому пропозицій ${provider} | 445 | Дочекатись дати початку прийому пропозицій ${provider} |
| 446 | - ${bid}= test bid data | 446 | + ${bid}= Підготувати дані для подання пропозиції |
| 447 | Log ${bid} | 447 | Log ${bid} |
| 448 | ${bidresponses}= Create Dictionary bid=${bid} | 448 | ${bidresponses}= Create Dictionary bid=${bid} |
| 449 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 449 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -515,7 +515,7 @@ ${question_id} 0 | @@ -515,7 +515,7 @@ ${question_id} 0 | ||
| 515 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} | 515 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} |
| 516 | [Teardown] Оновити LAST_MODIFICATION_DATE | 516 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 517 | Дочекатись дати початку прийому пропозицій ${provider1} | 517 | Дочекатись дати початку прийому пропозицій ${provider1} |
| 518 | - ${bid}= test bid data | 518 | + ${bid}= Підготувати дані для подання пропозиції |
| 519 | Log ${bid} | 519 | Log ${bid} |
| 520 | ${bidresponses}= Create Dictionary bid=${bid} | 520 | ${bidresponses}= Create Dictionary bid=${bid} |
| 521 | Set To Dictionary ${USERS.users['${provider1}']} bidresponses=${bidresponses} | 521 | Set To Dictionary ${USERS.users['${provider1}']} bidresponses=${bidresponses} |
Please
register
or
login
to post a comment