Commit 26bf8a2f9dfc526486c1ca57bad6589850d51dcb
Committed by
GitHub
Merge pull request #241 from gorserg/rename_cd_type
Rename procurementMethodType for competitiveDialogue
Showing
2 changed files
with
2 additions
and
2 deletions
... | ... | @@ -382,7 +382,7 @@ def test_tender_data_competitive_dialogue(params): |
382 | 382 | # an openUA or openEU procedure. That field should not be present at all. |
383 | 383 | # Therefore, we pass a nondefault list of periods to `test_tender_data()`. |
384 | 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 | 386 | data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True)) |
387 | 387 | for item in data['items']: |
388 | 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 | 450 | |
451 | 451 | def generate_test_bid_data(tender_data): |
452 | 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 | 454 | bid.data.selfEligible = True |
455 | 455 | bid.data.selfQualified = True |
456 | 456 | if 'lots' in tender_data: | ... | ... |
Please
register
or
login
to post a comment