fix: force_store_value in dynamic family
This commit is contained in:
parent
dda10f76f8
commit
a5870ee2ab
2 changed files with 12 additions and 1 deletions
|
|
@ -344,6 +344,17 @@ def test_prop_dyndescription_force_store_value():
|
||||||
# assert not list_sessions()
|
# assert not list_sessions()
|
||||||
|
|
||||||
|
|
||||||
|
def test_prop_dyndescription_force_store_value_disabled():
|
||||||
|
st = StrOption('st', '', properties=('force_store_value', 'disabled'))
|
||||||
|
dod = DynOptionDescription('dod', '', [st], identifiers=Calculation(return_list))
|
||||||
|
od = OptionDescription('od', '', [dod])
|
||||||
|
od2 = OptionDescription('od', '', [od])
|
||||||
|
cfg = Config(od2)
|
||||||
|
cfg.property.read_write()
|
||||||
|
assert parse_od_get(cfg.value.get()) == {}
|
||||||
|
# assert not list_sessions()
|
||||||
|
|
||||||
|
|
||||||
def test_prop_dyndescription_force_store_value_calculation_prefix():
|
def test_prop_dyndescription_force_store_value_calculation_prefix():
|
||||||
lst = StrOption('lst', '', ['val1', 'val2'], multi=True)
|
lst = StrOption('lst', '', ['val1', 'val2'], multi=True)
|
||||||
st = StrOption('st', '', Calculation(return_list, Params(ParamIdentifier())) , properties=('force_store_value',))
|
st = StrOption('st', '', Calculation(return_list, Params(ParamIdentifier())) , properties=('force_store_value',))
|
||||||
|
|
|
||||||
|
|
@ -176,8 +176,8 @@ class CacheOptionDescription(BaseOption):
|
||||||
parent.get_child(
|
parent.get_child(
|
||||||
doption,
|
doption,
|
||||||
None,
|
None,
|
||||||
True,
|
|
||||||
name=name,
|
name=name,
|
||||||
|
validate_properties=False,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
parents = new_parents
|
parents = new_parents
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue