fix: allow_dynoption in group_type()
This commit is contained in:
parent
0513d6677e
commit
6f2f479364
2 changed files with 3 additions and 1 deletions
|
|
@ -515,6 +515,8 @@ def test_dyndescription_subdyn():
|
||||||
assert cfg.option('od.dod2val1.dodval1.st').type() == "string"
|
assert cfg.option('od.dod2val1.dodval1.st').type() == "string"
|
||||||
assert cfg.option('od.dod2.dod').type() == "optiondescription"
|
assert cfg.option('od.dod2.dod').type() == "optiondescription"
|
||||||
assert cfg.option('od.dod2val1.dodval1').type() == "optiondescription"
|
assert cfg.option('od.dod2val1.dodval1').type() == "optiondescription"
|
||||||
|
assert cfg.option('od.dod2.dod').group_type() == "default"
|
||||||
|
assert cfg.option('od.dod2val1.dodval1').group_type() == "default"
|
||||||
#
|
#
|
||||||
with pytest.raises(AttributeOptionError):
|
with pytest.raises(AttributeOptionError):
|
||||||
cfg.option('od.dod2.dod').identifiers()
|
cfg.option('od.dod2.dod').identifiers()
|
||||||
|
|
|
||||||
|
|
@ -1209,7 +1209,7 @@ class TiramisuOption(
|
||||||
subconfig=sub_subconfig,
|
subconfig=sub_subconfig,
|
||||||
)
|
)
|
||||||
|
|
||||||
@option_type("optiondescription")
|
@option_type(["optiondescription", "allow_dynoption"])
|
||||||
def group_type(self):
|
def group_type(self):
|
||||||
"""Get type for an optiondescription (only for optiondescription)"""
|
"""Get type for an optiondescription (only for optiondescription)"""
|
||||||
self._set_subconfig()
|
self._set_subconfig()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue