From 8506ec673b3d7801e7cfa15c9f911264813bf06ac71dd4aaff381fee60c05694 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 20 Jan 2026 12:38:25 +0100 Subject: [PATCH] fix: update tests --- src/rougail/user_data_commandline/__init__.py | 2 +- src/rougail/user_data_commandline/config.py | 2 +- src/rougail/user_data_commandline/i18n.py | 2 +- .../errors/all.json | 11 +++++++++++ .../errors/mandatories.json | 8 ++++++++ .../file/all.cmdline_opts | 5 +++++ .../file/mandatories.cmdline_opts | 4 ++++ .../makedict/all.json | 1 + .../makedict/mandatories.json | 1 + .../test_namespace/20_7help_family/errors/all.json | 4 ++++ .../20_7help_family/errors/mandatories.json | 4 ++++ .../20_7help_family/file/all.cmdline_opts | 6 ++++++ .../20_7help_family/file/mandatories.cmdline_opts | 6 ++++++ .../test_namespace/20_7help_family/makedict/all.json | 4 ++++ .../20_7help_family/makedict/mandatories.json | 4 ++++ 15 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/errors/all.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/errors/mandatories.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.cmdline_opts create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.cmdline_opts create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/all.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable11/makedict/mandatories.json create mode 100644 tests/results/test_namespace/20_7help_family/errors/all.json create mode 100644 tests/results/test_namespace/20_7help_family/errors/mandatories.json create mode 100644 tests/results/test_namespace/20_7help_family/file/all.cmdline_opts create mode 100644 tests/results/test_namespace/20_7help_family/file/mandatories.cmdline_opts create mode 100644 tests/results/test_namespace/20_7help_family/makedict/all.json create mode 100644 tests/results/test_namespace/20_7help_family/makedict/mandatories.json diff --git a/src/rougail/user_data_commandline/__init__.py b/src/rougail/user_data_commandline/__init__.py index 7be358b..71bc588 100644 --- a/src/rougail/user_data_commandline/__init__.py +++ b/src/rougail/user_data_commandline/__init__.py @@ -1,6 +1,6 @@ """ 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/src/rougail/user_data_commandline/config.py b/src/rougail/user_data_commandline/config.py index f54ad4d..8a35e1f 100644 --- a/src/rougail/user_data_commandline/config.py +++ b/src/rougail/user_data_commandline/config.py @@ -1,6 +1,6 @@ """ 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/src/rougail/user_data_commandline/i18n.py b/src/rougail/user_data_commandline/i18n.py index 5d15b07..56875bf 100644 --- a/src/rougail/user_data_commandline/i18n.py +++ b/src/rougail/user_data_commandline/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/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..9bdfba4 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/all.json @@ -0,0 +1,11 @@ +{ + "errors": [], + "warnings": [ + [ + "variable has property disabled, it will be ignored when loading from Commandline" + ], + [ + "family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from Commandline" + ] + ] +} \ 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..f576fd6 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/errors/mandatories.json @@ -0,0 +1,8 @@ +{ + "errors": [], + "warnings": [ + [ + "family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from Commandline" + ] + ] +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.cmdline_opts b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.cmdline_opts new file mode 100644 index 0000000..af6fb88 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/all.cmdline_opts @@ -0,0 +1,5 @@ +[ + "--rougail.condition", + "--rougail.variable", + "string1" +] \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.cmdline_opts b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.cmdline_opts new file mode 100644 index 0000000..cf11913 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable11/file/mandatories.cmdline_opts @@ -0,0 +1,4 @@ +[ + "--rougail.variable", + "string1" +] \ No newline at end of file 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..d31a3bc --- /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..d31a3bc --- /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..acba74c --- /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..acba74c --- /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.cmdline_opts b/tests/results/test_namespace/20_7help_family/file/all.cmdline_opts new file mode 100644 index 0000000..df08fa8 --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/file/all.cmdline_opts @@ -0,0 +1,6 @@ +[ + "--rougail.family1.var", + "string1", + "--rougail.family2.var", + "string1" +] \ No newline at end of file diff --git a/tests/results/test_namespace/20_7help_family/file/mandatories.cmdline_opts b/tests/results/test_namespace/20_7help_family/file/mandatories.cmdline_opts new file mode 100644 index 0000000..df08fa8 --- /dev/null +++ b/tests/results/test_namespace/20_7help_family/file/mandatories.cmdline_opts @@ -0,0 +1,6 @@ +[ + "--rougail.family1.var", + "string1", + "--rougail.family2.var", + "string1" +] \ No newline at end of file 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..2bf3164 --- /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..2bf3164 --- /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" +}