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