fix: update tests
This commit is contained in:
parent
622764bf53
commit
da1519071e
17 changed files with 378 additions and 3 deletions
|
|
@ -13,9 +13,6 @@ license = {file = "LICENSE"}
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||||
"Programming Language :: Python",
|
"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.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: 3.13",
|
"Programming Language :: Python :: 3.13",
|
||||||
|
|
|
||||||
23
tests/results/test/04_5disabled_calculation_boolean.adoc
Normal file
23
tests/results/test/04_5disabled_calculation_boolean.adoc
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
|
|
||||||
|
|
||||||
|
**condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||||
|
A conditional variable. +
|
||||||
|
**Default**: no
|
||||||
|
|
|
||||||
|
|
||||||
|
**variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
|
||||||
|
A first variable. +
|
||||||
|
**Disabled**: if condition is egal to "yes".
|
||||||
|
|
|
||||||
|
|
||||||
|
**variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
|
||||||
|
A seconde variable. +
|
||||||
|
**Disabled**: if condition is not egal to "yes".
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
|
||||||
|
| **condition**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A conditional variable.<br/>**Default**: no |
|
||||||
|
| **variable1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A first variable.<br/>**Disabled**: if condition is egal to "yes". |
|
||||||
|
| **variable2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A seconde variable.<br/>**Disabled**: if condition is not egal to "yes". |
|
||||||
|
|
||||||
94
tests/results/test/04_5disabled_calculation_boolean.json
Normal file
94
tests/results/test/04_5disabled_calculation_boolean.json
Normal file
|
|
@ -0,0 +1,94 @@
|
||||||
|
{
|
||||||
|
"condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": "no"
|
||||||
|
},
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "standard"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A conditional variable."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"annotation": "if condition is egal to \"yes\"."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A first variable."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"annotation": "if condition is not egal to \"yes\"."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A seconde variable."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
6
tests/results/test/04_5disabled_calculation_boolean.md
Normal file
6
tests/results/test/04_5disabled_calculation_boolean.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| **condition**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A conditional variable.<br/>**Default**: no |
|
||||||
|
| **variable1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A first variable.<br/>**Disabled**: if condition is egal to "yes". |
|
||||||
|
| **variable2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A seconde variable.<br/>**Disabled**: if condition is not egal to "yes". |
|
||||||
|
|
||||||
14
tests/results/test/04_5disabled_calculation_boolean.sh
Normal file
14
tests/results/test/04_5disabled_calculation_boolean.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mcondition[0m │ A conditional variable. │
|
||||||
|
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: no │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable1[0m │ A first variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;3;7m [0m │ [1mDisabled[0m: if condition is egal to │
|
||||||
|
│ [1;3;7mdisabled [0m │ "yes". │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mvariable2[0m │ A seconde variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;3;7m [0m │ [1mDisabled[0m: if condition is not egal │
|
||||||
|
│ [1;3;7mdisabled [0m │ to "yes". │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
condition: no
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
== Variables for "Rougail"
|
||||||
|
|
||||||
|
**rougail**
|
||||||
|
|
||||||
|
`basic`
|
||||||
|
|
||||||
|
[cols="1a,1a"]
|
||||||
|
|====
|
||||||
|
| Variable | Description
|
||||||
|
|
|
||||||
|
|
||||||
|
**rougail.condition** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||||
|
A conditional variable. +
|
||||||
|
**Default**: no
|
||||||
|
|
|
||||||
|
|
||||||
|
**rougail.variable1** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
|
||||||
|
A first variable. +
|
||||||
|
**Disabled**: if condition is egal to "yes".
|
||||||
|
|
|
||||||
|
|
||||||
|
**rougail.variable2** +
|
||||||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
|
||||||
|
A seconde variable. +
|
||||||
|
**Disabled**: if condition is not egal to "yes".
|
||||||
|
|====
|
||||||
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<details><summary>Rougail</summary>
|
||||||
|
|
||||||
|
>>> [!note] Informations
|
||||||
|
**rougail**<br>`basic`
|
||||||
|
|
||||||
|
|
||||||
|
>>>
|
||||||
|
| Variable | Description |
|
||||||
|
|-----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
|
||||||
|
| **rougail.condition**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A conditional variable.<br/>**Default**: no |
|
||||||
|
| **rougail.variable1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A first variable.<br/>**Disabled**: if condition is egal to "yes". |
|
||||||
|
| **rougail.variable2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A seconde variable.<br/>**Disabled**: if condition is not egal to "yes". |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,114 @@
|
||||||
|
{
|
||||||
|
"rougail": {
|
||||||
|
"type": "namespace",
|
||||||
|
"informations": {
|
||||||
|
"paths": [
|
||||||
|
"rougail"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"rougail"
|
||||||
|
],
|
||||||
|
"description": "Rougail",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"children": {
|
||||||
|
"rougail.condition": {
|
||||||
|
"type": "variable",
|
||||||
|
"default": {
|
||||||
|
"name": "Default",
|
||||||
|
"values": "no"
|
||||||
|
},
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "standard"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"rougail.condition"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"condition"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A conditional variable."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rougail.variable1": {
|
||||||
|
"type": "variable",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"annotation": "if condition is egal to \"yes\"."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"rougail.variable1"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"variable1"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A first variable."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rougail.variable2": {
|
||||||
|
"type": "variable",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"type": "type",
|
||||||
|
"name": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mode",
|
||||||
|
"name": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "mandatory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "property",
|
||||||
|
"name": "disabled",
|
||||||
|
"annotation": "if condition is not egal to \"yes\"."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"rougail.variable2"
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
"variable2"
|
||||||
|
],
|
||||||
|
"descriptions": [
|
||||||
|
"A seconde variable."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Variables for "Rougail"
|
||||||
|
|
||||||
|
**rougail**
|
||||||
|
|
||||||
|
`basic`
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| **rougail.condition**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A conditional variable.<br/>**Default**: no |
|
||||||
|
| **rougail.variable1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A first variable.<br/>**Disabled**: if condition is egal to "yes". |
|
||||||
|
| **rougail.variable2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A seconde variable.<br/>**Disabled**: if condition is not egal to "yes". |
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
|
||||||
|
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[1mrougail[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[1;7m basic [0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ [1mrougail.condition[0m │ A conditional variable. │
|
||||||
|
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: no │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable1[0m │ A first variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;3;7m [0m │ [1mDisabled[0m: if condition is egal to │
|
||||||
|
│ [1;3;7mdisabled [0m │ "yes". │
|
||||||
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
|
│ [1mrougail.variable2[0m │ A seconde variable. │
|
||||||
|
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m [1;3;7m [0m │ [1mDisabled[0m: if condition is not egal │
|
||||||
|
│ [1;3;7mdisabled [0m │ to "yes". │
|
||||||
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Example with mandatory variables not filled in
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
# Example with all variables modifiable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
rougail:
|
||||||
|
condition: no
|
||||||
|
variable1: example
|
||||||
|
variable2: example
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
[]
|
||||||
Loading…
Reference in a new issue