fix: update tests
This commit is contained in:
parent
e72d8b1891
commit
ce43e5273f
37 changed files with 112 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2024-2025
|
||||
Copyright (C) 2024-2026
|
||||
|
||||
distribued with GPL-2 or later license
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
Config file for Rougail-user-data-environment
|
||||
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2024-2025
|
||||
Copyright (C) 2024-2026
|
||||
|
||||
distribued with GPL-2 or later license
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2024-2025
|
||||
Copyright (C) 2024-2026
|
||||
|
||||
distribued with GPL-2 or later license
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""Internationalisation utilities
|
||||
Silique (https://www.silique.fr)
|
||||
Copyright (C) 2025
|
||||
Copyright (C) 2025-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 environment variable"
|
||||
"variable or family \"unknown\" does not exist so cannot load \"unknown\", it will be ignored when loading from environment variable"
|
||||
]
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
"warnings": [
|
||||
[
|
||||
[
|
||||
"is a family so we cannot set the value \"test\", it will be ignored when loading from environment variable",
|
||||
"it's a family so we cannot set the value \"test\", it will be ignored when loading from environment variable",
|
||||
"family",
|
||||
null
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": [
|
||||
"variable or family \"dyn_unknown\" does not exist, it will be ignored when loading from environment variable"
|
||||
"variable or family \"dyn_unknown\" does not exist so cannot load \"dyn_unknown.variable\", it will be ignored when loading from environment variable"
|
||||
]
|
||||
}
|
||||
|
|
@ -1,6 +1,12 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": [
|
||||
"variable or family \"leadership.unknwon\" does not exist, it will be ignored when loading from environment variable"
|
||||
[
|
||||
[
|
||||
"variable or family \"unknwon\" does not exist so cannot load \"leadership.unknwon\", it will be ignored when loading from environment variable",
|
||||
"leadership",
|
||||
null
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
"warnings": [
|
||||
[
|
||||
[
|
||||
"index \"1\" is greater than the leadership length \"1\" for option \"follower\" in environment variable",
|
||||
"index \"1\" is greater than the leadership length \"1\" for option \"follower\", it will be ignored when loading from environment variable",
|
||||
"leadership.follower",
|
||||
null
|
||||
]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_CONDITION="True"
|
||||
ROUGAIL_VARIABLE="string1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_CONDITION="True"
|
||||
ROUGAIL_VARIABLE="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL_VARIABLE="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
4
tests/results/test/20_7help_family/errors/all.json
Normal file
4
tests/results/test/20_7help_family/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
2
tests/results/test/20_7help_family/file/all.env
Normal file
2
tests/results/test/20_7help_family/file/all.env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_FAMILY1.VAR="string1"
|
||||
ROUGAIL_FAMILY2oVAR="string1"
|
||||
2
tests/results/test/20_7help_family/file/all_exclude.env
Normal file
2
tests/results/test/20_7help_family/file/all_exclude.env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_FAMILY1.VAR="string1"
|
||||
ROUGAIL_FAMILY2oVAR="string1"
|
||||
2
tests/results/test/20_7help_family/file/mandatories.env
Normal file
2
tests/results/test/20_7help_family/file/mandatories.env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL_FAMILY1.VAR="string1"
|
||||
ROUGAIL_FAMILY2oVAR="string1"
|
||||
4
tests/results/test/20_7help_family/makedict/all.json
Normal file
4
tests/results/test/20_7help_family/makedict/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"family1.var": "string1",
|
||||
"family2.var": "string1"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"family1.var": "string1",
|
||||
"family2.var": "string1"
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": [
|
||||
[
|
||||
[
|
||||
"variable has property disabled, it will be ignored when loading from environment variable",
|
||||
"rougail.condition",
|
||||
null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
"family \"condition\" (a condition) has property disabled, so cannot access to \"variable\" (a variable), it will be ignored when loading from environment variable",
|
||||
"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 environment variable",
|
||||
"rougail.variable",
|
||||
null
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.CONDITION="True"
|
||||
ROUGAILoVARIABLE="string1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.CONDITION="True"
|
||||
ROUGAILoVARIABLE="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
ROUGAIL.VARIABLE="string1"
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"errors": [],
|
||||
"warnings": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.FAMILY1.VAR="string1"
|
||||
ROUGAILoFAMILY2oVAR="string1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.FAMILY1.VAR="string1"
|
||||
ROUGAILoFAMILY2oVAR="string1"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ROUGAIL.FAMILY1.VAR="string1"
|
||||
ROUGAILoFAMILY2oVAR="string1"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"rougail.family1.var": "string1",
|
||||
"rougail.family2.var": "string1"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"rougail.family1.var": "string1",
|
||||
"rougail.family2.var": "string1"
|
||||
}
|
||||
Loading…
Reference in a new issue