From d167d4b61d487920e9aaa9b6d08659d5b64e7683 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 29 Apr 2025 22:50:52 +0200 Subject: [PATCH] fix: remove negative_description support --- src/rougail/output_json/config.py | 2 -- .../04_5disabled_calculation_variable_multi2.json | 12 ------------ .../04_5disabled_calculation_variable_multi3.json | 12 ------------ .../04_5disabled_calculation_variable_multi2.json | 12 ------------ .../04_5disabled_calculation_variable_multi3.json | 12 ------------ .../04_5disabled_calculation_variable_multi2.json | 14 -------------- .../04_5disabled_calculation_variable_multi3.json | 14 -------------- .../04_5disabled_calculation_variable_multi2.json | 14 -------------- .../04_5disabled_calculation_variable_multi3.json | 14 -------------- .../04_5disabled_calculation_variable_multi2.json | 5 ----- .../04_5disabled_calculation_variable_multi3.json | 9 --------- .../04_5disabled_calculation_variable_multi2.json | 14 -------------- .../04_5disabled_calculation_variable_multi3.json | 14 -------------- .../04_5disabled_calculation_variable_multi2.json | 6 ------ .../04_5disabled_calculation_variable_multi3.json | 6 ------ .../04_5disabled_calculation_variable_multi2.json | 3 --- .../04_5disabled_calculation_variable_multi3.json | 7 ------- .../04_5disabled_calculation_variable_multi2.json | 12 ------------ .../04_5disabled_calculation_variable_multi3.json | 12 ------------ .../04_5disabled_calculation_variable_multi2.json | 6 ------ .../04_5disabled_calculation_variable_multi3.json | 6 ------ 21 files changed, 206 deletions(-) delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_mandatory/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_mandatory/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_read_write/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_read_write/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi3.json delete mode 100644 tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json delete mode 100644 tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json diff --git a/src/rougail/output_json/config.py b/src/rougail/output_json/config.py index 83c397e..ca0c199 100644 --- a/src/rougail/output_json/config.py +++ b/src/rougail/output_json/config.py @@ -36,12 +36,10 @@ json: read_write: description: {_('display variables available in read_write mode')} - negative_description: {_('display variables available in read_only mode')} default: false mandatory: description: {_('test mandatories variables before display in json')} - negative_description: {_('do not test mandatories variables before display in json')} default: true get: diff --git a/tests/results/test/04_5disabled_calculation_variable_multi2.json b/tests/results/test/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable_multi3.json b/tests/results/test/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test_mandatory/04_5disabled_calculation_variable_multi2.json b/tests/results/test_mandatory/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test_mandatory/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test_mandatory/04_5disabled_calculation_variable_multi3.json b/tests/results/test_mandatory/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test_mandatory/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json b/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json b/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi2.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi3.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi2.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index c0f4540..0000000 --- a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail": { - "condition": [] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi3.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index ddcdf63..0000000 --- a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail": { - "condition": [ - "val1", - "val2" - ], - "variable": [] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi2.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi3.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index d1f96ed..0000000 --- a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail": { - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] - } -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index 9aafe71..0000000 --- a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_errors": [ - "The following variables are mandatory but have no value:", - " - rougail.condition (a condition)" - ] -} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index 77977b1..0000000 --- a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_errors": [ - "The following variables are mandatory but have no value:", - " - rougail.variable (a variable)" - ] -} \ No newline at end of file diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable_multi2.json b/tests/results/test_read_write/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index d5c7ca3..0000000 --- a/tests/results/test_read_write/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "condition": [] -} \ No newline at end of file diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable_multi3.json b/tests/results/test_read_write/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index 0f0d548..0000000 --- a/tests/results/test_read_write/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "condition": [ - "val1", - "val2" - ], - "variable": [] -} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi2.json b/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi3.json b/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index f01ce71..0000000 --- a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "condition": [ - "string1", - "string2", - "string3" - ], - "variable": [ - "string1", - "string2", - "string3" - ] -} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json b/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json deleted file mode 100644 index f4aa12c..0000000 --- a/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi2.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_errors": [ - "The following variables are mandatory but have no value:", - " - condition (a condition)" - ] -} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json b/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json deleted file mode 100644 index a96210f..0000000 --- a/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_variable_multi3.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_errors": [ - "The following variables are mandatory but have no value:", - " - variable (a variable)" - ] -} \ No newline at end of file