Commit a4c5141f4cce31babf69f720f8d5844be6b6cbda
1 parent
9e034b4d
add keyword "Можливість оголосити тендер другого етапу"
Showing
4 changed files
with
41 additions
and
0 deletions
... | ... | @@ -29,6 +29,29 @@ Resource resource.robot |
29 | 29 | Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID} |
30 | 30 | |
31 | 31 | |
32 | +Можливість оголосити тендер другого етапу | |
33 | + ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS} | |
34 | + ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS} | |
35 | + ${tender_parameters}= Create Dictionary | |
36 | + ... mode=${MODE} | |
37 | + ... number_of_items=${NUMBER_OF_ITEMS} | |
38 | + ... number_of_lots=${NUMBER_OF_LOTS} | |
39 | + ... tender_meat=${${TENDER_MEAT}} | |
40 | + ... lot_meat=${${LOT_MEAT}} | |
41 | + ... item_meat=${${ITEM_MEAT}} | |
42 | + ... api_host_url=${API_HOST_URL} | |
43 | + ... moz_integration=${${MOZ_INTEGRATION}} | |
44 | + ${submissionMethodDetails}= Get Variable Value ${submissionMethodDetails} | |
45 | + ${period_intervals}= compute_intrs ${BROKERS} ${used_brokers} | |
46 | + ${first_stage}= Run As ${provider2} Пошук тендера по ідентифікатору ${TENDER['TENDER_UAID']} | |
47 | + ${tender_data}= test_tender_data_selection ${period_intervals} ${tender_parameters} ${submissionMethodDetails} tender_data=${first_stage} | |
48 | + ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data} | |
49 | + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} | |
50 | + Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data} | |
51 | + Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID} | |
52 | + Дочекатись дати початку періоду уточнення ${tender_owner} ${TENDER_UAID} | |
53 | + | |
54 | + | |
32 | 55 | Можливість створити об'єкт моніторингу |
33 | 56 | ${period_intervals}= compute_intrs ${BROKERS} ${used_brokers} |
34 | 57 | ${accelerator}= Get Variable Value ${accelerator} | ... | ... |
... | ... | @@ -184,6 +184,7 @@ Library openprocurement_client.utils |
184 | 184 | ${access_token}= Get Variable Value ${tender.access.token} |
185 | 185 | ${status}= Set Variable If 'open' in '${MODE}' active.tendering ${EMPTY} |
186 | 186 | ${status}= Set Variable If 'below' in '${MODE}' active.enquiries ${status} |
187 | + ${status}= Set Variable If 'selection' in '${MODE}' draft.pending ${status} | |
187 | 188 | ${status}= Set Variable If '${status}'=='${EMPTY}' active ${status} |
188 | 189 | Set To Dictionary ${tender['data']} status=${status} |
189 | 190 | ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender | ... | ... |
... | ... | @@ -635,6 +635,22 @@ def test_tender_data_competitive_dialogue(params, submissionMethodDetails): |
635 | 635 | return data |
636 | 636 | |
637 | 637 | |
638 | +def test_tender_data_selection(procedure_intervals, params, submissionMethodDetails, tender_data=None): | |
639 | + intervals = procedure_intervals['framework_selection'] | |
640 | + params['intervals'] = intervals | |
641 | + data = test_tender_data(params, (), submissionMethodDetails) | |
642 | + data['title_en'] = "[TESTING]" | |
643 | + data['procuringEntity'] = tender_data['data']['procuringEntity'] | |
644 | + del data['procuringEntity']['contactPoint']['availableLanguage'] | |
645 | + data['procurementMethodType'] = 'closeFrameworkAgreementSelectionUA' | |
646 | + data['items'] = tender_data['data']['items'] | |
647 | + data['lots'] = tender_data['data']['lots'] | |
648 | + data['agreements'] = [{'id': tender_data['data']['agreements'][0]['id']}] | |
649 | + del data['value'] | |
650 | + del data['minimalStep'] | |
651 | + return munchify({'data':data}) | |
652 | + | |
653 | + | |
638 | 654 | def test_change_data(): |
639 | 655 | return munchify( |
640 | 656 | { | ... | ... |
Please
register
or
login
to post a comment