Showing
7 changed files
with
34 additions
and
53 deletions
| @@ -455,7 +455,7 @@ def test_complaint_reply_data(): | @@ -455,7 +455,7 @@ def test_complaint_reply_data(): | ||
| 455 | }) | 455 | }) |
| 456 | 456 | ||
| 457 | 457 | ||
| 458 | -def test_bid_data(above_threshold=False): | 458 | +def test_bid_data(mode): |
| 459 | bid = munchify({ | 459 | bid = munchify({ |
| 460 | "data": { | 460 | "data": { |
| 461 | "tenderers": [ | 461 | "tenderers": [ |
| @@ -479,23 +479,25 @@ def test_bid_data(above_threshold=False): | @@ -479,23 +479,25 @@ def test_bid_data(above_threshold=False): | ||
| 479 | }, | 479 | }, |
| 480 | "name": fake.company() | 480 | "name": fake.company() |
| 481 | } | 481 | } |
| 482 | - ], | ||
| 483 | - "value": { | ||
| 484 | - "currency": "UAH", | ||
| 485 | - "amount": 500, | ||
| 486 | - "valueAddedTaxIncluded": True | ||
| 487 | - } | 482 | + ] |
| 488 | } | 483 | } |
| 489 | }) | 484 | }) |
| 490 | - if above_threshold: | 485 | + if 'open' in mode: |
| 491 | bid.data['selfEligible'] = True | 486 | bid.data['selfEligible'] = True |
| 492 | bid.data['selfQualified'] = True | 487 | bid.data['selfQualified'] = True |
| 488 | + if mode == 'multiLot': | ||
| 489 | + bid.data.lotValues = list() | ||
| 490 | + for _ in range(2): | ||
| 491 | + bid.data.lotValues.append(test_bid_values()) | ||
| 492 | + else: | ||
| 493 | + bid.data.value = test_bid_values() | ||
| 494 | + if mode == 'meat': | ||
| 495 | + bid.update(test_bid_params()) | ||
| 493 | return bid | 496 | return bid |
| 494 | 497 | ||
| 495 | 498 | ||
| 496 | -def test_bid_data_meat_tender(): | ||
| 497 | - bid = test_bid_data() | ||
| 498 | - bid.data.update({ | 499 | +def test_bid_params(): |
| 500 | + return munchify({ | ||
| 499 | "parameters": [ | 501 | "parameters": [ |
| 500 | { | 502 | { |
| 501 | "code": "ee3e24bc17234a41bd3e3a04cc28e9c6", | 503 | "code": "ee3e24bc17234a41bd3e3a04cc28e9c6", |
| @@ -507,35 +509,15 @@ def test_bid_data_meat_tender(): | @@ -507,35 +509,15 @@ def test_bid_data_meat_tender(): | ||
| 507 | } | 509 | } |
| 508 | ] | 510 | ] |
| 509 | }) | 511 | }) |
| 510 | - return bid | ||
| 511 | - | ||
| 512 | 512 | ||
| 513 | -def test_lots_bid_data(): | ||
| 514 | - bid = test_bid_data() | ||
| 515 | - del bid.data.value | ||
| 516 | - bid.data.update({ | ||
| 517 | - "lotValues": [ | ||
| 518 | - { | ||
| 519 | - "value": { | ||
| 520 | - "currency": "UAH", | ||
| 521 | - "amount": fake.random_int(max=1999), | ||
| 522 | - "valueAddedTaxIncluded": True | ||
| 523 | - }, | ||
| 524 | - "relatedLot": "3c8f387879de4c38957402dbdb8b31af", | ||
| 525 | - "date": "2015-11-01T12:43:12.482645+02:00" | ||
| 526 | - }, | ||
| 527 | - { | 513 | +def test_bid_values(): |
| 514 | + return munchify({ | ||
| 528 | "value": { | 515 | "value": { |
| 529 | "currency": "UAH", | 516 | "currency": "UAH", |
| 530 | "amount": fake.random_int(max=1999), | 517 | "amount": fake.random_int(max=1999), |
| 531 | "valueAddedTaxIncluded": True | 518 | "valueAddedTaxIncluded": True |
| 532 | - }, | ||
| 533 | - "relatedLot": "bcac8d2ceb5f4227b841a2211f5cb646", | ||
| 534 | - "date": "2015-11-01T12:43:12.482645+02:00" | ||
| 535 | - } | ||
| 536 | - ] | ||
| 537 | - }) | ||
| 538 | - return bid | 519 | + } |
| 520 | + }) | ||
| 539 | 521 | ||
| 540 | 522 | ||
| 541 | def auction_bid(): | 523 | def auction_bid(): |
| @@ -198,6 +198,9 @@ Get Broker Property By Username | @@ -198,6 +198,9 @@ Get Broker Property By Username | ||
| 198 | ${reply}= Create Dictionary data=${lot} | 198 | ${reply}= Create Dictionary data=${lot} |
| 199 | [Return] ${reply} | 199 | [Return] ${reply} |
| 200 | 200 | ||
| 201 | +Підготовка даних для створення предмету закупівлі | ||
| 202 | + ${item}= test_item_data | ||
| 203 | + [Return] ${item} | ||
| 201 | 204 | ||
| 202 | Підготовка даних для подання вимоги | 205 | Підготовка даних для подання вимоги |
| 203 | ${claim}= test_claim_data | 206 | ${claim}= test_claim_data |
| @@ -216,8 +219,7 @@ Get Broker Property By Username | @@ -216,8 +219,7 @@ Get Broker Property By Username | ||
| 216 | 219 | ||
| 217 | 220 | ||
| 218 | Підготовка даних для запитання | 221 | Підготовка даних для запитання |
| 219 | - [Arguments] ${lot}=${False} | ||
| 220 | - ${question}= test_question_data ${lot} | 222 | + ${question}= test_question_data |
| 221 | [Return] ${question} | 223 | [Return] ${question} |
| 222 | 224 | ||
| 223 | 225 | ||
| @@ -227,8 +229,7 @@ Get Broker Property By Username | @@ -227,8 +229,7 @@ Get Broker Property By Username | ||
| 227 | 229 | ||
| 228 | 230 | ||
| 229 | Підготувати дані для подання пропозиції | 231 | Підготувати дані для подання пропозиції |
| 230 | - [Arguments] ${aboveThreshold}=${False} | ||
| 231 | - ${supplier_data}= test_bid_data ${aboveThreshold} | 232 | + ${supplier_data}= test_bid_data ${mode} |
| 232 | [Return] ${supplier_data} | 233 | [Return] ${supplier_data} |
| 233 | 234 | ||
| 234 | 235 |
| @@ -76,7 +76,7 @@ ${mode} meat | @@ -76,7 +76,7 @@ ${mode} meat | ||
| 76 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 76 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 77 | Дочекатись дати початку прийому пропозицій ${provider} | 77 | Дочекатись дати початку прийому пропозицій ${provider} |
| 78 | sleep 90 | 78 | sleep 90 |
| 79 | - ${bid}= test bid data | 79 | + ${bid}= test bid data single |
| 80 | Log ${bid} | 80 | Log ${bid} |
| 81 | ${failbid}= Require Failure ${provider} Подати цінову пропозицію ${TENDER['TENDER_UAID']} ${bid} | 81 | ${failbid}= Require Failure ${provider} Подати цінову пропозицію ${TENDER['TENDER_UAID']} ${bid} |
| 82 | log ${failbid} | 82 | log ${failbid} |
| @@ -87,7 +87,7 @@ ${mode} meat | @@ -87,7 +87,7 @@ ${mode} meat | ||
| 87 | ... provider | 87 | ... provider |
| 88 | ... ${USERS.users['${provider}'].broker} | 88 | ... ${USERS.users['${provider}'].broker} |
| 89 | [Teardown] Оновити LAST_MODIFICATION_DATE | 89 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 90 | - ${bid}= test bid data meat tender | 90 | + ${bid}= Підготувати дані для подання пропозиції |
| 91 | Log ${bid} | 91 | Log ${bid} |
| 92 | ${bidresponses}= Create Dictionary | 92 | ${bidresponses}= Create Dictionary |
| 93 | Set To Dictionary ${bidresponses} bid ${bid} | 93 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -124,7 +124,7 @@ ${mode} meat | @@ -124,7 +124,7 @@ ${mode} meat | ||
| 124 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} | 124 | [Setup] Дочекатись синхронізації з майданчиком ${provider1} |
| 125 | [Teardown] Оновити LAST_MODIFICATION_DATE | 125 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 126 | Дочекатись дати початку прийому пропозицій ${provider1} | 126 | Дочекатись дати початку прийому пропозицій ${provider1} |
| 127 | - ${bid}= test bid data meat tender | 127 | + ${bid}= Підготувати дані для подання пропозиції |
| 128 | Log ${bid} | 128 | Log ${bid} |
| 129 | ${bidresponses}= Create Dictionary | 129 | ${bidresponses}= Create Dictionary |
| 130 | Set To Dictionary ${bidresponses} bid ${bid} | 130 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -296,7 +296,7 @@ ${complaint_id} 1 | @@ -296,7 +296,7 @@ ${complaint_id} 1 | ||
| 296 | ... ${USERS.users['${provider}'].broker} | 296 | ... ${USERS.users['${provider}'].broker} |
| 297 | [Setup] Дочекатись синхронізації з майданчиком ${provider} | 297 | [Setup] Дочекатись синхронізації з майданчиком ${provider} |
| 298 | Дочекатись дати початку прийому пропозицій ${provider} | 298 | Дочекатись дати початку прийому пропозицій ${provider} |
| 299 | - ${bid}= test bid data | 299 | + ${bid}= Підготувати дані для подання пропозиції |
| 300 | Log ${bid} | 300 | Log ${bid} |
| 301 | ${bidresponses}= Create Dictionary | 301 | ${bidresponses}= Create Dictionary |
| 302 | Set To Dictionary ${bidresponses} bid ${bid} | 302 | Set To Dictionary ${bidresponses} bid ${bid} |
| @@ -106,7 +106,7 @@ ${mode} openeu | @@ -106,7 +106,7 @@ ${mode} openeu | ||
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 109 | + ${bid}= Підготувати дані для подання пропозиції |
| 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 @@ ${mode} openeu | @@ -176,7 +176,7 @@ ${mode} openeu | ||
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 179 | + ${bid}= Підготувати дані для подання пропозиції |
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 229 | + ${bid}= Підготувати дані для подання пропозиції |
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 351 | + ${bid}= Підготувати дані для подання пропозиції |
| 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 @@ ${mode} openua | @@ -98,7 +98,7 @@ ${mode} openua | ||
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 101 | + ${bid}= Підготувати дані для подання пропозиції |
| 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 @@ ${mode} openua | @@ -112,7 +112,7 @@ ${mode} openua | ||
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 115 | + ${bid}= Підготувати дані для подання пропозиції |
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 165 | + ${bid}= Підготувати дані для подання пропозиції |
| 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}= Підготувати дані для подання пропозиції aboveThreshold=${True} | 290 | + ${bid}= Підготувати дані для подання пропозиції |
| 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} |
| @@ -22,7 +22,6 @@ from .initial_data import ( | @@ -22,7 +22,6 @@ from .initial_data import ( | ||
| 22 | test_additional_items_data, | 22 | test_additional_items_data, |
| 23 | test_award_data, | 23 | test_award_data, |
| 24 | test_bid_data, | 24 | test_bid_data, |
| 25 | - test_bid_data_meat_tender, | ||
| 26 | test_cancel_claim_data, | 25 | test_cancel_claim_data, |
| 27 | test_cancel_tender_data, | 26 | test_cancel_tender_data, |
| 28 | test_change_cancellation_document_field_data, | 27 | test_change_cancellation_document_field_data, |
| @@ -40,7 +39,6 @@ from .initial_data import ( | @@ -40,7 +39,6 @@ from .initial_data import ( | ||
| 40 | test_lot_data, | 39 | test_lot_data, |
| 41 | test_lot_document_data, | 40 | test_lot_document_data, |
| 42 | test_lot_question_data, | 41 | test_lot_question_data, |
| 43 | - test_lots_bid_data, | ||
| 44 | test_question_answer_data, | 42 | test_question_answer_data, |
| 45 | test_question_data, | 43 | test_question_data, |
| 46 | test_submit_claim_data, | 44 | test_submit_claim_data, |
Please
register
or
login
to post a comment