diff --git a/tests/results/test_namespace/00_2default_calculated_params_permissive/errors/all.json b/tests/results/test_namespace/00_2default_calculated_params_permissive/errors/all.json index b0ae757..03c79bf 100644 --- a/tests/results/test_namespace/00_2default_calculated_params_permissive/errors/all.json +++ b/tests/results/test_namespace/00_2default_calculated_params_permissive/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.leadership.var1 string1 string2 string3 --rougail.leadership.var2 (0, 'string1') --rougail.leadership.var2 0 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"leadership\" has property hidden, so cannot access to \"var1\" (a first variable), it will be ignored when loading from Commandline" + ], + [ + "variable \"var2\" (a first variable) at index \"0\" is hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/00_2default_calculated_params_permissive/file/all.cmdline_opts b/tests/results/test_namespace/00_2default_calculated_params_permissive/file/all.cmdline_opts index 17b947c..da2bf1a 100644 --- a/tests/results/test_namespace/00_2default_calculated_params_permissive/file/all.cmdline_opts +++ b/tests/results/test_namespace/00_2default_calculated_params_permissive/file/all.cmdline_opts @@ -4,12 +4,11 @@ "string2", "string3", "--rougail.leadership.var2", - "(0, 'string1')", - "", - "", + "0", + "string1", "--rougail.leadership.var2", "0", "string1", "--rougail.var2", "string1" -] \ No newline at end of file +] diff --git a/tests/results/test_namespace/00_9default_calculation/makedict/mandatories.json b/tests/results/test_namespace/00_9default_calculation/makedict/mandatories.json index 75c178d..43f3dc8 100644 --- a/tests/results/test_namespace/00_9default_calculation/makedict/mandatories.json +++ b/tests/results/test_namespace/00_9default_calculation/makedict/mandatories.json @@ -1,3 +1,3 @@ { - "rougail.variable": "string_1_True_None" + "rougail.variable": "string_1_True_" } diff --git a/tests/results/test_namespace/01_6string_multi_length/errors/all.json b/tests/results/test_namespace/01_6string_multi_length/errors/all.json new file mode 100644 index 0000000..acba74c --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/01_6string_multi_length/errors/mandatories.json b/tests/results/test_namespace/01_6string_multi_length/errors/mandatories.json new file mode 100644 index 0000000..acba74c --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/01_6string_multi_length/file/all.cmdline_opts b/tests/results/test_namespace/01_6string_multi_length/file/all.cmdline_opts new file mode 100644 index 0000000..fa5cf1b --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/file/all.cmdline_opts @@ -0,0 +1,10 @@ +[ + "--rougail.var1", + "string1", + "string2", + "string3", + "--rougail.var2", + "string1", + "string2", + "string3" +] \ No newline at end of file diff --git a/tests/results/test_namespace/01_6string_multi_length/file/mandatories.cmdline_opts b/tests/results/test_namespace/01_6string_multi_length/file/mandatories.cmdline_opts new file mode 100644 index 0000000..71ea9c9 --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/file/mandatories.cmdline_opts @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace/01_6string_multi_length/makedict/all.json b/tests/results/test_namespace/01_6string_multi_length/makedict/all.json new file mode 100644 index 0000000..fdc23a0 --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/makedict/all.json @@ -0,0 +1,12 @@ +{ + "rougail.var1": [ + "string1", + "string2", + "string3" + ], + "rougail.var2": [ + "string1", + "string2", + "string3" + ] +} diff --git a/tests/results/test_namespace/01_6string_multi_length/makedict/mandatories.json b/tests/results/test_namespace/01_6string_multi_length/makedict/mandatories.json new file mode 100644 index 0000000..63a9d17 --- /dev/null +++ b/tests/results/test_namespace/01_6string_multi_length/makedict/mandatories.json @@ -0,0 +1,11 @@ +{ + "rougail.var1": [ + "val1", + "val2", + "val3" + ], + "rougail.var2": [ + "val4", + "val5" + ] +} diff --git a/tests/results/test_namespace/04_1auto_save_and_hidden/errors/all.json b/tests/results/test_namespace/04_1auto_save_and_hidden/errors/all.json index 625ca6d..3067899 100644 --- a/tests/results/test_namespace/04_1auto_save_and_hidden/errors/all.json +++ b/tests/results/test_namespace/04_1auto_save_and_hidden/errors/all.json @@ -1,8 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var yes" - ], + "errors": [], "warnings": [ - "variable \"rougail.var\" (autosave variable) is hidden, it will be ignored when loading from Commandline" + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1auto_save_and_hidden/errors/mandatories.json b/tests/results/test_namespace/04_1auto_save_and_hidden/errors/mandatories.json index b3382dc..acba74c 100644 --- a/tests/results/test_namespace/04_1auto_save_and_hidden/errors/mandatories.json +++ b/tests/results/test_namespace/04_1auto_save_and_hidden/errors/mandatories.json @@ -1,6 +1,4 @@ { "errors": [], - "warnings": [ - "variable \"rougail.var\" (autosave variable) is hidden, it will be ignored when loading from Commandline" - ] + "warnings": [] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden/errors/mandatories.json b/tests/results/test_namespace/04_1default_calculation_hidden/errors/mandatories.json index 5dbe2d7..3872c9d 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden/errors/mandatories.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_2/errors/mandatories.json b/tests/results/test_namespace/04_1default_calculation_hidden_2/errors/mandatories.json index 5dbe2d7..3872c9d 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_2/errors/mandatories.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_2/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/all.json b/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/all.json index ba24738..9d4bd32 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/all.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/all.json @@ -1,8 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.var1 string1" - ], + "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/mandatories.json b/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/mandatories.json index 5dbe2d7..3872c9d 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/mandatories.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_3/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.var2\" (a second variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_4/errors/all.json b/tests/results/test_namespace/04_1default_calculation_hidden_4/errors/all.json index 3d1a3e0..3067899 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_4/errors/all.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_4/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var1 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/all.json b/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/all.json index afc0ac0..3067899 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/all.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var2 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/mandatories.json b/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/mandatories.json index 5eae543..3872c9d 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/mandatories.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_5/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.var3\" (a third variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_1default_calculation_hidden_6/errors/all.json b/tests/results/test_namespace/04_1default_calculation_hidden_6/errors/all.json index 2069fb6..9d4bd32 100644 --- a/tests/results/test_namespace/04_1default_calculation_hidden_6/errors/all.json +++ b/tests/results/test_namespace/04_1default_calculation_hidden_6/errors/all.json @@ -1,8 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.var2 string1" - ], + "errors": [], "warnings": [ - "variable \"rougail.var3\" (a third variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/all.json index f743334..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/mandatories.json index f743334..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/mandatories.json +++ b/tests/results/test_namespace/04_5disabled_calculation_boolean/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_optional/errors/all.json index 3d1a3e0..3067899 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_optional/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_optional/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var1 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json index 2840b2e..f3ce6c7 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json @@ -1,9 +1,14 @@ { - "errors": [ - "unrecognized arguments: --rougail.var2 string1" - ], + "errors": [], "warnings": [ - "variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from Commandline", - "variable \"rougail.var4\" (a forth variable) is hidden, it will be ignored when loading from Commandline" + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/mandatories.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/mandatories.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable2/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable3/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable3/errors/mandatories.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable3/errors/mandatories.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable3/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable4/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable4/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable4/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable4/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json index f242d14..3067899 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.condition" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json index 5e673a5..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json index c9fa0d7..9d4bd32 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json @@ -1,8 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.condition" - ], + "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json index 5e673a5..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable_multi/errors/all.json index fb1c3d6..3872c9d 100644 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi/errors/all.json +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_multi/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/04_5hidden_calculation2/errors/all.json b/tests/results/test_namespace/04_5hidden_calculation2/errors/all.json index 6b27628..c4b2c5a 100644 --- a/tests/results/test_namespace/04_5hidden_calculation2/errors/all.json +++ b/tests/results/test_namespace/04_5hidden_calculation2/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.var1 string1 --rougail.var2 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_2family_redefine_calculation/errors/all.json b/tests/results/test_namespace/16_2family_redefine_calculation/errors/all.json index f15e84b..5c25e08 100644 --- a/tests/results/test_namespace/16_2family_redefine_calculation/errors/all.json +++ b/tests/results/test_namespace/16_2family_redefine_calculation/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from Commandline" + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_2family_redefine_calculation/errors/mandatories.json b/tests/results/test_namespace/16_2family_redefine_calculation/errors/mandatories.json index f15e84b..5c25e08 100644 --- a/tests/results/test_namespace/16_2family_redefine_calculation/errors/mandatories.json +++ b/tests/results/test_namespace/16_2family_redefine_calculation/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from Commandline" + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_2family_redefine_disabled/errors/all.json b/tests/results/test_namespace/16_2family_redefine_disabled/errors/all.json index f15e84b..5c25e08 100644 --- a/tests/results/test_namespace/16_2family_redefine_disabled/errors/all.json +++ b/tests/results/test_namespace/16_2family_redefine_disabled/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from Commandline" + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_2family_redefine_disabled/errors/mandatories.json b/tests/results/test_namespace/16_2family_redefine_disabled/errors/mandatories.json index f15e84b..5c25e08 100644 --- a/tests/results/test_namespace/16_2family_redefine_disabled/errors/mandatories.json +++ b/tests/results/test_namespace/16_2family_redefine_disabled/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" will be ignored when loading from Commandline" + [ + "family \"family\" has property disabled, so cannot access to \"var1\", it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_5exists_redefine/errors/all.json b/tests/results/test_namespace/16_5exists_redefine/errors/all.json index 3d1a3e0..3067899 100644 --- a/tests/results/test_namespace/16_5exists_redefine/errors/all.json +++ b/tests/results/test_namespace/16_5exists_redefine/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var1 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/16_5redefine_hidden/errors/all.json b/tests/results/test_namespace/16_5redefine_hidden/errors/all.json index e211313..3067899 100644 --- a/tests/results/test_namespace/16_5redefine_hidden/errors/all.json +++ b/tests/results/test_namespace/16_5redefine_hidden/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.variable string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/17_5redefine_leadership/errors/all.json b/tests/results/test_namespace/17_5redefine_leadership/errors/all.json index 50350c5..3ad79fd 100644 --- a/tests/results/test_namespace/17_5redefine_leadership/errors/all.json +++ b/tests/results/test_namespace/17_5redefine_leadership/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.leader.leader string1 string2 string3" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/20_0family_underscore/errors/all.json b/tests/results/test_namespace/20_0family_underscore/errors/all.json index e59aade..835b44b 100644 --- a/tests/results/test_namespace/20_0family_underscore/errors/all.json +++ b/tests/results/test_namespace/20_0family_underscore/errors/all.json @@ -1,6 +1,23 @@ { - "errors": [ - "unrecognized arguments: --rougail.my_family.type.my_variable string1 --rougail.my_family.description.my_variable string1 --rougail.my_family.help.my_variable string1 --rougail.my_family.mode.my_variable string1 --rougail.my_family.hidden.my_variable string1 --rougail.my_family.disabled.my_variable string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ], + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ], + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ], + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ], + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ], + [ + "family \"my_family\" (This is a great family) has property disabled and hidden, so cannot access to \"my_variable\", it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family/errors/all.json b/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family/errors/all.json index b8731ac..809695f 100644 --- a/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family/errors/all.json +++ b/tests/results/test_namespace/24_0family_hidden_condition_variable_sub_family/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.family.subfamily.var1 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"family\" (possibly hidden family) has property hidden, so cannot access to \"var1\" (a variable), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/24_0family_hidden_condition_with_variable/errors/all.json b/tests/results/test_namespace/24_0family_hidden_condition_with_variable/errors/all.json index 88cd314..3067899 100644 --- a/tests/results/test_namespace/24_0family_hidden_condition_with_variable/errors/all.json +++ b/tests/results/test_namespace/24_0family_hidden_condition_with_variable/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.family.variable string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/24_family_disabled_var_hidden/errors/all.json b/tests/results/test_namespace/24_family_disabled_var_hidden/errors/all.json index 55a5068..9d095e4 100644 --- a/tests/results/test_namespace/24_family_disabled_var_hidden/errors/all.json +++ b/tests/results/test_namespace/24_family_disabled_var_hidden/errors/all.json @@ -1,8 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.family.var2 string1" - ], + "errors": [], "warnings": [ - "family \"rougail.family\" is disabled, \"rougail.family.var1\" (A description) will be ignored when loading from Commandline" + [ + "family \"family\" has property disabled, so cannot access to \"var1\" (A description), it will be ignored when loading from Commandline" + ], + [ + "family \"family\" has property disabled, so cannot access to \"var2\" (A description), it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/24_family_disabled_var_hidden/errors/mandatories.json b/tests/results/test_namespace/24_family_disabled_var_hidden/errors/mandatories.json index efe2691..b77cd14 100644 --- a/tests/results/test_namespace/24_family_disabled_var_hidden/errors/mandatories.json +++ b/tests/results/test_namespace/24_family_disabled_var_hidden/errors/mandatories.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.family.var2 string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"family\" has property disabled, so cannot access to \"var2\" (A description), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/44_0leadership_hidden/errors/all.json b/tests/results/test_namespace/44_0leadership_hidden/errors/all.json index 50350c5..3ad79fd 100644 --- a/tests/results/test_namespace/44_0leadership_hidden/errors/all.json +++ b/tests/results/test_namespace/44_0leadership_hidden/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.leader.leader string1 string2 string3" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/44_0leadership_leader_hidden/errors/all.json b/tests/results/test_namespace/44_0leadership_leader_hidden/errors/all.json index 50350c5..3ad79fd 100644 --- a/tests/results/test_namespace/44_0leadership_leader_hidden/errors/all.json +++ b/tests/results/test_namespace/44_0leadership_leader_hidden/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.leader.leader string1 string2 string3" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/44_1leadership_append_hidden_follower/errors/all.json b/tests/results/test_namespace/44_1leadership_append_hidden_follower/errors/all.json index 50350c5..3ad79fd 100644 --- a/tests/results/test_namespace/44_1leadership_append_hidden_follower/errors/all.json +++ b/tests/results/test_namespace/44_1leadership_append_hidden_follower/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.leader.leader string1 string2 string3" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"leader\" (a leadership) has property hidden, so cannot access to \"leader\" (a leader), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/44_4disabled_calcultion_follower_index/errors/all.json b/tests/results/test_namespace/44_4disabled_calcultion_follower_index/errors/all.json index 6e4988b..f0174ac 100644 --- a/tests/results/test_namespace/44_4disabled_calcultion_follower_index/errors/all.json +++ b/tests/results/test_namespace/44_4disabled_calcultion_follower_index/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.leadership.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from Commandline" + [ + "variable \"follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/44_6leadership_follower_disabled_calculation/errors/mandatories.json b/tests/results/test_namespace/44_6leadership_follower_disabled_calculation/errors/mandatories.json index e261b69..0ddd893 100644 --- a/tests/results/test_namespace/44_6leadership_follower_disabled_calculation/errors/mandatories.json +++ b/tests/results/test_namespace/44_6leadership_follower_disabled_calculation/errors/mandatories.json @@ -1,8 +1,14 @@ { "errors": [], "warnings": [ - "variable \"rougail.leader.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from Commandline", - "variable \"rougail.leader.follower\" (a follower) at index \"1\" is disabled, it will be ignored when loading from Commandline", - "variable \"rougail.leader.follower\" (a follower) at index \"2\" is disabled, it will be ignored when loading from Commandline" + [ + "variable \"follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from Commandline" + ], + [ + "variable \"follower\" (a follower) at index \"1\" is disabled, it will be ignored when loading from Commandline" + ], + [ + "variable \"follower\" (a follower) at index \"2\" is disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_dynamic_source_hidden/errors/all.json b/tests/results/test_namespace/60_0family_dynamic_source_hidden/errors/all.json index 8d654af..3067899 100644 --- a/tests/results/test_namespace/60_0family_dynamic_source_hidden/errors/all.json +++ b/tests/results/test_namespace/60_0family_dynamic_source_hidden/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.var val1 val2" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_hidden/errors/all.json b/tests/results/test_namespace/60_0family_hidden/errors/all.json index 5195115..183631e 100644 --- a/tests/results/test_namespace/60_0family_hidden/errors/all.json +++ b/tests/results/test_namespace/60_0family_hidden/errors/all.json @@ -1,6 +1,8 @@ { - "errors": [ - "unrecognized arguments: --rougail.family.var string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"family\" (a family) has property hidden, so cannot access to \"var\" (a variable), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/all.json new file mode 100644 index 0000000..acba74c --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/mandatories.json b/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/mandatories.json new file mode 100644 index 0000000..acba74c --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/file/all.cmdline_opts b/tests/results/test_namespace/60_5family_dynamic_calc_description/file/all.cmdline_opts new file mode 100644 index 0000000..ffe7f06 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/file/all.cmdline_opts @@ -0,0 +1,12 @@ +[ + "--rougail.dynval1.var", + "string1", + "--rougail.dynval2.var", + "string1", + "--rougail.var1", + "string1", + "--rougail.var2", + "string1", + "string2", + "string3" +] \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/file/mandatories.cmdline_opts b/tests/results/test_namespace/60_5family_dynamic_calc_description/file/mandatories.cmdline_opts new file mode 100644 index 0000000..a2db15c --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/file/mandatories.cmdline_opts @@ -0,0 +1,8 @@ +[ + "--rougail.dynval1.var", + "string1", + "--rougail.dynval2.var", + "string1", + "--rougail.var1", + "string1" +] \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/all.json new file mode 100644 index 0000000..7d355a0 --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/all.json @@ -0,0 +1,10 @@ +{ + "rougail.dynval1.var": "string1", + "rougail.dynval2.var": "string1", + "rougail.var1": "string1", + "rougail.var2": [ + "string1", + "string2", + "string3" + ] +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/mandatories.json b/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/mandatories.json new file mode 100644 index 0000000..81e7faf --- /dev/null +++ b/tests/results/test_namespace/60_5family_dynamic_calc_description/makedict/mandatories.json @@ -0,0 +1,9 @@ +{ + "rougail.dynval1.var": "string1", + "rougail.dynval2.var": "string1", + "rougail.var1": "string1", + "rougail.var2": [ + "string1", + "string1" + ] +} diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/all.json index 05c64bd..3872c9d 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/all.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json index 05c64bd..3872c9d 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled/errors/mandatories.json @@ -1,6 +1,8 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2/errors/all.json index e3fa121..49a6911 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_disabled2/errors/all.json @@ -1,7 +1,11 @@ { "errors": [], "warnings": [ - "variable \"rougail.dynval1.var\" (A dynamic variable) is disabled, it will be ignored when loading from Commandline", - "variable \"rougail.dynval2.var\" (A dynamic variable) is disabled, it will be ignored when loading from Commandline" + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ], + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ] ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden/errors/all.json index 1b00dca..c4b2c5a 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.dynval1.var string1 --rougail.dynval2.var string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json index 79e6640..c4b2c5a 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_boolean/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.dynval1.var --rougail.dynval2.var" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json index fb4e854..c4b2c5a 100644 --- a/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_calc_suffix_hidden_multi/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.dynval1.var string1 string2 string3 --rougail.dynval2.var string1 string2 string3" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ], + [ + "variable has property hidden, it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/results/test_namespace/60_5family_dynamic_hidden_suffix/errors/all.json b/tests/results/test_namespace/60_5family_dynamic_hidden_suffix/errors/all.json index 29471ec..4dac160 100644 --- a/tests/results/test_namespace/60_5family_dynamic_hidden_suffix/errors/all.json +++ b/tests/results/test_namespace/60_5family_dynamic_hidden_suffix/errors/all.json @@ -1,6 +1,11 @@ { - "errors": [ - "unrecognized arguments: --rougail.dynval2.var string1 --rougail.dynval2.family.var string1" - ], - "warnings": [] + "errors": [], + "warnings": [ + [ + "family \"dynval2\" (a dynamic family) has property hidden, so cannot access to \"var\" (a variable), it will be ignored when loading from Commandline" + ], + [ + "family \"dynval2\" (a dynamic family) has property hidden, so cannot access to \"var\" (a new variable), it will be ignored when loading from Commandline" + ] + ] } \ No newline at end of file diff --git a/tests/test_load.py b/tests/test_load.py index 77ca507..860f4e5 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -61,7 +61,11 @@ def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=Fals ################################## # loads variables in the tiramisu config generated_user_data = RougailUserData(config, rougailconfig=rougailconfig, arguments=arguments, prog="test_load").run() - errors = rougail.user_datas(generated_user_data) + errors = rougail.user_data(generated_user_data) + for l, data in errors.items(): + for i, d in enumerate(data): + if isinstance(d, dict): + data[i] = list(d) #expected output expected_filename = Path('tests') / 'results' / dir_name / test_dir.name / 'makedict' / f'{level}.json' with expected_filename.open() as json_file: @@ -140,7 +144,7 @@ def values_to_commandline(values): # it's a leader leader_values.append(sub_val) if isinstance(sub_val, list) or (isinstance(sub_val, tuple) and isinstance(sub_val[1], list)): - raise SubMulti("submulti is not allowed for environment user_datas") + raise SubMulti("submulti is not allowed for environment user_data") if leader_values: yield "--" + (sub_root_path + '.' + k) for val in value: