tiramisu/tests/dict/data/unicode1_multi_requires.py

17 lines
915 B
Python
Raw Normal View History

2019-12-25 20:44:56 +01:00
from tiramisu import StrOption, OptionDescription, Calculation, ParamValue, ParamOption, Params, calc_value
def get_description():
"""generate description for this test
"""
option1 = StrOption('unicode1', "Value 'test' must show Unicode 2")
2019-12-25 20:44:56 +01:00
hidden_property = Calculation(calc_value,
Params(ParamValue('hidden'),
2023-06-19 17:19:07 +02:00
kwargs={'condition': ParamOption(option1),
2019-12-25 20:44:56 +01:00
'expected': ParamValue('test'),
'reverse_condition': ParamValue(True)}))
option2 = StrOption('unicode2', "Unicode 2", properties=(hidden_property,), multi=True)
descr1 = OptionDescription("options", "Common configuration", [option1, option2])
descr = OptionDescription("unicode1_multi_requires", "Unicode multi with requirement", [descr1])
return descr