fix: update tests

This commit is contained in:
egarette@silique.fr 2026-01-20 12:36:27 +01:00
parent 6c62b78808
commit 127e5b953b
38 changed files with 151 additions and 25 deletions

View file

@ -1,6 +1,6 @@
"""
Silique (https://www.silique.fr)
Copyright (C) 2024-2025
Copyright (C) 2024-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

View file

@ -2,7 +2,7 @@
Config yaml for Rougail-user-data
Silique (https://www.silique.fr)
Copyright (C) 2024-2025
Copyright (C) 2024-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

View file

@ -1,6 +1,6 @@
"""Internationalisation utilities
Silique (https://www.silique.fr)
Copyright (C) 2024-2025
Copyright (C) 2024-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

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"unknown\" does not exist, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/00_unknown_variable.yaml\""
"variable or family \"unknown\" does not exist so cannot load \"unknown\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/00_unknown_variable.yaml\""
]
}

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"is a family so we cannot set the value \"test\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/05_value_family.yaml\"",
"it's a family so we cannot set the value \"test\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/05_value_family.yaml\"",
"family",
null
]

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"dyn_unknown\" does not exist, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/06_dynamic_unknown.yaml\""
"variable or family \"dyn_unknown\" does not exist so cannot load \"dyn_unknown.variable\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/06_dynamic_unknown.yaml\""
]
}

View file

@ -1,6 +1,12 @@
{
"errors": [],
"warnings": [
"variable or family \"leadership.unknwon\" does not exist, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_unknown.yaml\""
[
[
"variable or family \"unknwon\" does not exist so cannot load \"leadership.unknwon\", it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/07_leadership_unknown.yaml\"",
"leadership",
null
]
]
]
}

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"is a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"it's a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"a_family",
null
]

View file

@ -2,7 +2,7 @@
"errors": [
[
[
"is a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"it's a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"a_family",
null
]

View file

@ -2,7 +2,7 @@
"errors": [
[
[
"is a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"it's a family so we cannot set the value \"oups\", it has been loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"a_family",
null
]

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"is a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"it's a family so we cannot set the value \"oups\", it will be ignored when loading from the YAML file \"tests/invalid/invalid_family/00.yml\"",
"a_family",
null
]

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"the value \"[True]\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"the value \"True\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"a_family.a_boolean",
null
]

View file

@ -2,7 +2,7 @@
"errors": [
[
[
"the value \"[True]\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"the value \"True\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"a_family.a_boolean",
null
]

View file

@ -2,7 +2,7 @@
"errors": [
[
[
"the value \"[True]\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"the value \"True\" is an invalid boolean, it must not be a list, it has been loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"a_family.a_boolean",
null
]

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"the value \"[True]\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"the value \"True\" is an invalid boolean, it must not be a list, it will be ignored when loading from the YAML file \"tests/invalid/invalid_multi2/00.yml\"",
"a_family.a_boolean",
null
]

View file

@ -1,6 +1,12 @@
{
"errors": [],
"warnings": [
"variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\""
[
[
"variable or family \"unknown\" does not exist so cannot load \"a_family.unknown\", it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\"",
"a_family",
null
]
]
]
}

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"an_unkown_family\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\""
"variable or family \"an_unkown_family\" does not exist so cannot load \"an_unkown_family.unknown\", it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\""
]
}

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"an_unkown_family\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\""
"variable or family \"an_unkown_family\" does not exist so cannot load \"an_unkown_family.unknown\", it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\""
]
}

View file

@ -1,6 +1,6 @@
{
"errors": [
"variable or family \"an_unkown_family\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\""
"variable or family \"an_unkown_family\" does not exist so cannot load \"an_unkown_family.unknown\", it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\""
],
"warnings": []
}

View file

@ -1,6 +1,6 @@
{
"errors": [
"variable or family \"an_unkown_family\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown2/00.yml\""
"variable or family \"an_unkown_family\" does not exist so cannot load \"an_unkown_family.unknown\", it has been loading from the YAML file \"tests/invalid/unknown2/00.yml\""
],
"warnings": []
}

View file

@ -1,6 +1,12 @@
{
"errors": [],
"warnings": [
"variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\""
[
[
"variable or family \"unknown\" does not exist so cannot load \"a_family.unknown\", it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\"",
"a_family",
null
]
]
]
}

View file

@ -1,6 +1,12 @@
{
"errors": [
"variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\""
[
[
"variable or family \"unknown\" does not exist so cannot load \"a_family.unknown\", it has been loading from the YAML file \"tests/invalid/unknown/00.yml\"",
"a_family",
null
]
]
],
"warnings": []
}

View file

@ -1,6 +1,12 @@
{
"errors": [
"variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\""
[
[
"variable or family \"unknown\" does not exist so cannot load \"a_family.unknown\", it has been loading from the YAML file \"tests/invalid/unknown/00.yml\"",
"a_family",
null
]
]
],
"warnings": []
}

View file

@ -0,0 +1,19 @@
{
"errors": [],
"warnings": [
[
[
"variable has property disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable11/file/all.yml\"",
"rougail.condition",
null
]
],
[
[
"family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable11/file/all.yml\"",
"rougail.variable",
null
]
]
]
}

View file

@ -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 the YAML file \"tests/results/04_5disabled_calculation_variable11/file/mandatories.yml\"",
"rougail.variable",
null
]
]
]
}

View file

@ -0,0 +1,6 @@
{
"rougail": {
"condition": true,
"variable": "string1"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail": {
"condition": true,
"variable": "string1"
}
}

View file

@ -0,0 +1,5 @@
{
"rougail": {
"variable": "string1"
}
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,10 @@
{
"rougail": {
"family1": {
"var": "string1"
},
"family2": {
"var": "string1"
}
}
}

View file

@ -0,0 +1,10 @@
{
"rougail": {
"family1": {
"var": "string1"
},
"family2": {
"var": "string1"
}
}
}

View file

@ -0,0 +1,10 @@
{
"rougail": {
"family1": {
"var": "string1"
},
"family2": {
"var": "string1"
}
}
}

View file

@ -0,0 +1,4 @@
{
"rougail.family1.var": "string1",
"rougail.family2.var": "string1"
}

View file

@ -0,0 +1,4 @@
{
"rougail.family1.var": "string1",
"rougail.family2.var": "string1"
}

View file

@ -139,7 +139,7 @@ def test_errors():
'cannot load variable path "dynVal1.var", the identifier "Val1" is not '
'valid in the YAML file '
'"tests/errors/60_0family_dynamic_upper_char/file/all_exclude.yml"',
'variable or family "dynVal1" does not exist, it will be ignored when '
'variable or family "dynVal1" does not exist so cannot load "dynVal1.var", it will be ignored when '
'loading from the YAML file '
'"tests/errors/60_0family_dynamic_upper_char/file/all_exclude.yml"',
]}
@ -159,7 +159,7 @@ def test_errors_2():
'cannot load variable path "dynVal1.var", the identifier "Val1" is not '
'valid in the YAML file '
'"tests/errors/60_0family_dynamic_upper_char2/file/all_exclude.yml"',
'variable or family "dynVal1" does not exist, it will be ignored when '
'variable or family "dynVal1" does not exist so cannot load "dynVal1.var", it will be ignored when '
'loading from the YAML file '
'"tests/errors/60_0family_dynamic_upper_char2/file/all_exclude.yml"',
]}