diff --git a/src/rougail/user_data_environment/annotator.py b/src/rougail/user_data_environment/annotator.py index 8d56bf5..d0e32cb 100644 --- a/src/rougail/user_data_environment/annotator.py +++ b/src/rougail/user_data_environment/annotator.py @@ -1,6 +1,6 @@ """ Silique (https://www.silique.fr) -Copyright (C) 2024-2025 +Copyright (C) 2024-2026 distribued with GPL-2 or later license diff --git a/src/rougail/user_data_environment/config.py b/src/rougail/user_data_environment/config.py index 29ef1b5..fe4f794 100644 --- a/src/rougail/user_data_environment/config.py +++ b/src/rougail/user_data_environment/config.py @@ -2,7 +2,7 @@ Config file for Rougail-user-data-environment Silique (https://www.silique.fr) -Copyright (C) 2024-2025 +Copyright (C) 2024-2026 distribued with GPL-2 or later license diff --git a/src/rougail/user_data_environment/data.py b/src/rougail/user_data_environment/data.py index 2e7c8ca..103279f 100644 --- a/src/rougail/user_data_environment/data.py +++ b/src/rougail/user_data_environment/data.py @@ -1,6 +1,6 @@ """ Silique (https://www.silique.fr) -Copyright (C) 2024-2025 +Copyright (C) 2024-2026 distribued with GPL-2 or later license diff --git a/src/rougail/user_data_environment/i18n.py b/src/rougail/user_data_environment/i18n.py index 64d109b..381e2cf 100644 --- a/src/rougail/user_data_environment/i18n.py +++ b/src/rougail/user_data_environment/i18n.py @@ -1,6 +1,6 @@ """Internationalisation utilities Silique (https://www.silique.fr) -Copyright (C) 2025 +Copyright (C) 2025-2026 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the diff --git a/tests/errors/results/00_unknown_variable.env b/tests/errors/results/00_unknown_variable.env index 41cd0f6..63303f1 100644 --- a/tests/errors/results/00_unknown_variable.env +++ b/tests/errors/results/00_unknown_variable.env @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "variable or family \"unknown\" does not exist, it will be ignored when loading from environment variable" + "variable or family \"unknown\" does not exist so cannot load \"unknown\", it will be ignored when loading from environment variable" ] } \ No newline at end of file diff --git a/tests/errors/results/05_value_family.env b/tests/errors/results/05_value_family.env index 18d9d3d..db340f9 100644 --- a/tests/errors/results/05_value_family.env +++ b/tests/errors/results/05_value_family.env @@ -3,7 +3,7 @@ "warnings": [ [ [ - "is a family so we cannot set the value \"test\", it will be ignored when loading from environment variable", + "it's a family so we cannot set the value \"test\", it will be ignored when loading from environment variable", "family", null ] diff --git a/tests/errors/results/06_dynamic_unknown.env b/tests/errors/results/06_dynamic_unknown.env index 3a8cbea..6f43faf 100644 --- a/tests/errors/results/06_dynamic_unknown.env +++ b/tests/errors/results/06_dynamic_unknown.env @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "variable or family \"dyn_unknown\" does not exist, it will be ignored when loading from environment variable" + "variable or family \"dyn_unknown\" does not exist so cannot load \"dyn_unknown.variable\", it will be ignored when loading from environment variable" ] } \ No newline at end of file diff --git a/tests/errors/results/07_leadership_unknown.env b/tests/errors/results/07_leadership_unknown.env index 0e5515f..53fdcff 100644 --- a/tests/errors/results/07_leadership_unknown.env +++ b/tests/errors/results/07_leadership_unknown.env @@ -1,6 +1,12 @@ { "errors": [], "warnings": [ - "variable or family \"leadership.unknwon\" does not exist, it will be ignored when loading from environment variable" + [ + [ + "variable or family \"unknwon\" does not exist so cannot load \"leadership.unknwon\", it will be ignored when loading from environment variable", + "leadership", + null + ] + ] ] } \ No newline at end of file diff --git a/tests/errors/results/07_leadership_wrong_len.env b/tests/errors/results/07_leadership_wrong_len.env index f4ff53e..23eec19 100644 --- a/tests/errors/results/07_leadership_wrong_len.env +++ b/tests/errors/results/07_leadership_wrong_len.env @@ -3,7 +3,7 @@ "warnings": [ [ [ - "index \"1\" is greater than the leadership length \"1\" for option \"follower\" in environment variable", + "index \"1\" is greater than the leadership length \"1\" for option \"follower\", it will be ignored when loading from environment variable", "leadership.follower", null ] diff --git a/tests/results/test/04_5disabled_calculation_variable11/errors/all.json b/tests/results/test/04_5disabled_calculation_variable11/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable11/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable11/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable11/file/all.env b/tests/results/test/04_5disabled_calculation_variable11/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable11/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable11/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable11/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable11/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable11/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable11/makedict/all.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/makedict/all.json @@ -0,0 +1 @@ +{} diff --git a/tests/results/test/04_5disabled_calculation_variable11/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable11/makedict/mandatories.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable11/makedict/mandatories.json @@ -0,0 +1 @@ +{} diff --git a/tests/results/test/20_7help_family/errors/all.json b/tests/results/test/20_7help_family/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/20_7help_family/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/20_7help_family/errors/mandatories.json b/tests/results/test/20_7help_family/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/20_7help_family/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/20_7help_family/file/all.env b/tests/results/test/20_7help_family/file/all.env new file mode 100644 index 0000000..2ea5a08 --- /dev/null +++ b/tests/results/test/20_7help_family/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_FAMILY1.VAR="string1" +ROUGAIL_FAMILY2oVAR="string1" diff --git a/tests/results/test/20_7help_family/file/all_exclude.env b/tests/results/test/20_7help_family/file/all_exclude.env new file mode 100644 index 0000000..2ea5a08 --- /dev/null +++ b/tests/results/test/20_7help_family/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_FAMILY1.VAR="string1" +ROUGAIL_FAMILY2oVAR="string1" diff --git a/tests/results/test/20_7help_family/file/mandatories.env b/tests/results/test/20_7help_family/file/mandatories.env new file mode 100644 index 0000000..2ea5a08 --- /dev/null +++ b/tests/results/test/20_7help_family/file/mandatories.env @@ -0,0 +1,2 @@ +ROUGAIL_FAMILY1.VAR="string1" +ROUGAIL_FAMILY2oVAR="string1" diff --git a/tests/results/test/20_7help_family/makedict/all.json b/tests/results/test/20_7help_family/makedict/all.json new file mode 100644 index 0000000..8bbf3c9 --- /dev/null +++ b/tests/results/test/20_7help_family/makedict/all.json @@ -0,0 +1,4 @@ +{ + "family1.var": "string1", + "family2.var": "string1" +} diff --git a/tests/results/test/20_7help_family/makedict/mandatories.json b/tests/results/test/20_7help_family/makedict/mandatories.json new file mode 100644 index 0000000..8bbf3c9 --- /dev/null +++ b/tests/results/test/20_7help_family/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "family1.var": "string1", + "family2.var": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/all.json new file mode 100644 index 0000000..fd1d338 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/all.json @@ -0,0 +1,19 @@ +{ + "errors": [], + "warnings": [ + [ + [ + "variable has property disabled, it will be ignored when loading from environment variable", + "rougail.condition", + null + ] + ], + [ + [ + "family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from environment variable", + "rougail.variable", + null + ] + ] + ] +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/mandatories.json new file mode 100644 index 0000000..f97a035 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/mandatories.json @@ -0,0 +1,12 @@ +{ + "errors": [], + "warnings": [ + [ + [ + "family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from environment variable", + "rougail.variable", + null + ] + ] + ] +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.env new file mode 100644 index 0000000..69d8d24 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAILoVARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all_exclude.env new file mode 100644 index 0000000..69d8d24 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAILoVARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/all.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/all.json @@ -0,0 +1 @@ +{} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/mandatories.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/mandatories.json @@ -0,0 +1 @@ +{} diff --git a/tests/results/test_namespace/20_7help_family/errors/all.json b/tests/results/test_namespace/20_7help_family/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/20_7help_family/errors/mandatories.json b/tests/results/test_namespace/20_7help_family/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/20_7help_family/file/all.env b/tests/results/test_namespace/20_7help_family/file/all.env new file mode 100644 index 0000000..1f29d3c --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.FAMILY1.VAR="string1" +ROUGAILoFAMILY2oVAR="string1" diff --git a/tests/results/test_namespace/20_7help_family/file/all_exclude.env b/tests/results/test_namespace/20_7help_family/file/all_exclude.env new file mode 100644 index 0000000..1f29d3c --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.FAMILY1.VAR="string1" +ROUGAILoFAMILY2oVAR="string1" diff --git a/tests/results/test_namespace/20_7help_family/file/mandatories.env b/tests/results/test_namespace/20_7help_family/file/mandatories.env new file mode 100644 index 0000000..1f29d3c --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/file/mandatories.env @@ -0,0 +1,2 @@ +ROUGAIL.FAMILY1.VAR="string1" +ROUGAILoFAMILY2oVAR="string1" diff --git a/tests/results/test_namespace/20_7help_family/makedict/all.json b/tests/results/test_namespace/20_7help_family/makedict/all.json new file mode 100644 index 0000000..315cf64 --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/makedict/all.json @@ -0,0 +1,4 @@ +{ + "rougail.family1.var": "string1", + "rougail.family2.var": "string1" +} diff --git a/tests/results/test_namespace/20_7help_family/makedict/mandatories.json b/tests/results/test_namespace/20_7help_family/makedict/mandatories.json new file mode 100644 index 0000000..315cf64 --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "rougail.family1.var": "string1", + "rougail.family2.var": "string1" +}