2019-12-24 15:24:20 +01:00
|
|
|
from tiramisu.option import StrOption, OptionDescription
|
2019-04-08 08:41:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
def get_description():
|
|
|
|
"""generate description for this test
|
|
|
|
"""
|
2019-12-24 15:24:20 +01:00
|
|
|
option1 = StrOption('unicode1', "Value 'test' must show OptionDescription")
|
2019-04-08 08:41:33 +02:00
|
|
|
descr1 = OptionDescription("options", "Common configuration", [option1])
|
2019-12-24 15:24:20 +01:00
|
|
|
option2 = StrOption('unicode2', "Unicode 2")
|
|
|
|
option3 = StrOption('unicode3', "Unicode 3")
|
2019-04-08 08:41:33 +02:00
|
|
|
descr2 = OptionDescription("unicode1", "OptionDescription with 2 options",
|
|
|
|
[option2, option3], requires=[{'option': option1,
|
|
|
|
'expected': u'test',
|
|
|
|
'action': 'hidden',
|
|
|
|
'inverse': True}])
|
|
|
|
descr = OptionDescription("unicode1_optiondescription_requires", "OptionDesciption with requirement", [descr1, descr2])
|
|
|
|
return descr
|