2019-04-08 08:41:33 +02:00
|
|
|
|
|
|
|
from tiramisu.option import IntOption, OptionDescription
|
|
|
|
|
|
|
|
def get_description():
|
|
|
|
"""generate description for this test
|
|
|
|
"""
|
|
|
|
option = IntOption('integer', "integer 1", 0)
|
|
|
|
descr1 = OptionDescription("options", "Common configuration", [option])
|
|
|
|
descr = OptionDescription("number1_mod_value", "Number with modified value 3 and default value 0", [descr1])
|
|
|
|
return descr
|
|
|
|
|
|
|
|
|
2019-12-24 15:24:20 +01:00
|
|
|
async def get_values(api, allpath=False):
|
2019-04-08 08:41:33 +02:00
|
|
|
if allpath:
|
|
|
|
root = 'number1_mod_value.'
|
|
|
|
else:
|
|
|
|
root = ''
|
2019-12-24 15:24:20 +01:00
|
|
|
await api.option(root + 'options.integer').value.set(3)
|