mandatory_warnings: PropertiesOptionError in optiondescription stop validate mandatory warnings for followers options

This commit is contained in:
2018-09-08 22:51:27 +02:00
parent aa9aef6e78
commit 7bfa6679e3
2 changed files with 10 additions and 8 deletions

View File

@ -12,6 +12,8 @@ from tiramisu.setting import groups
def make_description():
stro = StrOption('str', '')
subdescr = OptionDescription('sub', '', [stro], properties=('disabled',))
stroption = StrOption('str', 'Test string option', default="abc",
properties=('mandatory', ))
stroption1 = StrOption('str1', 'Test string option',
@ -22,7 +24,7 @@ def make_description():
properties=('mandatory', ))
stroption4 = StrOption('str4', 'Test string option', multi=True,
properties=('mandatory', ), allow_empty_list=True)
descr = OptionDescription('tiram', '', [stroption, stroption1, stroption2, stroption3, stroption4])
descr = OptionDescription('tiram', '', [subdescr, stroption, stroption1, stroption2, stroption3, stroption4])
return descr