2019-04-08 08:41:33 +02:00
|
|
|
"""just a multi unicode option
|
|
|
|
"""
|
|
|
|
from tiramisu.option import StrOption, OptionDescription
|
|
|
|
|
|
|
|
def get_description():
|
|
|
|
"""generate description for this test
|
|
|
|
"""
|
|
|
|
option = StrOption('unicode', "String 1", ['a', 'b'], multi=True)
|
|
|
|
descr1 = OptionDescription("options", "Common configuration", [option])
|
|
|
|
descr = OptionDescription("unicode1_multi_mod_value", "Multi unicode with default value 'a' and 'b' and modified value 'c', 'd' and 'e'", [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 = 'unicode1_multi_mod_value.'
|
|
|
|
else:
|
|
|
|
root = ''
|
2019-12-24 15:24:20 +01:00
|
|
|
await api.option(root + 'options.unicode').value.set(['c', 'd', 'e'])
|