-"""
-))
-def test_load(project_env, def_config, yaml_file_content):
- (project_env.project_dir / 'country_settings.yaml').write_text(yaml_file_content)
-
- country_info._COUNTRY_INFO._info = def_config.load_sub_configuration(
- (project_env.project_dir / 'country_settings.yaml'))
-
- for prop in country_info._COUNTRY_INFO._info.values():
- if 'languages' not in prop:
- prop['languages'] = []
- assert country_info._COUNTRY_INFO._info == {'de': {'partition': 3,
- 'languages': [], 'names': {'name': {'default': 'Deutschland'}}}}
- if 'names' not in prop or prop['names'] is None:
- prop['names'] = {'name': {}}
- assert country_info._COUNTRY_INFO._info == {'de': {'partition': 3,
- 'languages': 'de', 'names': {'name': {}}}}
\ No newline at end of file
+""")
+ country_info._COUNTRY_INFO._info = None
+ country_info.setup_country_config(project_env)
+ assert country_info._COUNTRY_INFO._info == {'de': {'partition': 3,
+ 'languages': ['de'], 'names': {'name': {}}}}