Compare commits
No commits in common. "81ff41710752d433c42a30368c9af9d5dbc59931" and "b4dfa1460264b01b27cb1dcfdc7ba10fe4db97b4" have entirely different histories.
81ff417107
...
b4dfa14602
30 changed files with 63 additions and 296 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
## 0.2.0a14 (2025-04-07)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- calculation for dynamic ans leadership variables
|
|
||||||
|
|
||||||
## 0.2.0a13 (2025-04-02)
|
## 0.2.0a13 (2025-04-02)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_doc"
|
name = "rougail.output_doc"
|
||||||
version = "0.2.0a14"
|
version = "0.2.0a13"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail output doc"
|
description = "Rougail output doc"
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ class Annotator(Walk):
|
||||||
"""For dynamic we must have values to document it"""
|
"""For dynamic we must have values to document it"""
|
||||||
if not isinstance(value, Calculation):
|
if not isinstance(value, Calculation):
|
||||||
return
|
return
|
||||||
value_added = False
|
default_values = ["example"]
|
||||||
if isinstance(value, (VariableCalculation, VariablePropertyCalculation)):
|
if isinstance(value, (VariableCalculation, VariablePropertyCalculation)):
|
||||||
variable = self.objectspace.paths.get_with_dynamic(
|
variable = self.objectspace.paths.get_with_dynamic(
|
||||||
value.variable,
|
value.variable,
|
||||||
|
|
@ -97,29 +97,21 @@ class Annotator(Walk):
|
||||||
value.namespace,
|
value.namespace,
|
||||||
value.xmlfiles,
|
value.xmlfiles,
|
||||||
)[0]
|
)[0]
|
||||||
if variable and not variable.default:
|
if variable:
|
||||||
values = self.add_examples_values(variable)
|
values = self.get_examples_values(variable)
|
||||||
value_added = True
|
if values:
|
||||||
if not value_added:
|
default_values = values
|
||||||
default_values = ["example"]
|
|
||||||
if not return_a_list:
|
if not return_a_list:
|
||||||
default_values = default_values[0]
|
default_values = default_values[0]
|
||||||
value.default_values = default_values
|
value.default_values = default_values
|
||||||
|
|
||||||
def add_examples_values(self, variable) -> list:
|
def get_examples_values(self, variable) -> list:
|
||||||
"""Check examples or test information to define examples values in a variable"""
|
"""Check examples or test information to define examples values"""
|
||||||
values = self.objectspace.informations.get(variable.path).get("examples", None)
|
values = self.objectspace.informations.get(variable.path).get("examples", None)
|
||||||
if not values:
|
if not values:
|
||||||
values = self.objectspace.informations.get(variable.path).get("test", None)
|
values = self.objectspace.informations.get(variable.path).get("test", None)
|
||||||
if isinstance(values, tuple):
|
if isinstance(values, tuple):
|
||||||
values = list(values)
|
values = list(values)
|
||||||
if values:
|
|
||||||
variable.default = list(values)
|
|
||||||
else:
|
|
||||||
variable.default = [CONVERT_OPTION[variable.type]["example"]]
|
|
||||||
self.objectspace.informations.add(
|
|
||||||
variable.path, "default_value_makes_sense", False
|
|
||||||
)
|
|
||||||
return values
|
return values
|
||||||
|
|
||||||
def populate_variable(self) -> None:
|
def populate_variable(self) -> None:
|
||||||
|
|
@ -147,7 +139,14 @@ class Annotator(Walk):
|
||||||
variable.version,
|
variable.version,
|
||||||
)
|
)
|
||||||
if variable.path in self.objectspace.leaders and not variable.default:
|
if variable.path in self.objectspace.leaders and not variable.default:
|
||||||
self.add_examples_values(variable)
|
values = self.get_examples_values(variable)
|
||||||
|
if values:
|
||||||
|
variable.default = list(values)
|
||||||
|
else:
|
||||||
|
variable.default = [CONVERT_OPTION[variable.type]["example"]]
|
||||||
|
self.objectspace.informations.add(
|
||||||
|
variable.path, "default_value_makes_sense", False
|
||||||
|
)
|
||||||
self.objectspace.informations.add(
|
self.objectspace.informations.add(
|
||||||
variable.path, "dictionaries", variable.xmlfiles
|
variable.path, "dictionaries", variable.xmlfiles
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ class RougailOutputDoc(Examples):
|
||||||
informations["example"] = [example]
|
informations["example"] = [example]
|
||||||
informations["mandatory_without_value"] = "mandatory" in variable.property.get(
|
informations["mandatory_without_value"] = "mandatory" in variable.property.get(
|
||||||
uncalculated=True
|
uncalculated=True
|
||||||
) and (not variable.information.get("default_value_makes_sense", True) or variable.value.get(uncalculated=True) in [None, []])
|
) and variable.value.get(uncalculated=True) in [None, []]
|
||||||
|
|
||||||
def _get_example(self, variable, informations: dict, leader):
|
def _get_example(self, variable, informations: dict, leader):
|
||||||
example = informations.get("examples")
|
example = informations.get("examples")
|
||||||
|
|
@ -510,12 +510,13 @@ class RougailOutputDoc(Examples):
|
||||||
self,
|
self,
|
||||||
variable,
|
variable,
|
||||||
):
|
):
|
||||||
|
if not variable.information.get("default_value_makes_sense", True):
|
||||||
|
return None
|
||||||
default = self._to_string(variable, "default", do_not_raise=True)
|
default = self._to_string(variable, "default", do_not_raise=True)
|
||||||
if default is not None:
|
if default is not None:
|
||||||
if default == []:
|
if default == []:
|
||||||
default = None
|
default = None
|
||||||
return default
|
return default
|
||||||
if variable.information.get("default_value_makes_sense", True):
|
|
||||||
default = variable.value.get(uncalculated=True)
|
default = variable.value.get(uncalculated=True)
|
||||||
if default == []:
|
if default == []:
|
||||||
default = None
|
default = None
|
||||||
|
|
@ -525,8 +526,11 @@ class RougailOutputDoc(Examples):
|
||||||
self,
|
self,
|
||||||
variable,
|
variable,
|
||||||
prop,
|
prop,
|
||||||
|
identifier="",
|
||||||
do_not_raise=False,
|
do_not_raise=False,
|
||||||
):
|
):
|
||||||
|
if identifier:
|
||||||
|
raise Exception("pfff")
|
||||||
calculation = variable.information.get(f"{prop}_calculation", None)
|
calculation = variable.information.get(f"{prop}_calculation", None)
|
||||||
if not calculation:
|
if not calculation:
|
||||||
if do_not_raise:
|
if do_not_raise:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
general1:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
follower3: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
follower1:
|
|
||||||
- example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
dynval1:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
dynval2:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
dynval1:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
dynval2:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -47,28 +47,22 @@ This family builds families dynamically.
|
||||||
| Variable | Description
|
| Variable | Description
|
||||||
|
|
|
|
||||||
|
|
||||||
**rougail.dyn__val1__.dyn___tval1__.var** +
|
**rougail.dyn__val1__.dyn___example__.var** +
|
||||||
**rougail.dyn__val1__.dyn___tval2__.var** +
|
**rougail.dyn__val2__.dyn___example__.var** +
|
||||||
**rougail.dyn__val2__.dyn___tval1__.var** +
|
|
||||||
**rougail.dyn__val2__.dyn___tval2__.var** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||||
A variable dynamic. +
|
A variable dynamic. +
|
||||||
**Default**: the value of the identifier.
|
**Default**: the value of the identifier.
|
||||||
|
|
|
|
||||||
|
|
||||||
**rougail.dyn__val1__.dyn___tval1__.var_identifier** +
|
**rougail.dyn__val1__.dyn___example__.var_identifier** +
|
||||||
**rougail.dyn__val1__.dyn___tval2__.var_identifier** +
|
**rougail.dyn__val2__.dyn___example__.var_identifier** +
|
||||||
**rougail.dyn__val2__.dyn___tval1__.var_identifier** +
|
|
||||||
**rougail.dyn__val2__.dyn___tval2__.var_identifier** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||||
Identifier from first family. +
|
Identifier from first family. +
|
||||||
**Default**: the value of the identifier.
|
**Default**: the value of the identifier.
|
||||||
|
|
|
|
||||||
|
|
||||||
**rougail.dyn__val1__.dyn___tval1__.var_identifiers** +
|
**rougail.dyn__val1__.dyn___example__.var_identifiers** +
|
||||||
**rougail.dyn__val1__.dyn___tval2__.var_identifiers** +
|
**rougail.dyn__val2__.dyn___example__.var_identifiers** +
|
||||||
**rougail.dyn__val2__.dyn___tval1__.var_identifiers** +
|
|
||||||
**rougail.dyn__val2__.dyn___tval2__.var_identifiers** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||||||
Merge identifiers. +
|
Merge identifiers. +
|
||||||
**Default**: join identifier 1 et identifier 2.
|
**Default**: join identifier 1 et identifier 2.
|
||||||
|
|
|
||||||
|
|
@ -116,16 +116,12 @@
|
||||||
"type": "dynamic",
|
"type": "dynamic",
|
||||||
"informations": {
|
"informations": {
|
||||||
"paths": [
|
"paths": [
|
||||||
"rougail.dynval1.dyn_tval1",
|
"rougail.dynval1.dyn_example",
|
||||||
"rougail.dynval1.dyn_tval2",
|
"rougail.dynval2.dyn_example"
|
||||||
"rougail.dynval2.dyn_tval1",
|
|
||||||
"rougail.dynval2.dyn_tval2"
|
|
||||||
],
|
],
|
||||||
"names": [
|
"names": [
|
||||||
"dyn_tval1",
|
"dyn_example",
|
||||||
"dyn_tval2",
|
"dyn_example"
|
||||||
"dyn_tval1",
|
|
||||||
"dyn_tval2"
|
|
||||||
],
|
],
|
||||||
"description": "a Second dynamic variable",
|
"description": "a Second dynamic variable",
|
||||||
"properties": [
|
"properties": [
|
||||||
|
|
@ -142,14 +138,10 @@
|
||||||
"children": {
|
"children": {
|
||||||
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var": {
|
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var": {
|
||||||
"paths": [
|
"paths": [
|
||||||
"rougail.dynval1.dyn_tval1.var",
|
"rougail.dynval1.dyn_example.var",
|
||||||
"rougail.dynval1.dyn_tval2.var",
|
"rougail.dynval2.dyn_example.var"
|
||||||
"rougail.dynval2.dyn_tval1.var",
|
|
||||||
"rougail.dynval2.dyn_tval2.var"
|
|
||||||
],
|
],
|
||||||
"names": [
|
"names": [
|
||||||
"var",
|
|
||||||
"var",
|
|
||||||
"var",
|
"var",
|
||||||
"var"
|
"var"
|
||||||
],
|
],
|
||||||
|
|
@ -175,14 +167,10 @@
|
||||||
},
|
},
|
||||||
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var_identifier": {
|
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var_identifier": {
|
||||||
"paths": [
|
"paths": [
|
||||||
"rougail.dynval1.dyn_tval1.var_identifier",
|
"rougail.dynval1.dyn_example.var_identifier",
|
||||||
"rougail.dynval1.dyn_tval2.var_identifier",
|
"rougail.dynval2.dyn_example.var_identifier"
|
||||||
"rougail.dynval2.dyn_tval1.var_identifier",
|
|
||||||
"rougail.dynval2.dyn_tval2.var_identifier"
|
|
||||||
],
|
],
|
||||||
"names": [
|
"names": [
|
||||||
"var_identifier",
|
|
||||||
"var_identifier",
|
|
||||||
"var_identifier",
|
"var_identifier",
|
||||||
"var_identifier"
|
"var_identifier"
|
||||||
],
|
],
|
||||||
|
|
@ -208,14 +196,10 @@
|
||||||
},
|
},
|
||||||
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var_identifiers": {
|
"rougail.dyn{{ identifier }}.dyn_{{ identifier }}.var_identifiers": {
|
||||||
"paths": [
|
"paths": [
|
||||||
"rougail.dynval1.dyn_tval1.var_identifiers",
|
"rougail.dynval1.dyn_example.var_identifiers",
|
||||||
"rougail.dynval1.dyn_tval2.var_identifiers",
|
"rougail.dynval2.dyn_example.var_identifiers"
|
||||||
"rougail.dynval2.dyn_tval1.var_identifiers",
|
|
||||||
"rougail.dynval2.dyn_tval2.var_identifiers"
|
|
||||||
],
|
],
|
||||||
"names": [
|
"names": [
|
||||||
"var_identifiers",
|
|
||||||
"var_identifiers",
|
|
||||||
"var_identifiers",
|
"var_identifiers",
|
||||||
"var_identifiers"
|
"var_identifiers"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ This family builds families dynamically.
|
||||||
|
|
||||||
| Variable | Description |
|
| Variable | Description |
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **rougail.dyn*val1*.dyn_*tval1*.var**<br/>**rougail.dyn*val1*.dyn_*tval2*.var**<br/>**rougail.dyn*val2*.dyn_*tval1*.var**<br/>**rougail.dyn*val2*.dyn_*tval2*.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable dynamic.<br/>**Default**: the value of the identifier. |
|
| **rougail.dyn*val1*.dyn_*example*.var**<br/>**rougail.dyn*val2*.dyn_*example*.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A variable dynamic.<br/>**Default**: the value of the identifier. |
|
||||||
| **rougail.dyn*val1*.dyn_*tval1*.var_identifier**<br/>**rougail.dyn*val1*.dyn_*tval2*.var_identifier**<br/>**rougail.dyn*val2*.dyn_*tval1*.var_identifier**<br/>**rougail.dyn*val2*.dyn_*tval2*.var_identifier**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Identifier from first family.<br/>**Default**: the value of the identifier. |
|
| **rougail.dyn*val1*.dyn_*example*.var_identifier**<br/>**rougail.dyn*val2*.dyn_*example*.var_identifier**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Identifier from first family.<br/>**Default**: the value of the identifier. |
|
||||||
| **rougail.dyn*val1*.dyn_*tval1*.var_identifiers**<br/>**rougail.dyn*val1*.dyn_*tval2*.var_identifiers**<br/>**rougail.dyn*val2*.dyn_*tval1*.var_identifiers**<br/>**rougail.dyn*val2*.dyn_*tval2*.var_identifiers**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Merge identifiers.<br/>**Default**: join identifier 1 et identifier 2. |
|
| **rougail.dyn*val1*.dyn_*example*.var_identifiers**<br/>**rougail.dyn*val2*.dyn_*example*.var_identifiers**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Merge identifiers.<br/>**Default**: join identifier 1 et identifier 2. |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,21 +50,15 @@ This family builds families dynamically.
|
||||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var[0m │ A variable dynamic. │
|
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mexample[0m[1m.var[0m │ A variable dynamic. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var[0m │ [1mDefault[0m: the value of the │
|
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mexample[0m[1m.var[0m │ [1mDefault[0m: the value of the │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var[0m │ identifier. │
|
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ identifier. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var[0m │ │
|
|
||||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var_identi…[0m │ Identifier from first family. │
|
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mexample[0m[1m.var_iden…[0m │ Identifier from first family. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var_identi…[0m │ [1mDefault[0m: the value of the │
|
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mexample[0m[1m.var_iden…[0m │ [1mDefault[0m: the value of the │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var_identi…[0m │ identifier. │
|
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ identifier. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var_identi…[0m │ │
|
|
||||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var_identi…[0m │ Merge identifiers. │
|
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mexample[0m[1m.var_iden…[0m │ Merge identifiers. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval1[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var_identi…[0m │ [1mDefault[0m: join identifier 1 et │
|
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mexample[0m[1m.var_iden…[0m │ [1mDefault[0m: join identifier 1 et │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval1[0m[1m.var_identi…[0m │ identifier 2. │
|
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ identifier 2. │
|
||||||
│ [1mrougail.dyn[0m[1;3mval2[0m[1m.dyn_[0m[1;3mtval2[0m[1m.var_identi…[0m │ │
|
|
||||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ │
|
|
||||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
general1:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower1: example
|
|
||||||
follower2: example
|
|
||||||
follower3: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
follower1:
|
|
||||||
- example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
leader:
|
|
||||||
- leader: example
|
|
||||||
follower: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
dynval1:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
dynval2:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
dynval1:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
dynval2:
|
|
||||||
leadership:
|
|
||||||
- leader: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
# Example with all variables modifiable
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
||||||
|
|
@ -8,26 +8,16 @@ rougail:
|
||||||
- val2
|
- val2
|
||||||
dynval1:
|
dynval1:
|
||||||
var:
|
var:
|
||||||
- tval1
|
- example
|
||||||
- tval2
|
dyn_example:
|
||||||
dyn_tval1:
|
var: example
|
||||||
var: tval1
|
|
||||||
var_identifier: val1
|
var_identifier: val1
|
||||||
var_identifiers: val1-tval1
|
var_identifiers: val1-example
|
||||||
dyn_tval2:
|
|
||||||
var: tval2
|
|
||||||
var_identifier: val1
|
|
||||||
var_identifiers: val1-tval2
|
|
||||||
dynval2:
|
dynval2:
|
||||||
var:
|
var:
|
||||||
- tval1
|
- example
|
||||||
- tval2
|
dyn_example:
|
||||||
dyn_tval1:
|
var: example
|
||||||
var: tval1
|
|
||||||
var_identifier: val2
|
var_identifier: val2
|
||||||
var_identifiers: val2-tval1
|
var_identifiers: val2-example
|
||||||
dyn_tval2:
|
|
||||||
var: tval2
|
|
||||||
var_identifier: val2
|
|
||||||
var_identifiers: val2-tval2
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ excludes = [
|
||||||
]
|
]
|
||||||
|
|
||||||
test_ok = get_structures_list(excludes)
|
test_ok = get_structures_list(excludes)
|
||||||
# test_ok = [Path('../rougail-tests/structures/60_0family_dynamic_test')]
|
# test_ok = [Path('../rougail-tests/structures/60_5family_dynamic_calc_suffix_disabled2')]
|
||||||
|
|
||||||
|
|
||||||
os.environ['COLUMNS'] = '80'
|
os.environ['COLUMNS'] = '80'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue