Compare commits

...

4 commits

Author SHA1 Message Date
61dc196e85 bump: version 0.2.0a13 → 0.2.0a14 2025-10-10 08:10:55 +02:00
8cf9143430 fix: update test 2025-10-10 08:01:09 +02:00
5fda2da0ba fix: tests 2025-10-05 21:24:00 +02:00
f422e0a801 fix: tests for formatter 2025-09-30 21:49:47 +02:00
77 changed files with 355 additions and 17 deletions

View file

@ -1,3 +1,11 @@
## 0.2.0a14 (2025-10-10)
### Fix
- update test
- tests
- tests for formatter
## 0.2.0a13 (2025-09-29)
### Feat

View file

@ -1,2 +1,2 @@
# rougail-user-data-file
# rougail-user-data-yaml

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.user_data_yaml"
version = "0.2.0a13"
version = "0.2.0a14"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail user_data yaml"
@ -13,9 +13,6 @@ license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",

View file

@ -1 +1 @@
__version__ = "0.2.0a13"
__version__ = "0.2.0a14"

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"the value \"test\" is invalid for \"variable_int\", which is not an integer, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_wrong_type.yaml\""
"the value \"test\" is an invalid integer for \"variable_int\", which is not an integer, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/01_wrong_type.yaml\""
]
}

View file

@ -1,6 +1,6 @@
{
"errors": [],
"warnings": [
"the value \"**********\" is invalid for \"secret\", at least 10 characters are required, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/04_value_secret.yaml\""
"the value \"**********\" is an invalid password for \"secret\", at least 10 characters are required, it will be ignored when loading from the YAML file \"/home/gnunux/git/stove/rougail-user-data-yaml/tests/errors/yaml/04_value_secret.yaml\""
]
}

View file

@ -5,6 +5,8 @@
"var3": "string1",
"var4": "string1",
"var5": "string1",
"var6": "string1"
"var6": "string1",
"var7": "string1",
"var8": "string1"
}
}

View file

@ -5,6 +5,8 @@
"var3": "string1",
"var4": "string1",
"var5": "string1",
"var6": "string1"
"var6": "string1",
"var7": "string1",
"var8": "string1"
}
}

View file

@ -4,5 +4,7 @@
"rougail.var3": "string1",
"rougail.var4": "string1",
"rougail.var5": "string1",
"rougail.var6": "string1"
"rougail.var6": "string1",
"rougail.var7": "string1",
"rougail.var8": "string1"
}

View file

@ -4,5 +4,7 @@
"rougail.var3": "string1",
"rougail.var4": "value",
"rougail.var5": "value",
"rougail.var6": "value"
"rougail.var6": "value",
"rougail.var7": "8080",
"rougail.var8": "true"
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/all.yml\""
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable2\" (a seconde variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_boolean/file/mandatories.yml\""
]
}

View file

@ -0,0 +1,7 @@
{
"rougail": {
"condition": "string1",
"variable1": "string1",
"variable2": "string1"
}
}

View file

@ -0,0 +1,7 @@
{
"rougail": {
"condition": "string1",
"variable1": "string1",
"variable2": "string1"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail": {
"variable1": "string1",
"variable2": "string1"
}
}

View file

@ -0,0 +1,4 @@
{
"rougail.condition": "string1",
"rougail.variable1": "string1"
}

View file

@ -0,0 +1,4 @@
{
"rougail.condition": "no",
"rougail.variable1": "string1"
}

View file

@ -1,8 +1,8 @@
{
"errors": [],
"warnings": [
"variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"",
"variable \"rougail.var2\" (a first variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"",
"variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\""
"variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\"",
"variable \"rougail.var4\" (a forth variable) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_optional_default/file/all.yml\""
]
}

View file

@ -3,6 +3,7 @@
"condition": true,
"var1": "string1",
"var2": "string1",
"var3": "string1"
"var3": "string1",
"var4": "string1"
}
}

View file

@ -3,6 +3,7 @@
"condition": true,
"var1": "string1",
"var2": "string1",
"var3": "string1"
"var3": "string1",
"var4": "string1"
}
}

View file

@ -1,6 +1,6 @@
{
"rougail.condition": true,
"rougail.var1": null,
"rougail.var1": "string1",
"rougail.var2": null,
"rougail.var3": null,
"rougail.var4": null

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/all.yml\""
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable10/file/mandatories.yml\""
]
}

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,3 @@
{
"rougail.condition": true
}

View file

@ -0,0 +1,3 @@
{
"rougail.condition": true
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.condition\" (a condition) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable5/file/all.yml\""
]
}

View file

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

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 @@
{
"rougail.condition": false,
"rougail.variable": "string1"
}

View file

@ -0,0 +1,4 @@
{
"rougail.condition": false,
"rougail.variable": "string1"
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable6/file/all.yml\""
]
}

View file

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

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,3 @@
{
"rougail.variable": "string1"
}

View file

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

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable7/file/all.yml\""
]
}

View file

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

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,3 @@
{
"rougail.condition": true
}

View file

@ -0,0 +1,4 @@
{
"rougail.condition": false,
"rougail.variable": "string1"
}

View file

@ -0,0 +1,7 @@
{
"errors": [],
"warnings": [
"variable \"rougail.condition\" (a condition) is hidden, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\"",
"variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/all.yml\""
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.variable\" (a variable) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable8/file/mandatories.yml\""
]
}

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,3 @@
{
"rougail.condition": true
}

View file

@ -0,0 +1,3 @@
{
"rougail.condition": true
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"rougail.condition\" (a condition) is disabled, it will be ignored when loading from the YAML file \"tests/results/04_5disabled_calculation_variable9/file/all.yml\""
]
}

View file

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

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,3 @@
{
"rougail.variable": "string1"
}

View file

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

View file

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

View file

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

View file

@ -0,0 +1,12 @@
{
"rougail": {
"my_family": {
"dynamic": [
"string1",
"string2",
"string3"
],
"var": true
}
}
}

View file

@ -0,0 +1,12 @@
{
"rougail": {
"my_family": {
"dynamic": [
"string1",
"string2",
"string3"
],
"var": true
}
}
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,8 @@
{
"rougail.my_family.dynamic": [
"string1",
"string2",
"string3"
],
"rougail.my_family.var": true
}

View file

@ -0,0 +1,7 @@
{
"rougail.my_family.dynamic": [
"val1",
"val2"
],
"rougail.my_family.var": true
}

View file

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

View file

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

View file

@ -0,0 +1,7 @@
{
"rougail": {
"my_family": {
"default": true
}
}
}

View file

@ -0,0 +1,7 @@
{
"rougail": {
"my_family": {
"default": true
}
}
}

View file

@ -0,0 +1,3 @@
{
"rougail.my_family.default": true
}

View file

@ -0,0 +1,3 @@
{
"rougail.my_family.default": true
}