properties validation not in setting and now launch when modify multi
This commit is contained in:
@ -3,6 +3,7 @@ from py.test import raises
|
||||
|
||||
from tiramisu.config import *
|
||||
from tiramisu.option import *
|
||||
from error import ConfigError
|
||||
|
||||
def make_description():
|
||||
gcoption = ChoiceOption('name', 'GC name', ('ref', 'framework'), 'ref')
|
||||
@ -242,7 +243,7 @@ def test_has_callback():
|
||||
dummy = config.unwrap_from_path('gc.dummy')
|
||||
setting.enable_property('freeze')
|
||||
setting.add_property('frozen', dummy)
|
||||
raises(ConfigError, "config.gc.dummy = True")
|
||||
raises(PropertiesOptionError, "config.gc.dummy = True")
|
||||
|
||||
def test_freeze_and_has_callback_with_setoption():
|
||||
descr = make_description_callback()
|
||||
@ -253,5 +254,5 @@ def test_freeze_and_has_callback_with_setoption():
|
||||
config.cfgimpl_get_settings().enable_property('freeze')
|
||||
dummy = config.unwrap_from_path('gc.dummy')
|
||||
config.cfgimpl_get_settings().add_property('frozen', dummy)
|
||||
raises(ConfigError, "config.gc.setoption('dummy', descr.gc.dummy, True)")
|
||||
raises(PropertiesOptionError, "config.gc.setoption('dummy', descr.gc.dummy, True)")
|
||||
#____________________________________________________________
|
||||
|
Reference in New Issue
Block a user