Commit f6ce2dab2dcc5014dc32d01b2668dbd11445fddc

Authored by AlexDiatlov
1 parent 90ca6fc8

add simple defense procedure type into tender/bid generation method

@@ -94,7 +94,8 @@ from .initial_data import ( @@ -94,7 +94,8 @@ from .initial_data import (
94 test_data_bid_criteria, 94 test_data_bid_criteria,
95 test_bid_criteria, 95 test_bid_criteria,
96 test_qualification_criteria, 96 test_qualification_criteria,
97 - test_awards_criteria 97 + test_awards_criteria,
  98 + test_tender_data_simple_defense
98 ) 99 )
99 from barbecue import chef 100 from barbecue import chef
100 from restkit import request 101 from restkit import request
@@ -388,6 +389,9 @@ def prepare_test_tender_data(procedure_intervals, @@ -388,6 +389,9 @@ def prepare_test_tender_data(procedure_intervals,
388 tender_parameters, submissionMethodDetails, plan_data)}) 389 tender_parameters, submissionMethodDetails, plan_data)})
389 elif mode == 'priceQuotation': 390 elif mode == 'priceQuotation':
390 return munchify({'data': test_tender_data_pq(tender_parameters, submissionMethodDetails, plan_data)}) 391 return munchify({'data': test_tender_data_pq(tender_parameters, submissionMethodDetails, plan_data)})
  392 + elif mode == "open_simple_defense":
  393 + return munchify({'data': test_tender_data_simple_defense(
  394 + tender_parameters, submissionMethodDetails, plan_data)})
391 395
392 # The previous line needs an explicit keyword argument because, 396 # The previous line needs an explicit keyword argument because,
393 # unlike previous functions, this one has three arguments. 397 # unlike previous functions, this one has three arguments.
@@ -644,7 +648,8 @@ def generate_test_bid_data(tender_data, edrpou=None): @@ -644,7 +648,8 @@ def generate_test_bid_data(tender_data, edrpou=None):
644 bid = test_bid_competitive_data() 648 bid = test_bid_competitive_data()
645 bid.data.selfQualified = True 649 bid.data.selfQualified = True
646 elif tender_data.get('procurementMethodType', '') in ( 650 elif tender_data.get('procurementMethodType', '') in (
647 - 'aboveThresholdUA.defense'): 651 + 'aboveThresholdUA.defense',
  652 + 'simple.defense'):
648 bid = test_bid_competitive_data() 653 bid = test_bid_competitive_data()
649 bid.data.selfEligible = True 654 bid.data.selfEligible = True
650 bid.data.selfQualified = True 655 bid.data.selfQualified = True
Please register or login to post a comment