settings are in a separate object

This commit is contained in:
gwen
2012-11-19 10:45:03 +01:00
parent 5969eaa2d6
commit 86f9096937
6 changed files with 143 additions and 164 deletions

View File

@ -4,6 +4,7 @@ from py.test import raises
from tiramisu.config import *
from tiramisu.option import *
from tiramisu.setting import settings
def make_description():
gcoption = ChoiceOption('name', 'GC name', ['ref', 'framework'], 'ref')
@ -39,6 +40,6 @@ def test_root_config_answers_ok():
boolop = BoolOption('boolop', 'Test boolean option op', default=True)
descr = OptionDescription('tiramisu', '', [gcdummy, boolop])
cfg = Config(descr)
cfg.cfgimpl_enable_property('hiddend') #cfgimpl_hide()
settings.enable_property('hiddend') #cfgimpl_hide()
assert cfg.dummy == False
assert cfg.boolop == True