Commit 2bd9be6da1434411c95382c31378d339e3712117

Authored by gorserg
1 parent 3e976cb2

Rename procurementMethodType for competitiveDialogue

@@ -382,7 +382,7 @@ def test_tender_data_competitive_dialogue(params): @@ -382,7 +382,7 @@ def test_tender_data_competitive_dialogue(params):
382 # an openUA or openEU procedure. That field should not be present at all. 382 # an openUA or openEU procedure. That field should not be present at all.
383 # Therefore, we pass a nondefault list of periods to `test_tender_data()`. 383 # Therefore, we pass a nondefault list of periods to `test_tender_data()`.
384 data = test_tender_data(params, ('tender',)) 384 data = test_tender_data(params, ('tender',))
385 - data['procurementMethodType'] = 'competitiveDialogue.aboveThreshold' + params.get('dialogue_type', 'EU') 385 + data['procurementMethodType'] = 'competitiveDialogue' + params.get('dialogue_type', 'EU')
386 data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True)) 386 data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True))
387 for item in data['items']: 387 for item in data['items']:
388 item['description_en'] = fake_en.sentence(nb_words=3, variable_nb_words=True) 388 item['description_en'] = fake_en.sentence(nb_words=3, variable_nb_words=True)
@@ -450,7 +450,7 @@ def get_document_index_by_id(data, document_id): @@ -450,7 +450,7 @@ def get_document_index_by_id(data, document_id):
450 450
451 def generate_test_bid_data(tender_data): 451 def generate_test_bid_data(tender_data):
452 bid = test_bid_data() 452 bid = test_bid_data()
453 - if 'aboveThreshold' in tender_data.get('procurementMethodType', ''): 453 + if 'aboveThreshold' in tender_data.get('procurementMethodType', '') or 'competitiveDialogue' in tender_data.get('procurementMethodType', ''):
454 bid.data.selfEligible = True 454 bid.data.selfEligible = True
455 bid.data.selfQualified = True 455 bid.data.selfQualified = True
456 if 'lots' in tender_data: 456 if 'lots' in tender_data:
Please register or login to post a comment