Commit 60eb05355cbc6bb6812450a56c76d55ccef75361
1 parent
26bf8a2f
add availableLanguage only if procurementMethodType not competitiveDialogueUA
Showing
1 changed file
with
5 additions
and
2 deletions
@@ -382,13 +382,16 @@ def test_tender_data_competitive_dialogue(params): | @@ -382,13 +382,16 @@ 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' + params.get('dialogue_type', 'EU') | 385 | + if params.get('dialogue_type') == 'UA': |
386 | + data['procurementMethodType'] = 'competitiveDialogueUA' | ||
387 | + else: | ||
388 | + data['procurementMethodType'] = 'competitiveDialogueEU' | ||
389 | + data['procuringEntity']['contactPoint']['availableLanguage'] = "en" | ||
386 | data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True)) | 390 | data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True)) |
387 | for item in data['items']: | 391 | for item in data['items']: |
388 | item['description_en'] = fake_en.sentence(nb_words=3, variable_nb_words=True) | 392 | item['description_en'] = fake_en.sentence(nb_words=3, variable_nb_words=True) |
389 | data['procuringEntity']['name_en'] = fake_en.name() | 393 | data['procuringEntity']['name_en'] = fake_en.name() |
390 | data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() | 394 | data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() |
391 | - data['procuringEntity']['contactPoint']['availableLanguage'] = "en" | ||
392 | data['procuringEntity']['identifier']['legalName_en'] = fake_en.sentence(nb_words=10, variable_nb_words=True) | 395 | data['procuringEntity']['identifier']['legalName_en'] = fake_en.sentence(nb_words=10, variable_nb_words=True) |
393 | data['procuringEntity']['kind'] = 'general' | 396 | data['procuringEntity']['kind'] = 'general' |
394 | return data | 397 | return data |
Please
register
or
login
to post a comment