to_dict improvment and add display_name parameter to change impl_get_display_name function
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from .autopath import do_autopath
|
||||
1rom .autopath import do_autopath
|
||||
do_autopath()
|
||||
from .config import config_type, get_config
|
||||
|
||||
@ -127,6 +127,14 @@ def test_validator(config_type):
|
||||
cfg.option('opt2').value.set('val')
|
||||
assert len(w) == 1
|
||||
assert str(w[0].message) == msg
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
cfg.option('opt2').value.get()
|
||||
assert len(w) == 1
|
||||
assert str(w[0].message) == msg
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
cfg.option('opt2').value.get()
|
||||
assert len(w) == 1
|
||||
assert str(w[0].message) == msg
|
||||
|
||||
|
||||
def test_validator_params(config_type):
|
||||
|
Reference in New Issue
Block a user