Commit a4c5141f4cce31babf69f720f8d5844be6b6cbda

Authored by ivanka12
1 parent 9e034b4d

add keyword "Можливість оголосити тендер другого етапу"

@@ -29,6 +29,29 @@ Resource resource.robot @@ -29,6 +29,29 @@ Resource resource.robot
29 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID} 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 ${period_intervals}= compute_intrs ${BROKERS} ${used_brokers} 56 ${period_intervals}= compute_intrs ${BROKERS} ${used_brokers}
34 ${accelerator}= Get Variable Value ${accelerator} 57 ${accelerator}= Get Variable Value ${accelerator}
@@ -184,6 +184,7 @@ Library openprocurement_client.utils @@ -184,6 +184,7 @@ Library openprocurement_client.utils
184 ${access_token}= Get Variable Value ${tender.access.token} 184 ${access_token}= Get Variable Value ${tender.access.token}
185 ${status}= Set Variable If 'open' in '${MODE}' active.tendering ${EMPTY} 185 ${status}= Set Variable If 'open' in '${MODE}' active.tendering ${EMPTY}
186 ${status}= Set Variable If 'below' in '${MODE}' active.enquiries ${status} 186 ${status}= Set Variable If 'below' in '${MODE}' active.enquiries ${status}
  187 + ${status}= Set Variable If 'selection' in '${MODE}' draft.pending ${status}
187 ${status}= Set Variable If '${status}'=='${EMPTY}' active ${status} 188 ${status}= Set Variable If '${status}'=='${EMPTY}' active ${status}
188 Set To Dictionary ${tender['data']} status=${status} 189 Set To Dictionary ${tender['data']} status=${status}
189 ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender 190 ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender
@@ -635,6 +635,22 @@ def test_tender_data_competitive_dialogue(params, submissionMethodDetails): @@ -635,6 +635,22 @@ def test_tender_data_competitive_dialogue(params, submissionMethodDetails):
635 return data 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 def test_change_data(): 654 def test_change_data():
639 return munchify( 655 return munchify(
640 { 656 {
@@ -54,6 +54,7 @@ from .initial_data import ( @@ -54,6 +54,7 @@ from .initial_data import (
54 test_tender_data_planning, 54 test_tender_data_planning,
55 test_tender_data_openua_defense, 55 test_tender_data_openua_defense,
56 test_tender_data_framework_agreement, 56 test_tender_data_framework_agreement,
  57 + test_tender_data_selection,
57 test_bid_competitive_data, 58 test_bid_competitive_data,
58 tets_monitoring_data, 59 tets_monitoring_data,
59 test_party, 60 test_party,
Please register or login to post a comment