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 | 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' + 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 | 390 | data['title_en'] = "[TESTING] {}".format(fake_en.sentence(nb_words=3, variable_nb_words=True)) |
387 | 391 | for item in data['items']: |
388 | 392 | item['description_en'] = fake_en.sentence(nb_words=3, variable_nb_words=True) |
389 | 393 | data['procuringEntity']['name_en'] = fake_en.name() |
390 | 394 | data['procuringEntity']['contactPoint']['name_en'] = fake_en.name() |
391 | - data['procuringEntity']['contactPoint']['availableLanguage'] = "en" | |
392 | 395 | data['procuringEntity']['identifier']['legalName_en'] = fake_en.sentence(nb_words=10, variable_nb_words=True) |
393 | 396 | data['procuringEntity']['kind'] = 'general' |
394 | 397 | return data | ... | ... |
Please
register
or
login
to post a comment