Commit 9b41db9a425806ef309174582e6c915891ebaee2
Merge pull request #127 from Leits/self
Fix bid error for aboveThreshold
Showing
5 changed files
with
25 additions
and
18 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(above_threshold=False): |
| 457 | + bid = munchify({ | ||
| 458 | "data": { | 458 | "data": { |
| 459 | "tenderers": [ | 459 | "tenderers": [ |
| 460 | { | 460 | { |
| @@ -485,6 +485,10 @@ def test_bid_data(): | @@ -485,6 +485,10 @@ def test_bid_data(): | ||
| 485 | } | 485 | } |
| 486 | } | 486 | } |
| 487 | }) | 487 | }) |
| 488 | + if above_threshold: | ||
| 489 | + bid.data['selfEligible'] = True | ||
| 490 | + bid.data['selfQualified'] = True | ||
| 491 | + return bid | ||
| 488 | 492 | ||
| 489 | 493 | ||
| 490 | def test_bid_data_meat_tender(): | 494 | def test_bid_data_meat_tender(): |
| @@ -714,8 +718,6 @@ def test_tender_data_openua(intervals): | @@ -714,8 +718,6 @@ def test_tender_data_openua(intervals): | ||
| 714 | t_data['procurementMethodType'] = 'aboveThresholdUA' | 718 | t_data['procurementMethodType'] = 'aboveThresholdUA' |
| 715 | t_data['procurementMethodDetails'] = 'quick, ' \ | 719 | t_data['procurementMethodDetails'] = 'quick, ' \ |
| 716 | 'accelerator={}'.format(accelerator) | 720 | 'accelerator={}'.format(accelerator) |
| 717 | - t_data['selfEligible'] = True | ||
| 718 | - t_data['selfQualified'] = True | ||
| 719 | return t_data | 721 | return t_data |
| 720 | 722 | ||
| 721 | 723 | ||
| @@ -737,6 +739,4 @@ def test_tender_data_openeu(intervals): | @@ -737,6 +739,4 @@ def test_tender_data_openeu(intervals): | ||
| 737 | t_data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() | 739 | t_data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() |
| 738 | t_data['procuringEntity']['contactPoint']['availableLanguage'] = "en" | 740 | t_data['procuringEntity']['contactPoint']['availableLanguage'] = "en" |
| 739 | t_data['procuringEntity']['identifier']['legalName_en'] = "Institution \"Vinnytsia City Council primary and secondary general school № 10\"" | 741 | 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 | 742 | return t_data |
| @@ -7,6 +7,7 @@ Library OperatingSystem | @@ -7,6 +7,7 @@ Library OperatingSystem | ||
| 7 | Library DateTime | 7 | Library DateTime |
| 8 | Library DebugLibrary | 8 | Library DebugLibrary |
| 9 | 9 | ||
| 10 | + | ||
| 10 | Documentation | 11 | Documentation |
| 11 | ... This resource file contains keywords that are used directly by | 12 | ... This resource file contains keywords that are used directly by |
| 12 | ... test suites or by brokers' keyword libraries (also known as drivers). | 13 | ... test suites or by brokers' keyword libraries (also known as drivers). |
| @@ -180,6 +181,12 @@ Get Broker Property By Username | @@ -180,6 +181,12 @@ Get Broker Property By Username | ||
| 180 | [Return] ${answer} | 181 | [Return] ${answer} |
| 181 | 182 | ||
| 182 | 183 | ||
| 184 | +Підготувати дані для подання пропозиції | ||
| 185 | + [Arguments] ${aboveThreshold}=${False} | ||
| 186 | + ${supplier_data}= test_bid_data ${aboveThreshold} | ||
| 187 | + [Return] ${supplier_data} | ||
| 188 | + | ||
| 189 | + | ||
| 183 | Підготувати дані про постачальника | 190 | Підготувати дані про постачальника |
| 184 | [Arguments] ${username} | 191 | [Arguments] ${username} |
| 185 | ${supplier_data}= test_supplier_data | 192 | ${supplier_data}= test_supplier_data |
| @@ -107,7 +107,7 @@ ${broker} Quinta | @@ -107,7 +107,7 @@ ${broker} Quinta | ||
| 107 | ... provider | 107 | ... provider |
| 108 | ... ${USERS.users['${provider}'].broker} | 108 | ... ${USERS.users['${provider}'].broker} |
| 109 | [Teardown] Оновити LAST_MODIFICATION_DATE | 109 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 110 | - ${bid}= test bid data | 110 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 111 | Log ${bid} | 111 | Log ${bid} |
| 112 | ${bidresponses}= Create Dictionary | 112 | ${bidresponses}= Create Dictionary |
| 113 | Set To Dictionary ${bidresponses} bid ${bid} | 113 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -177,7 +177,7 @@ ${broker} Quinta | @@ -177,7 +177,7 @@ ${broker} Quinta | ||
| 177 | ... provider1 | 177 | ... provider1 |
| 178 | ... ${USERS.users['${provider1}'].broker} | 178 | ... ${USERS.users['${provider1}'].broker} |
| 179 | [Teardown] Оновити LAST_MODIFICATION_DATE | 179 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 180 | - ${bid}= test bid data | 180 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 181 | Log ${bid} | 181 | Log ${bid} |
| 182 | ${bidresponses}= Create Dictionary | 182 | ${bidresponses}= Create Dictionary |
| 183 | Set To Dictionary ${bidresponses} bid ${bid} | 183 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -227,7 +227,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -227,7 +227,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 227 | ... provider1 | 227 | ... provider1 |
| 228 | ... ${USERS.users['${provider1}'].broker} | 228 | ... ${USERS.users['${provider1}'].broker} |
| 229 | [Teardown] Оновити LAST_MODIFICATION_DATE | 229 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 230 | - ${bid}= test bid data | 230 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 231 | Log ${bid} | 231 | Log ${bid} |
| 232 | ${bidresponses}= Create Dictionary | 232 | ${bidresponses}= Create Dictionary |
| 233 | Set To Dictionary ${bidresponses} bid ${bid} | 233 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -349,7 +349,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -349,7 +349,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 349 | ... provider1 | 349 | ... provider1 |
| 350 | ... ${USERS.users['${provider1}'].broker} | 350 | ... ${USERS.users['${provider1}'].broker} |
| 351 | [Teardown] Оновити LAST_MODIFICATION_DATE | 351 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 352 | - ${bid}= test bid data | 352 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 353 | Log ${bid} | 353 | Log ${bid} |
| 354 | ${bidresponses}= Create Dictionary | 354 | ${bidresponses}= Create Dictionary |
| 355 | Set To Dictionary ${bidresponses} bid ${bid} | 355 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -99,7 +99,7 @@ ${broker} Quinta | @@ -99,7 +99,7 @@ ${broker} Quinta | ||
| 99 | ... provider | 99 | ... provider |
| 100 | ... ${USERS.users['${provider}'].broker} | 100 | ... ${USERS.users['${provider}'].broker} |
| 101 | [Teardown] Оновити LAST_MODIFICATION_DATE | 101 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 102 | - ${bid}= test bid data | 102 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 103 | Log ${bid} | 103 | Log ${bid} |
| 104 | ${bidresponses}= Create Dictionary | 104 | ${bidresponses}= Create Dictionary |
| 105 | Set To Dictionary ${bidresponses} bid ${bid} | 105 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -113,7 +113,7 @@ ${broker} Quinta | @@ -113,7 +113,7 @@ ${broker} Quinta | ||
| 113 | ... provider1 | 113 | ... provider1 |
| 114 | ... ${USERS.users['${provider1}'].broker} | 114 | ... ${USERS.users['${provider1}'].broker} |
| 115 | [Teardown] Оновити LAST_MODIFICATION_DATE | 115 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 116 | - ${bid}= test bid data | 116 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 117 | Log ${bid} | 117 | Log ${bid} |
| 118 | ${bidresponses}= Create Dictionary | 118 | ${bidresponses}= Create Dictionary |
| 119 | Set To Dictionary ${bidresponses} bid ${bid} | 119 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -163,7 +163,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -163,7 +163,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 163 | ... provider1 | 163 | ... provider1 |
| 164 | ... ${USERS.users['${provider1}'].broker} | 164 | ... ${USERS.users['${provider1}'].broker} |
| 165 | [Teardown] Оновити LAST_MODIFICATION_DATE | 165 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 166 | - ${bid}= test bid data | 166 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 167 | Log ${bid} | 167 | Log ${bid} |
| 168 | ${bidresponses}= Create Dictionary | 168 | ${bidresponses}= Create Dictionary |
| 169 | Set To Dictionary ${bidresponses} bid ${bid} | 169 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -288,7 +288,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| @@ -288,7 +288,7 @@ CкаÑувати цінову пропозицію другого учаÑниР| ||
| 288 | ... provider1 | 288 | ... provider1 |
| 289 | ... ${USERS.users['${provider1}'].broker} | 289 | ... ${USERS.users['${provider1}'].broker} |
| 290 | [Teardown] Оновити LAST_MODIFICATION_DATE | 290 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 291 | - ${bid}= test bid data | 291 | + ${bid}= Підготувати дані для подання пропозиції aboveThreshold=${True} |
| 292 | Log ${bid} | 292 | Log ${bid} |
| 293 | ${bidresponses}= Create Dictionary | 293 | ${bidresponses}= Create Dictionary |
| 294 | Set To Dictionary ${bidresponses} bid ${bid} | 294 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -372,7 +372,7 @@ ${question_id} 0 | @@ -372,7 +372,7 @@ ${question_id} 0 | ||
| 372 | ... provider | 372 | ... provider |
| 373 | ... ${USERS.users['${provider}'].broker} | 373 | ... ${USERS.users['${provider}'].broker} |
| 374 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 374 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 375 | - ${bid}= test bid data | 375 | + ${bid}= Підготувати дані для подання пропозиції |
| 376 | Log ${bid} | 376 | Log ${bid} |
| 377 | ${bidresponses}= Create Dictionary bid=${bid} | 377 | ${bidresponses}= Create Dictionary bid=${bid} |
| 378 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 378 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -419,7 +419,7 @@ ${question_id} 0 | @@ -419,7 +419,7 @@ ${question_id} 0 | ||
| 419 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 419 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 420 | [Teardown] Оновити LAST_MODIFICATION_DATE | 420 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 421 | Дочекатись дати початку прийому пропозицій ${provider} | 421 | Дочекатись дати початку прийому пропозицій ${provider} |
| 422 | - ${bid}= test bid data | 422 | + ${bid}= Підготувати дані для подання пропозиції |
| 423 | Log ${bid} | 423 | Log ${bid} |
| 424 | ${bidresponses}= Create Dictionary bid=${bid} | 424 | ${bidresponses}= Create Dictionary bid=${bid} |
| 425 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 425 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -444,7 +444,7 @@ ${question_id} 0 | @@ -444,7 +444,7 @@ ${question_id} 0 | ||
| 444 | ... minimal | 444 | ... minimal |
| 445 | [Teardown] Оновити LAST_MODIFICATION_DATE | 445 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 446 | Дочекатись дати початку прийому пропозицій ${provider} | 446 | Дочекатись дати початку прийому пропозицій ${provider} |
| 447 | - ${bid}= test bid data | 447 | + ${bid}= Підготувати дані для подання пропозиції |
| 448 | Log ${bid} | 448 | Log ${bid} |
| 449 | ${bidresponses}= Create Dictionary bid=${bid} | 449 | ${bidresponses}= Create Dictionary bid=${bid} |
| 450 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} | 450 | Set To Dictionary ${USERS.users['${provider}']} bidresponses=${bidresponses} |
| @@ -516,7 +516,7 @@ ${question_id} 0 | @@ -516,7 +516,7 @@ ${question_id} 0 | ||
| 516 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} | 516 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} |
| 517 | [Teardown] Оновити LAST_MODIFICATION_DATE | 517 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 518 | Дочекатись дати початку прийому пропозицій ${provider1} | 518 | Дочекатись дати початку прийому пропозицій ${provider1} |
| 519 | - ${bid}= test bid data | 519 | + ${bid}= Підготувати дані для подання пропозиції |
| 520 | Log ${bid} | 520 | Log ${bid} |
| 521 | ${bidresponses}= Create Dictionary bid=${bid} | 521 | ${bidresponses}= Create Dictionary bid=${bid} |
| 522 | Set To Dictionary ${USERS.users['${provider1}']} bidresponses=${bidresponses} | 522 | Set To Dictionary ${USERS.users['${provider1}']} bidresponses=${bidresponses} |
Please
register
or
login
to post a comment