forked from Infra/risotto
update tests
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user