Compare commits

..

No commits in common. "bbb584bc39b6ce24667a757b9c39410b3a2cb47c" and "6c62b788088f6b1f816b7ab23a019e6c0dcf178e" have entirely different histories.

41 changed files with 27 additions and 159 deletions

View file

@ -1,9 +1,3 @@
## 0.2.0a19 (2026-01-21)
### Fix
- update tests
## 0.2.0a18 (2025-12-30)
### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.user_data_yaml"
version = "0.2.0a19"
version = "0.2.0a18"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail user_data yaml"

View file

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

View file

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

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"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\"",
"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\"",
"family",
null
]

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"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\""
"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\""
]
}

View file

@ -1,12 +1,6 @@
{
"errors": [],
"warnings": [
[
[
"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
]
]
"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\""
]
}

View file

@ -3,7 +3,7 @@
"warnings": [
[
[
"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\"",
"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\"",
"a_family",
null
]

View file

@ -2,7 +2,7 @@
"errors": [
[
[
"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\"",
"is 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": [
[
[
"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\"",
"is 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": [
[
[
"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\"",
"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\"",
"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,12 +1,6 @@
{
"errors": [],
"warnings": [
[
[
"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
]
]
"variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\""
]
}

View file

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

View file

@ -1,12 +1,6 @@
{
"errors": [],
"warnings": [
[
[
"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
]
]
"variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\""
]
}

View file

@ -1,12 +1,6 @@
{
"errors": [
[
[
"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
]
]
"variable or family \"a_family.unknown\" does not exist, it has been loading from the YAML file \"tests/invalid/unknown/00.yml\""
],
"warnings": []
}

View file

@ -1,12 +1,6 @@
{
"errors": [
[
[
"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
]
]
"variable or family \"a_family.unknown\" does not exist, it will be ignored when loading from the YAML file \"tests/invalid/unknown/00.yml\""
],
"warnings": []
}

View file

@ -1,19 +0,0 @@
{
"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

@ -1,12 +0,0 @@
{
"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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +0,0 @@
{
"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 so cannot load "dynVal1.var", it will be ignored when '
'variable or family "dynVal1" does not exist, 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 so cannot load "dynVal1.var", it will be ignored when '
'variable or family "dynVal1" does not exist, it will be ignored when '
'loading from the YAML file '
'"tests/errors/60_0family_dynamic_upper_char2/file/all_exclude.yml"',
]}