update tests

This commit is contained in:
2020-08-19 17:15:04 +02:00
parent a64131fb03
commit c309ebbd56
3 changed files with 192 additions and 139 deletions

View File

@ -238,11 +238,7 @@ class Dispatcher(register.RegisterDispatcher,
except AttributeError:
if get_config()['global']['debug']:
print_exc()
raise ValueError(_(f'"{uri}" is launch with an unknown: "{key}"'))
except ValueError as err:
if get_config()['global']['debug']:
print_exc()
raise ValueError(_(f'"{uri}" is launch with and invalid value for "{key}": {err}'))
raise ValueError(_(f'unknown parameter in "{uri}": "{key}"'))
# check mandatories options
if check_role and get_config().get('global').get('check_role'):
await self.check_role(subconfig,

View File

@ -115,7 +115,8 @@ async def api(request,
async with await Config(get_messages(current_module_names=risotto_modules,
load_shortarg=True,
current_version=risotto_context.version,
uris=uris)[1]) as config:
uris=uris)[1],
display_name=lambda self, dyn_name, suffix: self.impl_getname()) as config:
await config.property.read_write()
TIRAMISU = await config.option.dict(remotable='none')
return TIRAMISU