need new settings when create fake_config
This commit is contained in:
@ -30,8 +30,6 @@ def return_if_val(value):
|
||||
raise ValueError('error')
|
||||
|
||||
|
||||
#FIXME il y a une validation sur default_multi ?
|
||||
|
||||
def test_validator():
|
||||
opt1 = StrOption('opt1', '', validator=return_true, default='val')
|
||||
raises(ValueError, "StrOption('opt2', '', validator=return_false, default='val')")
|
||||
@ -62,6 +60,7 @@ def test_validator_params_key():
|
||||
|
||||
def test_validator_params_option():
|
||||
opt0 = StrOption('opt0', '', default='val')
|
||||
opt0
|
||||
raises(ValueError, "opt1 = StrOption('opt1', '', validator=return_true, validator_params={'': ((opt0, False),)}, default='val')")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user