[core] attribute: new initValue, independant from the resetToDefaultValue

Avoid to evaluate the default value if we don't need to.
This commit is contained in:
Fabien Castan 2024-06-13 23:55:53 +02:00
parent 0c3426250a
commit 020dbecc68
6 changed files with 37 additions and 29 deletions

View file

@ -24,7 +24,7 @@ def test_formatting_listOfFiles():
n1.featuresFolders.extend("single value with space")
assert n1.featuresFolders.getValueStr() == '"single value with space"'
n1.featuresFolders.resetValue()
n1.featuresFolders.resetToDefaultValue()
assert n1.featuresFolders.getValueStr() == ''
n1.featuresFolders.extend(inputImages)