Commit bc7f37bf5223d7e124f43058de9cabd40bc507f8

Authored by Andrew Leitsius
Committed by GitHub
2 parents 027fa7de 60eb0535

Merge pull request #247 from gorserg/devel_fix_UA

Add availableLanguage only if procurementMethodType not competitiveDialogueEU
@@ -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