Compare commits
2 commits
6c62b78808
...
bbb584bc39
| Author | SHA1 | Date | |
|---|---|---|---|
| bbb584bc39 | |||
| 127e5b953b |
41 changed files with 159 additions and 27 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 0.2.0a19 (2026-01-21)
|
||||
|
||||
### Fix
|
||||
|
||||
- update tests
|
||||
|
||||
## 0.2.0a18 (2025-12-30)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.user_data_yaml"
|
||||
version = "0.2.0a18"
|
||||
version = "0.2.0a19"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail user_data yaml"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.0a18"
|
||||
__version__ = "0.2.0a19"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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\""
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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\""
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -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\""
|
||||
]
|
||||
}
|
||||
|
|
@ -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\""
|
||||
]
|
||||
}
|
||||
|
|
@ -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": []
|
||||
}
|
||||
|
|
@ -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": []
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -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": []
|
||||
}
|
||||
|
|
@ -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": []
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"rougail": {
|
||||
"condition": true,
|
||||
"variable": "string1"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"rougail": {
|
||||
"condition": true,
|
||||
"variable": "string1"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rougail": {
|
||||
"variable": "string1"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
4
tests/results/20_7help_family/errors/all.json
Normal file
4
tests/results/20_7help_family/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
4
tests/results/20_7help_family/errors/mandatories.json
Normal file
4
tests/results/20_7help_family/errors/mandatories.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
10
tests/results/20_7help_family/file/all.yml
Normal file
10
tests/results/20_7help_family/file/all.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail": {
|
||||
"family1": {
|
||||
"var": "string1"
|
||||
},
|
||||
"family2": {
|
||||
"var": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
10
tests/results/20_7help_family/file/all_exclude.yml
Normal file
10
tests/results/20_7help_family/file/all_exclude.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail": {
|
||||
"family1": {
|
||||
"var": "string1"
|
||||
},
|
||||
"family2": {
|
||||
"var": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
10
tests/results/20_7help_family/file/mandatories.yml
Normal file
10
tests/results/20_7help_family/file/mandatories.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"rougail": {
|
||||
"family1": {
|
||||
"var": "string1"
|
||||
},
|
||||
"family2": {
|
||||
"var": "string1"
|
||||
}
|
||||
}
|
||||
}
|
||||
4
tests/results/20_7help_family/makedict/all.json
Normal file
4
tests/results/20_7help_family/makedict/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"rougail.family1.var": "string1",
|
||||
"rougail.family2.var": "string1"
|
||||
}
|
||||
4
tests/results/20_7help_family/makedict/mandatories.json
Normal file
4
tests/results/20_7help_family/makedict/mandatories.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"rougail.family1.var": "string1",
|
||||
"rougail.family2.var": "string1"
|
||||
}
|
||||
|
|
@ -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"',
|
||||
]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue