[core] Update formatting with quotes for List and Group

If the joinChar is NOT space, we use global quotes.
If the joinChar is space, we use quotes per element.
This commit is contained in:
Fabien Castan 2024-02-02 15:16:58 +01:00
parent 092dcfe722
commit a35f1c72e2
2 changed files with 24 additions and 11 deletions

View file

@ -64,9 +64,9 @@ def test_formatting_groups():
n3 = graph.addNewNode('ImageProcessing')
n3._buildCmdVars() # prepare vars for command line creation
name = 'sharpenFilter'
assert n3._cmdVars[name + 'Value'] == 'False:3:1.0:0.0'
assert n3._cmdVars[name + 'Value'] == '"False:3:1.0:0.0"'
name = 'fillHoles'
assert n3._cmdVars[name + 'Value'] == 'False' # Booleans
name = 'noiseFilter'
assert n3._cmdVars[name + 'Value'] == 'False:"uniform":0.0:1.0:True'
assert n3._cmdVars[name + 'Value'] == '"False:uniform:0.0:1.0:True"'