Commit 0b8784480c14f2360691e559f80eeac9af854c06

Authored by alexdiatlov
Committed by GitHub
2 parents 964cd8a5 7c8c2e5d

Merge pull request #297 from ProzorroUKR/fix_eligible

Fix eligible
@@ -633,7 +633,6 @@ def get_object_by_id(data, given_object_id, slice_element, object_id): @@ -633,7 +633,6 @@ def get_object_by_id(data, given_object_id, slice_element, object_id):
633 def generate_test_bid_data(tender_data, edrpou=None): 633 def generate_test_bid_data(tender_data, edrpou=None):
634 if tender_data.get('procurementMethodType', '') in ( 634 if tender_data.get('procurementMethodType', '') in (
635 'aboveThresholdUA', 635 'aboveThresholdUA',
636 - 'aboveThresholdUA.defense',  
637 'aboveThresholdEU', 636 'aboveThresholdEU',
638 'competitiveDialogueUA', 637 'competitiveDialogueUA',
639 'competitiveDialogueEU', 638 'competitiveDialogueEU',
@@ -641,13 +640,16 @@ def generate_test_bid_data(tender_data, edrpou=None): @@ -641,13 +640,16 @@ def generate_test_bid_data(tender_data, edrpou=None):
641 'esco' 640 'esco'
642 ): 641 ):
643 bid = test_bid_competitive_data() 642 bid = test_bid_competitive_data()
644 - #bid.data.selfEligible = True 643 + bid.data.selfQualified = True
  644 + elif tender_data.get('procurementMethodType', '') in (
  645 + 'aboveThresholdUA.defense'):
  646 + bid = test_bid_competitive_data()
  647 + bid.data.selfEligible = True
645 bid.data.selfQualified = True 648 bid.data.selfQualified = True
646 elif tender_data.get('procurementMethodType', '') in ( 649 elif tender_data.get('procurementMethodType', '') in (
647 'competitiveDialogueUA.stage2', 650 'competitiveDialogueUA.stage2',
648 'competitiveDialogueEU.stage2'): 651 'competitiveDialogueEU.stage2'):
649 bid = test_bid_competitive_data_stage_2(edrpou) 652 bid = test_bid_competitive_data_stage_2(edrpou)
650 - #bid.data.selfEligible = True  
651 bid.data.selfQualified = True 653 bid.data.selfQualified = True
652 else: 654 else:
653 bid = test_bid_data() 655 bid = test_bid_data()
Please register or login to post a comment