diff --git a/src/rougail/convert.py b/src/rougail/convert.py index afdc5c3d9..bd3326662 100644 --- a/src/rougail/convert.py +++ b/src/rougail/convert.py @@ -423,7 +423,6 @@ class ParserVariable: obj, filename, family_is_dynamic, - False, version, typ="family", ) @@ -608,7 +607,6 @@ class ParserVariable: family, filename, family_is_dynamic, - False, version, typ="family", ) @@ -668,7 +666,6 @@ class ParserVariable: obj, filename, family_is_dynamic, - family_is_leadership is True and first_variable is False, version, ) self.parse_params(path, obj, filename) @@ -717,7 +714,6 @@ class ParserVariable: obj: dict, filename: str, family_is_dynamic: bool, - is_follower: bool, version: str, *, typ: str = "variable", @@ -741,7 +737,6 @@ class ParserVariable: value, path, family_is_dynamic, - is_follower, version, [filename], ) @@ -767,7 +762,6 @@ class ParserVariable: val, path, family_is_dynamic, - is_follower, version, [filename], inside_list=True, @@ -798,7 +792,6 @@ class ParserVariable: value=val, type="any", path=None, - is_follower=None, attribute=None, family_is_dynamic=None, namespace=self.namespace, @@ -835,7 +828,6 @@ class ParserVariable: secret_manager, path, family_is_dynamic, - False, version, [filename], ) @@ -949,7 +941,6 @@ class ParserVariable: value: dict, path: str, family_is_dynamic: bool, - is_follower: bool, version: str, xmlfiles: List[str], *, @@ -993,7 +984,6 @@ class ParserVariable: val["key"] = key val["path"] = path val["family_is_dynamic"] = family_is_dynamic - val["is_follower"] = is_follower val["attribute"] = attribute val["namespace"] = self.namespace val["xmlfiles"] = xmlfiles diff --git a/src/rougail/object_model.py b/src/rougail/object_model.py index cf2f493cc..d5c7b6820 100644 --- a/src/rougail/object_model.py +++ b/src/rougail/object_model.py @@ -147,7 +147,6 @@ class Param(BaseModel): path, attribute, family_is_dynamic, - is_follower, xmlfiles, **kwargs, ) -> None: @@ -239,14 +238,11 @@ class InformationParam(Param): class IndexParam(Param): type: str - def __init__( - self, - **kwargs, - ) -> None: - if not kwargs["is_follower"]: - msg = _('the variable "{0}" is not a follower, so cannot have index type for param in "{1}"').format(kwargs["path"], kwargs["attribute"]) - raise DictConsistencyError(msg, 25, kwargs["xmlfiles"]) - super().__init__(**kwargs) + def to_param(self, attribute_name, objectspace, path, version, namespace, xmlfiles) -> dict: + if path not in objectspace.followers and (attribute_name != 'validators' or path not in objectspace.multis): + msg = _('the variable "{0}" is not a follower, so cannot have index type for param in "{1}"').format(path, attribute) + raise DictConsistencyError(msg, 25, xmlfiles) + return super().to_param(attribute_name, objectspace, path, version, namespace, xmlfiles) class NamespaceParam(Param): diff --git a/tests/dictionaries/00_0empty/makedict/read_write.json b/tests/dictionaries/00_0empty/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/00_0empty/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/00_0version_underscore/makedict/read_write.json b/tests/dictionaries/00_0version_underscore/makedict/read_write.json new file mode 100644 index 000000000..2cc50833c --- /dev/null +++ b/tests/dictionaries/00_0version_underscore/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.version": null +} diff --git a/tests/dictionaries/00_1empty_variable/makedict/read_write.json b/tests/dictionaries/00_1empty_variable/makedict/read_write.json new file mode 100644 index 000000000..3d9ec1ac3 --- /dev/null +++ b/tests/dictionaries/00_1empty_variable/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.empty": null +} diff --git a/tests/dictionaries/00_2default_calculated/makedict/read_write.json b/tests/dictionaries/00_2default_calculated/makedict/read_write.json new file mode 100644 index 000000000..7bf9abe06 --- /dev/null +++ b/tests/dictionaries/00_2default_calculated/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": "no", + "rougail.var2": [ + "no" + ] +} diff --git a/tests/dictionaries/00_2default_calculated_multi/makedict/read_write.json b/tests/dictionaries/00_2default_calculated_multi/makedict/read_write.json new file mode 100644 index 000000000..6e46ffd31 --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_multi/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var1": [ + "no", + "yes", + "maybe" + ], + "rougail.var2": [ + "no", + "yes", + "maybe" + ] +} diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/makedict/after.json b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/after.json new file mode 100644 index 000000000..2fa32bc4a --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/after.json @@ -0,0 +1,20 @@ +{ + "rougail.leadership.var1": { + "owner": "default", + "value": [ + "a_value" + ] + }, + "rougail.leadership.var2": { + "owner": [ + "default" + ], + "value": [ + "a_value" + ] + }, + "rougail.var2": { + "owner": "default", + "value": "a_value" + } +} diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/makedict/base.json b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/base.json new file mode 100644 index 000000000..5f6d4c8db --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/base.json @@ -0,0 +1,9 @@ +{ + "rougail.leadership.var1": [ + { + "rougail.leadership.var1": "a_value", + "rougail.leadership.var2": "a_value" + } + ], + "rougail.var2": "a_value" +} diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/makedict/before.json b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/before.json new file mode 100644 index 000000000..2fa32bc4a --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/before.json @@ -0,0 +1,20 @@ +{ + "rougail.leadership.var1": { + "owner": "default", + "value": [ + "a_value" + ] + }, + "rougail.leadership.var2": { + "owner": [ + "default" + ], + "value": [ + "a_value" + ] + }, + "rougail.var2": { + "owner": "default", + "value": "a_value" + } +} diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/makedict/mandatory.json b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/mandatory.json new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/mandatory.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/makedict/read_write.json b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/read_write.json new file mode 100644 index 000000000..9829a30ea --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var2": "a_value" +} diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/base.py b/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/base.py new file mode 100644 index 000000000..4210f8688 --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/base.py @@ -0,0 +1,19 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +try: + groups.namespace +except: + groups.addgroup('namespace') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{{ var1[0] }}" +option_3 = StrOption(name="var1", doc="a first variable", multi=True, default=["a_value"], properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +option_4 = StrOption(name="var2", doc="a first variable", multi=True, default_multi="a_value", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_2 = Leadership(name="leadership", doc="leadership", children=[option_3, option_4], properties=frozenset({"hidden", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml']}) +option_5 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__internal_files': ParamValue(['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml']), '__internal_attribute': ParamValue("default"), '__internal_variable': ParamValue("rougail.var2"), 'var1': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_1 = OptionDescription(name="rougail", doc="Rougail", group_type=groups.namespace, children=[optiondescription_2, option_5], properties=frozenset({"standard"}), informations={'ymlfiles': ['']}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/no_namespace.py b/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/no_namespace.py new file mode 100644 index 000000000..b2a42b5ed --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_params_permissive/tiramisu/no_namespace.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_var2'] = "{{ var1[0] }}" +option_2 = StrOption(name="var1", doc="a first variable", multi=True, default=["a_value"], properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +option_3 = StrOption(name="var2", doc="a first variable", multi=True, default_multi="a_value", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_1 = Leadership(name="leadership", doc="leadership", children=[option_2, option_3], properties=frozenset({"hidden", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml']}) +option_4 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__internal_files': ParamValue(['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml']), '__internal_attribute': ParamValue("default"), '__internal_variable': ParamValue("var2"), 'var1': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/00_2default_calculated_params_permissive/rougail/00-base.yml'], 'type': 'string'}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, option_4]) diff --git a/tests/dictionaries/00_2default_calculated_variable_transitive/makedict/read_write.json b/tests/dictionaries/00_2default_calculated_variable_transitive/makedict/read_write.json new file mode 100644 index 000000000..687890720 --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_variable_transitive/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": [] +} diff --git a/tests/dictionaries/00_4load_subfolder/makedict/read_write.json b/tests/dictionaries/00_4load_subfolder/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_5load_notype/makedict/read_write.json b/tests/dictionaries/00_5load_notype/makedict/read_write.json new file mode 100644 index 000000000..3140815a2 --- /dev/null +++ b/tests/dictionaries/00_5load_notype/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.without_type": "non" +} diff --git a/tests/dictionaries/00_6boolean/makedict/read_write.json b/tests/dictionaries/00_6boolean/makedict/read_write.json new file mode 100644 index 000000000..7be14b7be --- /dev/null +++ b/tests/dictionaries/00_6boolean/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": true, + "rougail.var2": true, + "rougail.var3": true, + "rougail.var4": false, + "rougail.var5": false, + "rougail.var6": false +} diff --git a/tests/dictionaries/00_6boolean_no_mandatory/makedict/read_write.json b/tests/dictionaries/00_6boolean_no_mandatory/makedict/read_write.json new file mode 100644 index 000000000..19f31a554 --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": true +} diff --git a/tests/dictionaries/00_6choice/makedict/read_write.json b/tests/dictionaries/00_6choice/makedict/read_write.json new file mode 100644 index 000000000..75aa2c0be --- /dev/null +++ b/tests/dictionaries/00_6choice/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": null, + "rougail.var2": null, + "rougail.var3": null, + "rougail.var4": null, + "rougail.var5": "a", + "rougail.var6": 1 +} diff --git a/tests/dictionaries/00_6choice_calculation/makedict/read_write.json b/tests/dictionaries/00_6choice_calculation/makedict/read_write.json new file mode 100644 index 000000000..e03ee5a69 --- /dev/null +++ b/tests/dictionaries/00_6choice_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": 9 +} diff --git a/tests/dictionaries/00_6choice_link/makedict/read_write.json b/tests/dictionaries/00_6choice_link/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_6choice_link/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_6choice_variable/makedict/read_write.json b/tests/dictionaries/00_6choice_variable/makedict/read_write.json new file mode 100644 index 000000000..acbee24ed --- /dev/null +++ b/tests/dictionaries/00_6choice_variable/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": [ + "a", + "b", + "c" + ], + "rougail.var2": "a" +} diff --git a/tests/dictionaries/00_6choice_variable_link/makedict/read_write.json b/tests/dictionaries/00_6choice_variable_link/makedict/read_write.json new file mode 100644 index 000000000..cebf666bd --- /dev/null +++ b/tests/dictionaries/00_6choice_variable_link/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "a", + "b", + "c" + ], + "rougail.var2": "a", + "rougail.var3": "a" +} diff --git a/tests/dictionaries/00_6choice_variable_link2/makedict/read_write.json b/tests/dictionaries/00_6choice_variable_link2/makedict/read_write.json new file mode 100644 index 000000000..17a8d1c94 --- /dev/null +++ b/tests/dictionaries/00_6choice_variable_link2/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "a", + "b", + "c" + ], + "rougail.var2": "a", + "rougail.family.var3": "a" +} diff --git a/tests/dictionaries/00_6custom/makedict/read_write.json b/tests/dictionaries/00_6custom/makedict/read_write.json new file mode 100644 index 000000000..19ff78ed3 --- /dev/null +++ b/tests/dictionaries/00_6custom/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.custom1": null, + "rougail.custom2": "value" +} diff --git a/tests/dictionaries/00_6domainname/makedict/read_write.json b/tests/dictionaries/00_6domainname/makedict/read_write.json new file mode 100644 index 000000000..2ea6dd8e8 --- /dev/null +++ b/tests/dictionaries/00_6domainname/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "my.domain.name" +} diff --git a/tests/dictionaries/00_6domainname_params/makedict/read_write.json b/tests/dictionaries/00_6domainname_params/makedict/read_write.json new file mode 100644 index 000000000..2ea6dd8e8 --- /dev/null +++ b/tests/dictionaries/00_6domainname_params/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "my.domain.name" +} diff --git a/tests/dictionaries/00_6float/makedict/read_write.json b/tests/dictionaries/00_6float/makedict/read_write.json new file mode 100644 index 000000000..dde1d582e --- /dev/null +++ b/tests/dictionaries/00_6float/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": 0.0, + "rougail.var2": 0.0, + "rougail.var3": 0.0, + "rougail.var4": 10.1, + "rougail.var5": 10.1, + "rougail.var6": 10.1 +} diff --git a/tests/dictionaries/00_6number/makedict/read_write.json b/tests/dictionaries/00_6number/makedict/read_write.json new file mode 100644 index 000000000..20006db5d --- /dev/null +++ b/tests/dictionaries/00_6number/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": 0, + "rougail.var2": 0, + "rougail.var3": 0, + "rougail.var4": 10, + "rougail.var5": 10, + "rougail.var6": 10 +} diff --git a/tests/dictionaries/00_6port/makedict/read_write.json b/tests/dictionaries/00_6port/makedict/read_write.json new file mode 100644 index 000000000..81884cf85 --- /dev/null +++ b/tests/dictionaries/00_6port/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable1": null, + "rougail.variable2": "8080", + "rougail.variable3": "8080" +} diff --git a/tests/dictionaries/00_6regexp/makedict/read_write.json b/tests/dictionaries/00_6regexp/makedict/read_write.json new file mode 100644 index 000000000..1d285fa84 --- /dev/null +++ b/tests/dictionaries/00_6regexp/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "#a1a1a1" +} diff --git a/tests/dictionaries/00_6regexp_link/makedict/read_write.json b/tests/dictionaries/00_6regexp_link/makedict/read_write.json new file mode 100644 index 000000000..72d5e7f3d --- /dev/null +++ b/tests/dictionaries/00_6regexp_link/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "#a1a1a1", + "rougail.var2": "#a1a1a1" +} diff --git a/tests/dictionaries/00_6secret/makedict/read_write.json b/tests/dictionaries/00_6secret/makedict/read_write.json new file mode 100644 index 000000000..1ae37c88a --- /dev/null +++ b/tests/dictionaries/00_6secret/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.secret1": null, + "rougail.secret2": "value" +} diff --git a/tests/dictionaries/00_6secret_param/makedict/read_write.json b/tests/dictionaries/00_6secret_param/makedict/read_write.json new file mode 100644 index 000000000..6a958c0a3 --- /dev/null +++ b/tests/dictionaries/00_6secret_param/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.secret1": null, + "rougail.secret2": "value", + "rougail.secret3": "value" +} diff --git a/tests/dictionaries/00_6string/makedict/read_write.json b/tests/dictionaries/00_6string/makedict/read_write.json new file mode 100644 index 000000000..de2c3bbd3 --- /dev/null +++ b/tests/dictionaries/00_6string/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": null, + "rougail.var2": null, + "rougail.var3": null, + "rougail.var4": "value", + "rougail.var5": "value", + "rougail.var6": "value" +} diff --git a/tests/dictionaries/00_7choice_quote/makedict/read_write.json b/tests/dictionaries/00_7choice_quote/makedict/read_write.json new file mode 100644 index 000000000..e4c736548 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "quote'" +} diff --git a/tests/dictionaries/00_7help/makedict/read_write.json b/tests/dictionaries/00_7help/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_7help/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_7help_quote/makedict/read_write.json b/tests/dictionaries/00_7help_quote/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_7help_sup/makedict/read_write.json b/tests/dictionaries/00_7help_sup/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_7help_sup/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_7value_doublequote/makedict/read_write.json b/tests/dictionaries/00_7value_doublequote/makedict/read_write.json new file mode 100644 index 000000000..1756aede1 --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "quote\"" +} diff --git a/tests/dictionaries/00_7value_doublequote2/makedict/read_write.json b/tests/dictionaries/00_7value_doublequote2/makedict/read_write.json new file mode 100644 index 000000000..19902beb9 --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote2/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "quote'\"" +} diff --git a/tests/dictionaries/00_7value_doublequote3/makedict/read_write.json b/tests/dictionaries/00_7value_doublequote3/makedict/read_write.json new file mode 100644 index 000000000..991d96fd6 --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote3/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "quote\\\"\\'" +} diff --git a/tests/dictionaries/00_7value_quote/makedict/read_write.json b/tests/dictionaries/00_7value_quote/makedict/read_write.json new file mode 100644 index 000000000..55d9fc353 --- /dev/null +++ b/tests/dictionaries/00_7value_quote/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "quote'" +} diff --git a/tests/dictionaries/00_8calculation_information/makedict/read_write.json b/tests/dictionaries/00_8calculation_information/makedict/read_write.json new file mode 100644 index 000000000..e11004cbe --- /dev/null +++ b/tests/dictionaries/00_8calculation_information/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "value" +} diff --git a/tests/dictionaries/00_8calculation_namespace/makedict/read_write.json b/tests/dictionaries/00_8calculation_namespace/makedict/read_write.json new file mode 100644 index 000000000..4074985f8 --- /dev/null +++ b/tests/dictionaries/00_8calculation_namespace/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "Rougail" +} diff --git a/tests/dictionaries/00_8calculation_param_namespace/makedict/read_write.json b/tests/dictionaries/00_8calculation_param_namespace/makedict/read_write.json new file mode 100644 index 000000000..4074985f8 --- /dev/null +++ b/tests/dictionaries/00_8calculation_param_namespace/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "Rougail" +} diff --git a/tests/dictionaries/00_8test/makedict/read_write.json b/tests/dictionaries/00_8test/makedict/read_write.json new file mode 100644 index 000000000..e07feb25b --- /dev/null +++ b/tests/dictionaries/00_8test/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": null, + "rougail.var2": "value", + "rougail.var3": null, + "rougail.var4": null, + "rougail.var5": true, + "rougail.var6": [] +} diff --git a/tests/dictionaries/00_9choice_variable_multi/makedict/read_write.json b/tests/dictionaries/00_9choice_variable_multi/makedict/read_write.json new file mode 100644 index 000000000..6bcec7979 --- /dev/null +++ b/tests/dictionaries/00_9choice_variable_multi/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.variable1": [], + "rougail.variable2": [] +} diff --git a/tests/dictionaries/00_9choice_variables/makedict/read_write.json b/tests/dictionaries/00_9choice_variables/makedict/read_write.json new file mode 100644 index 000000000..c9f35ac65 --- /dev/null +++ b/tests/dictionaries/00_9choice_variables/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.source_variable_1": "val1", + "rougail.source_variable_2": "val2", + "rougail.my_variable": "val1" +} diff --git a/tests/dictionaries/00_9default_calculation/makedict/read_write.json b/tests/dictionaries/00_9default_calculation/makedict/read_write.json new file mode 100644 index 000000000..2b34a6249 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "string_1_True_None" +} diff --git a/tests/dictionaries/00_9default_calculation_information/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_information/makedict/read_write.json new file mode 100644 index 000000000..39e7b0017 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "value" +} diff --git a/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/read_write.json new file mode 100644 index 000000000..5b9a1af93 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": "value" +} diff --git a/tests/dictionaries/00_9default_calculation_multi_optional/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_multi_optional/makedict/read_write.json new file mode 100644 index 000000000..18351e962 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_multi_optional/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.my_variable": "val1", + "rougail.my_calculated_variable": [ + "val1" + ] +} diff --git a/tests/dictionaries/00_9default_calculation_multi_optional2/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_multi_optional2/makedict/read_write.json new file mode 100644 index 000000000..18351e962 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_multi_optional2/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.my_variable": "val1", + "rougail.my_calculated_variable": [ + "val1" + ] +} diff --git a/tests/dictionaries/00_9default_calculation_optional/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_optional/makedict/read_write.json new file mode 100644 index 000000000..d981df165 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_optional/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.my_calculated_variable": [] +} diff --git a/tests/dictionaries/00_9default_calculation_optional_exists/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_optional_exists/makedict/read_write.json new file mode 100644 index 000000000..3519cfe58 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_optional_exists/makedict/read_write.json @@ -0,0 +1,10 @@ +{ + "rougail.my_variable": [ + "val1", + "val2" + ], + "rougail.my_calculated_variable": [ + "val1", + "val2" + ] +} diff --git a/tests/dictionaries/00_9default_calculation_param_optional/makedict/read_write.json b/tests/dictionaries/00_9default_calculation_param_optional/makedict/read_write.json new file mode 100644 index 000000000..2ff57a58f --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/00_9default_information_other_variable/makedict/read_write.json b/tests/dictionaries/00_9default_information_other_variable/makedict/read_write.json new file mode 100644 index 000000000..5b9a1af93 --- /dev/null +++ b/tests/dictionaries/00_9default_information_other_variable/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": "value" +} diff --git a/tests/dictionaries/00_9default_information_other_variable2/makedict/read_write.json b/tests/dictionaries/00_9default_information_other_variable2/makedict/read_write.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_9default_information_other_variable2/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_9default_integer/makedict/read_write.json b/tests/dictionaries/00_9default_integer/makedict/read_write.json new file mode 100644 index 000000000..e03ee5a69 --- /dev/null +++ b/tests/dictionaries/00_9default_integer/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": 9 +} diff --git a/tests/dictionaries/00_9extra/makedict/read_write.json b/tests/dictionaries/00_9extra/makedict/read_write.json new file mode 100644 index 000000000..8c254a234 --- /dev/null +++ b/tests/dictionaries/00_9extra/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.variable": "rougail", + "extra.variable": "no" +} diff --git a/tests/dictionaries/00_9extra_calculation/makedict/read_write.json b/tests/dictionaries/00_9extra_calculation/makedict/read_write.json new file mode 100644 index 000000000..053638885 --- /dev/null +++ b/tests/dictionaries/00_9extra_calculation/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": "value", + "extra.variable1": "value", + "extra.variable2": "value", + "extra.variable3": "value" +} diff --git a/tests/dictionaries/00_9extra_ouside/makedict/read_write.json b/tests/dictionaries/00_9extra_ouside/makedict/read_write.json new file mode 100644 index 000000000..6b52588d1 --- /dev/null +++ b/tests/dictionaries/00_9extra_ouside/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.variable": "value in extra", + "extra.variable": "value in extra" +} diff --git a/tests/dictionaries/01_6boolean_multi/makedict/read_write.json b/tests/dictionaries/01_6boolean_multi/makedict/read_write.json new file mode 100644 index 000000000..93be85432 --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/makedict/read_write.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": [ + true + ], + "rougail.var2": [ + true + ], + "rougail.var3": [ + true + ], + "rougail.var4": [ + false + ], + "rougail.var5": [ + false + ], + "rougail.var6": [ + false + ], + "rougail.var7": [ + true + ], + "rougail.var8": [ + true + ] +} diff --git a/tests/dictionaries/01_6custom_multi/makedict/read_write.json b/tests/dictionaries/01_6custom_multi/makedict/read_write.json new file mode 100644 index 000000000..b76cf38cc --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.custom1": [], + "rougail.custom2": [ + "value" + ] +} diff --git a/tests/dictionaries/01_6float_multi/makedict/read_write.json b/tests/dictionaries/01_6float_multi/makedict/read_write.json new file mode 100644 index 000000000..534cb8e99 --- /dev/null +++ b/tests/dictionaries/01_6float_multi/makedict/read_write.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": [ + 0.0 + ], + "rougail.var2": [ + 0.0 + ], + "rougail.var3": [ + 0.0 + ], + "rougail.var4": [ + 10.1 + ], + "rougail.var5": [ + 10.1 + ], + "rougail.var6": [ + 10.1 + ], + "rougail.var7": [ + 0.0 + ], + "rougail.var8": [ + 0.0 + ] +} diff --git a/tests/dictionaries/01_6number_multi/makedict/read_write.json b/tests/dictionaries/01_6number_multi/makedict/read_write.json new file mode 100644 index 000000000..dc357dcbc --- /dev/null +++ b/tests/dictionaries/01_6number_multi/makedict/read_write.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": [ + 0 + ], + "rougail.var2": [ + 0 + ], + "rougail.var3": [ + 0 + ], + "rougail.var4": [ + 10 + ], + "rougail.var5": [ + 10 + ], + "rougail.var6": [ + 10 + ], + "rougail.var7": [ + 0 + ], + "rougail.var8": [ + 0 + ] +} diff --git a/tests/dictionaries/01_6string_empty/makedict/read_write.json b/tests/dictionaries/01_6string_empty/makedict/read_write.json new file mode 100644 index 000000000..8b54505fe --- /dev/null +++ b/tests/dictionaries/01_6string_empty/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": [ + "value", + null + ] +} diff --git a/tests/dictionaries/01_6string_multi/makedict/read_write.json b/tests/dictionaries/01_6string_multi/makedict/read_write.json new file mode 100644 index 000000000..1e893e05f --- /dev/null +++ b/tests/dictionaries/01_6string_multi/makedict/read_write.json @@ -0,0 +1,20 @@ +{ + "rougail.var1": [], + "rougail.var2": [], + "rougail.var3": [], + "rougail.var4": [ + "value" + ], + "rougail.var5": [ + "value" + ], + "rougail.var6": [ + "value" + ], + "rougail.var7": [ + "value" + ], + "rougail.var8": [ + "value" + ] +} diff --git a/tests/dictionaries/01_7value_multi_doublequote/makedict/read_write.json b/tests/dictionaries/01_7value_multi_doublequote/makedict/read_write.json new file mode 100644 index 000000000..ed24e14c9 --- /dev/null +++ b/tests/dictionaries/01_7value_multi_doublequote/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "quote\"" + ] +} diff --git a/tests/dictionaries/01_7value_multi_doublequote2/makedict/read_write.json b/tests/dictionaries/01_7value_multi_doublequote2/makedict/read_write.json new file mode 100644 index 000000000..7fc7aab89 --- /dev/null +++ b/tests/dictionaries/01_7value_multi_doublequote2/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "quote'\"" + ] +} diff --git a/tests/dictionaries/01_7value_multi_quote/makedict/read_write.json b/tests/dictionaries/01_7value_multi_quote/makedict/read_write.json new file mode 100644 index 000000000..298816600 --- /dev/null +++ b/tests/dictionaries/01_7value_multi_quote/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "quote'" + ] +} diff --git a/tests/dictionaries/01_8calculation_information_multi/makedict/read_write.json b/tests/dictionaries/01_8calculation_information_multi/makedict/read_write.json new file mode 100644 index 000000000..186f2b32a --- /dev/null +++ b/tests/dictionaries/01_8calculation_information_multi/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "value" + ] +} diff --git a/tests/dictionaries/01_9choice_variable_multi/makedict/read_write.json b/tests/dictionaries/01_9choice_variable_multi/makedict/read_write.json new file mode 100644 index 000000000..2f58816fb --- /dev/null +++ b/tests/dictionaries/01_9choice_variable_multi/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.variable1": [ + "a", + "b", + "c" + ], + "rougail.variable2": null +} diff --git a/tests/dictionaries/04_0type_param/makedict/read_write.json b/tests/dictionaries/04_0type_param/makedict/read_write.json new file mode 100644 index 000000000..5c61db99c --- /dev/null +++ b/tests/dictionaries/04_0type_param/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.int": 10 +} diff --git a/tests/dictionaries/04_1auto_save/makedict/read_write.json b/tests/dictionaries/04_1auto_save/makedict/read_write.json new file mode 100644 index 000000000..2f1bf79ad --- /dev/null +++ b/tests/dictionaries/04_1auto_save/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "no" +} diff --git a/tests/dictionaries/04_1auto_save_and_calculated/makedict/read_write.json b/tests/dictionaries/04_1auto_save_and_calculated/makedict/read_write.json new file mode 100644 index 000000000..2ff57a58f --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/read_write.json b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/read_write.json new file mode 100644 index 000000000..81b1c83e2 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "yes" +} diff --git a/tests/dictionaries/04_1auto_save_and_hidden/makedict/read_write.json b/tests/dictionaries/04_1auto_save_and_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/04_1default_calculation_hidden/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden/makedict/read_write.json new file mode 100644 index 000000000..022d67330 --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "value", + "rougail.var3": "value" +} diff --git a/tests/dictionaries/04_1default_calculation_hidden_2/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden_2/makedict/read_write.json new file mode 100644 index 000000000..022d67330 --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden_2/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "value", + "rougail.var3": "value" +} diff --git a/tests/dictionaries/04_1default_calculation_hidden_3/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden_3/makedict/read_write.json new file mode 100644 index 000000000..fdb0f13f1 --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden_3/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var3": "value" +} diff --git a/tests/dictionaries/04_1default_calculation_hidden_4/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden_4/makedict/read_write.json new file mode 100644 index 000000000..e71b0b93e --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden_4/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var2": null, + "rougail.var3": "value" +} diff --git a/tests/dictionaries/04_1default_calculation_hidden_5/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden_5/makedict/read_write.json new file mode 100644 index 000000000..2559158e9 --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden_5/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var1": "value" +} diff --git a/tests/dictionaries/04_1default_calculation_hidden_6/makedict/read_write.json b/tests/dictionaries/04_1default_calculation_hidden_6/makedict/read_write.json new file mode 100644 index 000000000..3bb33e52c --- /dev/null +++ b/tests/dictionaries/04_1default_calculation_hidden_6/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "value", + "rougail.var3": null +} diff --git a/tests/dictionaries/04_5disabled_calculation/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation/makedict/read_write.json new file mode 100644 index 000000000..a5a53303f --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.variable1": null, + "rougail.variable2": null +} diff --git a/tests/dictionaries/04_5disabled_calculation_default/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_default/makedict/read_write.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5disabled_calculation_multi/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_multi/makedict/read_write.json new file mode 100644 index 000000000..6efda8c76 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_multi/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.variable1": [], + "rougail.variable2": [] +} diff --git a/tests/dictionaries/04_5disabled_calculation_optional/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_optional/makedict/read_write.json new file mode 100644 index 000000000..82a7895e9 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": "no" +} diff --git a/tests/dictionaries/04_5disabled_calculation_variable/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_variable/makedict/read_write.json new file mode 100644 index 000000000..a4f33cc99 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.variable": null +} diff --git a/tests/dictionaries/04_5disabled_calculation_variable2/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/read_write.json new file mode 100644 index 000000000..18b52facb --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/dictionaries/04_5disabled_calculation_variable3/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_variable3/makedict/read_write.json new file mode 100644 index 000000000..ab5be230f --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable3/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": "yes" +} diff --git a/tests/dictionaries/04_5disabled_calculation_variable4/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_variable4/makedict/read_write.json new file mode 100644 index 000000000..2365df0f3 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable4/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "yes", + "rougail.variable": null +} diff --git a/tests/dictionaries/04_5disabled_calculation_variable_multi/makedict/read_write.json b/tests/dictionaries/04_5disabled_calculation_variable_multi/makedict/read_write.json new file mode 100644 index 000000000..4832715d9 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable_multi/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.variable": [] +} diff --git a/tests/dictionaries/04_5hidden_calculation/makedict/read_write.json b/tests/dictionaries/04_5hidden_calculation/makedict/read_write.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5hidden_calculation2/makedict/read_write.json b/tests/dictionaries/04_5hidden_calculation2/makedict/read_write.json new file mode 100644 index 000000000..82a7895e9 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": "no" +} diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/read_write.json b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/read_write.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5validators/makedict/read_write.json b/tests/dictionaries/04_5validators/makedict/read_write.json new file mode 100644 index 000000000..f6f915662 --- /dev/null +++ b/tests/dictionaries/04_5validators/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.int": null +} diff --git a/tests/dictionaries/04_5validators_differ/makedict/read_write.json b/tests/dictionaries/04_5validators_differ/makedict/read_write.json new file mode 100644 index 000000000..204ef25f6 --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "oui", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5validators_multi/makedict/read_write.json b/tests/dictionaries/04_5validators_multi/makedict/read_write.json new file mode 100644 index 000000000..8a8a50173 --- /dev/null +++ b/tests/dictionaries/04_5validators_multi/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": [ + "no", + "yes" + ] +} diff --git a/tests/dictionaries/04_5validators_multi2/makedict/read_write.json b/tests/dictionaries/04_5validators_multi2/makedict/read_write.json new file mode 100644 index 000000000..8a8a50173 --- /dev/null +++ b/tests/dictionaries/04_5validators_multi2/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": [ + "no", + "yes" + ] +} diff --git a/tests/dictionaries/04_5validators_multi3/makedict/after.json b/tests/dictionaries/04_5validators_multi3/makedict/after.json new file mode 100644 index 000000000..6bf9a692e --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0, + 1, + 2 + ] + } +} diff --git a/tests/dictionaries/04_5validators_multi3/makedict/base.json b/tests/dictionaries/04_5validators_multi3/makedict/base.json new file mode 100644 index 000000000..3e228e1fc --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/makedict/base.json @@ -0,0 +1,7 @@ +{ + "rougail.var1": [ + 0, + 1, + 2 + ] +} diff --git a/tests/dictionaries/04_5validators_multi3/makedict/before.json b/tests/dictionaries/04_5validators_multi3/makedict/before.json new file mode 100644 index 000000000..6bf9a692e --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0, + 1, + 2 + ] + } +} diff --git a/tests/dictionaries/04_5validators_multi3/makedict/mandatory.json b/tests/dictionaries/04_5validators_multi3/makedict/mandatory.json new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/makedict/mandatory.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/dictionaries/04_5validators_multi3/makedict/read_write.json b/tests/dictionaries/04_5validators_multi3/makedict/read_write.json new file mode 100644 index 000000000..3e228e1fc --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/makedict/read_write.json @@ -0,0 +1,7 @@ +{ + "rougail.var1": [ + 0, + 1, + 2 + ] +} diff --git a/tests/dictionaries/04_5validators_multi3/tiramisu/base.py b/tests/dictionaries/04_5validators_multi3/tiramisu/base.py new file mode 100644 index 000000000..75af1f6ec --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +try: + groups.namespace +except: + groups.addgroup('namespace') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.var1'] = "{% if _.var1 != index %}\n value != than index\n{% endif %}" +option_2 = IntOption(name="var1", doc="a second variable", multi=True, default=[0, 1, 2], default_multi=0, validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__internal_files': ParamValue(['../rougail-tests/structures/04_5validators_multi3/rougail/00-base.yml']), '__internal_attribute': ParamValue("validators"), '__internal_variable': ParamValue("rougail.var1"), 'index': ParamIndex(), '_.var1': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/04_5validators_multi3/rougail/00-base.yml'], 'type': 'number'}) +optiondescription_1 = OptionDescription(name="rougail", doc="Rougail", group_type=groups.namespace, children=[option_2], properties=frozenset({"standard"}), informations={'ymlfiles': ['']}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators_multi3/tiramisu/no_namespace.py b/tests/dictionaries/04_5validators_multi3/tiramisu/no_namespace.py new file mode 100644 index 000000000..325b2eda8 --- /dev/null +++ b/tests/dictionaries/04_5validators_multi3/tiramisu/no_namespace.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_var1'] = "{% if _.var1 != index %}\n value != than index\n{% endif %}" +option_1 = IntOption(name="var1", doc="a second variable", multi=True, default=[0, 1, 2], default_multi=0, validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__internal_files': ParamValue(['../rougail-tests/structures/04_5validators_multi3/rougail/00-base.yml']), '__internal_attribute': ParamValue("validators"), '__internal_variable': ParamValue("var1"), 'index': ParamIndex(), '_.var1': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/04_5validators_multi3/rougail/00-base.yml'], 'type': 'number'}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) diff --git a/tests/dictionaries/05_0multi_not_uniq/makedict/read_write.json b/tests/dictionaries/05_0multi_not_uniq/makedict/read_write.json new file mode 100644 index 000000000..01a632646 --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": [ + "non" + ] +} diff --git a/tests/dictionaries/05_0multi_uniq/makedict/read_write.json b/tests/dictionaries/05_0multi_uniq/makedict/read_write.json new file mode 100644 index 000000000..adf2cb213 --- /dev/null +++ b/tests/dictionaries/05_0multi_uniq/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "non" + ] +} diff --git a/tests/dictionaries/12_1auto_save_expert/makedict/read_write.json b/tests/dictionaries/12_1auto_save_expert/makedict/read_write.json new file mode 100644 index 000000000..3535d0d51 --- /dev/null +++ b/tests/dictionaries/12_1auto_save_expert/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "no" +} diff --git a/tests/dictionaries/16_0redefine_description/makedict/read_write.json b/tests/dictionaries/16_0redefine_description/makedict/read_write.json new file mode 100644 index 000000000..bae2c8fbf --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": null +} diff --git a/tests/dictionaries/16_2family_redefine_calculation/makedict/read_write.json b/tests/dictionaries/16_2family_redefine_calculation/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_calculation/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/16_2family_redefine_disabled/makedict/read_write.json b/tests/dictionaries/16_2family_redefine_disabled/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_disabled/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/16_3family_empty_at_ends/makedict/read_write.json b/tests/dictionaries/16_3family_empty_at_ends/makedict/read_write.json new file mode 100644 index 000000000..52ba9fee2 --- /dev/null +++ b/tests/dictionaries/16_3family_empty_at_ends/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.var1": null +} diff --git a/tests/dictionaries/16_5exists_nonexists/makedict/read_write.json b/tests/dictionaries/16_5exists_nonexists/makedict/read_write.json new file mode 100644 index 000000000..81b1c83e2 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "yes" +} diff --git a/tests/dictionaries/16_5exists_redefine/makedict/read_write.json b/tests/dictionaries/16_5exists_redefine/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/16_5redefine_calculation/makedict/read_write.json b/tests/dictionaries/16_5redefine_calculation/makedict/read_write.json new file mode 100644 index 000000000..953b0cbf9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "yes" +} diff --git a/tests/dictionaries/16_5redefine_choice/makedict/read_write.json b/tests/dictionaries/16_5redefine_choice/makedict/read_write.json new file mode 100644 index 000000000..774ccc4b5 --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": null +} diff --git a/tests/dictionaries/16_5redefine_default/makedict/read_write.json b/tests/dictionaries/16_5redefine_default/makedict/read_write.json new file mode 100644 index 000000000..953b0cbf9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "yes" +} diff --git a/tests/dictionaries/16_5redefine_default_calculation/makedict/read_write.json b/tests/dictionaries/16_5redefine_default_calculation/makedict/read_write.json new file mode 100644 index 000000000..774ccc4b5 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": null +} diff --git a/tests/dictionaries/16_5redefine_family/makedict/read_write.json b/tests/dictionaries/16_5redefine_family/makedict/read_write.json new file mode 100644 index 000000000..e0dab7f42 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.variable": null +} diff --git a/tests/dictionaries/16_5redefine_help/makedict/read_write.json b/tests/dictionaries/16_5redefine_help/makedict/read_write.json new file mode 100644 index 000000000..e0dab7f42 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.variable": null +} diff --git a/tests/dictionaries/16_5redefine_hidden/makedict/read_write.json b/tests/dictionaries/16_5redefine_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/16_5redefine_multi/makedict/read_write.json b/tests/dictionaries/16_5redefine_multi/makedict/read_write.json new file mode 100644 index 000000000..adf2cb213 --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "non" + ] +} diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/read_write.json b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/read_write.json new file mode 100644 index 000000000..e61f106cd --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.variable": null +} diff --git a/tests/dictionaries/16_5test_redefine/makedict/read_write.json b/tests/dictionaries/16_5test_redefine/makedict/read_write.json new file mode 100644 index 000000000..2f1c1f3b0 --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "no", + "rougail.var2": "non", + "rougail.var3": null +} diff --git a/tests/dictionaries/16_6choice_redefine/makedict/read_write.json b/tests/dictionaries/16_6choice_redefine/makedict/read_write.json new file mode 100644 index 000000000..bcd0f0d54 --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "c" +} diff --git a/tests/dictionaries/16_6exists_family/makedict/read_write.json b/tests/dictionaries/16_6exists_family/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/16_6exists_family/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/16_6exists_redefine_family/makedict/read_write.json b/tests/dictionaries/16_6exists_redefine_family/makedict/read_write.json new file mode 100644 index 000000000..34aedc369 --- /dev/null +++ b/tests/dictionaries/16_6exists_redefine_family/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.family1.variable1": null, + "rougail.family2.variable2": null +} diff --git a/tests/dictionaries/16exists_exists/makedict/read_write.json b/tests/dictionaries/16exists_exists/makedict/read_write.json new file mode 100644 index 000000000..bae2c8fbf --- /dev/null +++ b/tests/dictionaries/16exists_exists/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": null +} diff --git a/tests/dictionaries/17_5redefine_leadership/makedict/read_write.json b/tests/dictionaries/17_5redefine_leadership/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/17_5redefine_leadership/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/20_0empty_family/makedict/read_write.json b/tests/dictionaries/20_0empty_family/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/20_0empty_family/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/20_0family_append/makedict/read_write.json b/tests/dictionaries/20_0family_append/makedict/read_write.json new file mode 100644 index 000000000..9453c7a9b --- /dev/null +++ b/tests/dictionaries/20_0family_append/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.family.var1": null, + "rougail.family.var2": null +} diff --git a/tests/dictionaries/20_0family_underscore/makedict/read_write.json b/tests/dictionaries/20_0family_underscore/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/20_0family_underscore/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/20_0multi_family/makedict/read_write.json b/tests/dictionaries/20_0multi_family/makedict/read_write.json new file mode 100644 index 000000000..8c45b296b --- /dev/null +++ b/tests/dictionaries/20_0multi_family/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.subfamily.variable": null +} diff --git a/tests/dictionaries/20_0multi_family_basic/makedict/read_write.json b/tests/dictionaries/20_0multi_family_basic/makedict/read_write.json new file mode 100644 index 000000000..8c45b296b --- /dev/null +++ b/tests/dictionaries/20_0multi_family_basic/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.subfamily.variable": null +} diff --git a/tests/dictionaries/20_0multi_family_expert/makedict/read_write.json b/tests/dictionaries/20_0multi_family_expert/makedict/read_write.json new file mode 100644 index 000000000..8c45b296b --- /dev/null +++ b/tests/dictionaries/20_0multi_family_expert/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.subfamily.variable": null +} diff --git a/tests/dictionaries/20_0multi_family_order/makedict/read_write.json b/tests/dictionaries/20_0multi_family_order/makedict/read_write.json new file mode 100644 index 000000000..a54a68832 --- /dev/null +++ b/tests/dictionaries/20_0multi_family_order/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": null, + "rougail.family.variable1": null, + "rougail.family.subfamily.variable": null, + "rougail.family.variable2": null +} diff --git a/tests/dictionaries/20_0validators_differ_redefine/makedict/read_write.json b/tests/dictionaries/20_0validators_differ_redefine/makedict/read_write.json new file mode 100644 index 000000000..ed83b2693 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "no", + "rougail.var2": "no", + "rougail.var3": "yes" +} diff --git a/tests/dictionaries/20_1empty_subfamily/makedict/read_write.json b/tests/dictionaries/20_1empty_subfamily/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/20_1empty_subfamily/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/20_9default_information_parent/makedict/read_write.json b/tests/dictionaries/20_9default_information_parent/makedict/read_write.json new file mode 100644 index 000000000..7de7a15f4 --- /dev/null +++ b/tests/dictionaries/20_9default_information_parent/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.family.var1": null, + "rougail.family.var2": "value" +} diff --git a/tests/dictionaries/20_9family_absolute/makedict/read_write.json b/tests/dictionaries/20_9family_absolute/makedict/read_write.json new file mode 100644 index 000000000..e2c3cf456 --- /dev/null +++ b/tests/dictionaries/20_9family_absolute/makedict/read_write.json @@ -0,0 +1,15 @@ +{ + "var1": null, + "family.var2": null, + "family.subfamily.variable": [ + null, + null + ], + "family2.var2": null, + "family2.var3": "string4", + "family2.subfamily.variable": [ + null, + null, + "string4" + ] +} diff --git a/tests/dictionaries/24_0family_hidden_condition/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_condition/makedict/read_write.json new file mode 100644 index 000000000..14b822e42 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.family.var1": null +} diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/read_write.json new file mode 100644 index 000000000..c10da9af3 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": false +} diff --git a/tests/dictionaries/24_0family_hidden_condition_sub_family/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_condition_sub_family/makedict/read_write.json new file mode 100644 index 000000000..26bc4f77d --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_sub_family/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.family.subfamily.var1": null +} diff --git a/tests/dictionaries/24_0family_hidden_condition_variable_sub_family/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_condition_variable_sub_family/makedict/read_write.json new file mode 100644 index 000000000..18b52facb --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_variable_sub_family/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/read_write.json new file mode 100644 index 000000000..09a102307 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition1": false, + "rougail.condition2": false +} diff --git a/tests/dictionaries/24_0family_hidden_param_condition_sub_family/makedict/read_write.json b/tests/dictionaries/24_0family_hidden_param_condition_sub_family/makedict/read_write.json new file mode 100644 index 000000000..fbe122e80 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_param_condition_sub_family/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.family.sub_family.var1": null +} diff --git a/tests/dictionaries/24_0family_mandatory_condition/makedict/read_write.json b/tests/dictionaries/24_0family_mandatory_condition/makedict/read_write.json new file mode 100644 index 000000000..71e7314aa --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.var": null +} diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/read_write.json b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/read_write.json new file mode 100644 index 000000000..63739a930 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": true, + "rougail.var": null +} diff --git a/tests/dictionaries/24_7validators_variable_optional/makedict/read_write.json b/tests/dictionaries/24_7validators_variable_optional/makedict/read_write.json new file mode 100644 index 000000000..3cc39015e --- /dev/null +++ b/tests/dictionaries/24_7validators_variable_optional/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.general.int": null, + "rougail.general.int2": 1 +} diff --git a/tests/dictionaries/24_family_disabled_var_hidden/makedict/read_write.json b/tests/dictionaries/24_family_disabled_var_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/24_family_disabled_var_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/40_0leadership/makedict/read_write.json b/tests/dictionaries/40_0leadership/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_diff_name/makedict/read_write.json b/tests/dictionaries/40_0leadership_diff_name/makedict/read_write.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_empty/makedict/read_write.json b/tests/dictionaries/40_0leadership_empty/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/40_0leadership_empty/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/read_write.json b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/read_write.json b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/read_write.json new file mode 100644 index 000000000..1b63ab163 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "leader", + "rougail.leader.follower1": [ + "value" + ], + "rougail.leader.follower2": [ + "value1", + "value2" + ] + } + ] +} diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/read_write.json b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/read_write.json new file mode 100644 index 000000000..c6ed0b45e --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/read_write.json @@ -0,0 +1,13 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "leader", + "rougail.leader.follower1": [ + "value" + ], + "rougail.leader.follower2": [ + "value" + ] + } + ] +} diff --git a/tests/dictionaries/40_0leadership_follower_default_value/makedict/read_write.json b/tests/dictionaries/40_0leadership_follower_default_value/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_leader_follower/makedict/read_write.json b/tests/dictionaries/40_0leadership_leader_follower/makedict/read_write.json new file mode 100644 index 000000000..c077479f8 --- /dev/null +++ b/tests/dictionaries/40_0leadership_leader_follower/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.leadership.leader": [ + { + "rougail.leadership.leader": "value1", + "rougail.leadership.follower": "value1" + }, + { + "rougail.leadership.leader": "value2", + "rougail.leadership.follower": "value2" + } + ] +} diff --git a/tests/dictionaries/40_0leadership_leader_not_multi/makedict/read_write.json b/tests/dictionaries/40_0leadership_leader_not_multi/makedict/read_write.json new file mode 100644 index 000000000..14aaf55f0 --- /dev/null +++ b/tests/dictionaries/40_0leadership_leader_not_multi/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.general.mode_conteneur_actif": "non", + "rougail.general1.leader.leader": [] +} diff --git a/tests/dictionaries/40_1leadership_append_follower/makedict/read_write.json b/tests/dictionaries/40_1leadership_append_follower/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_2leadership_calculation_index/makedict/read_write.json b/tests/dictionaries/40_2leadership_calculation_index/makedict/read_write.json new file mode 100644 index 000000000..33b6cf4f7 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_index/makedict/read_write.json @@ -0,0 +1,16 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a", + "rougail.leader.follower1": 0 + }, + { + "rougail.leader.leader": "b", + "rougail.leader.follower1": 1 + }, + { + "rougail.leader.leader": "c", + "rougail.leader.follower1": 2 + } + ] +} diff --git a/tests/dictionaries/40_2leadership_calculation_param_index/makedict/read_write.json b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/read_write.json new file mode 100644 index 000000000..33b6cf4f7 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/read_write.json @@ -0,0 +1,16 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a", + "rougail.leader.follower1": 0 + }, + { + "rougail.leader.leader": "b", + "rougail.leader.follower1": 1 + }, + { + "rougail.leader.leader": "c", + "rougail.leader.follower1": 2 + } + ] +} diff --git a/tests/dictionaries/40_2leadership_leader_calculation/makedict/read_write.json b/tests/dictionaries/40_2leadership_leader_calculation/makedict/read_write.json new file mode 100644 index 000000000..79bae0fba --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "val1", + "rougail.leader.follower1": null, + "rougail.leader.follower2": null + }, + { + "rougail.leader.leader": "val2", + "rougail.leader.follower1": null, + "rougail.leader.follower2": null + } + ] +} diff --git a/tests/dictionaries/40_6leadership_follower_multi/makedict/read_write.json b/tests/dictionaries/40_6leadership_follower_multi/makedict/read_write.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/after.json b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/after.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/base.json b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/base.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/before.json b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/before.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/mandatory.json b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/mandatory.json new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/mandatory.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/read_write.json b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/read_write.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/base.py b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/base.py new file mode 100644 index 000000000..33df42ba8 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/base.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +try: + groups.namespace +except: + groups.addgroup('namespace') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"standard"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +option_4 = StrOption(name="follower1", doc="The first follower", multi=submulti, properties=frozenset({"basic", "mandatory"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +option_5 = StrOption(name="follower2", doc="The second follower", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_2 = Leadership(name="leadership", doc="A leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml']}) +optiondescription_1 = OptionDescription(name="rougail", doc="Rougail", group_type=groups.namespace, children=[optiondescription_2], properties=frozenset({"basic"}), informations={'ymlfiles': ['']}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/no_namespace.py b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/no_namespace.py new file mode 100644 index 000000000..762c85d01 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi_no_mandatory/tiramisu/no_namespace.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"standard"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +option_3 = StrOption(name="follower1", doc="The first follower", multi=submulti, properties=frozenset({"basic", "mandatory"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +option_4 = StrOption(name="follower2", doc="The second follower", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_1 = Leadership(name="leadership", doc="A leadership", children=[option_2, option_3, option_4], properties=frozenset({"basic"}), informations={'ymlfiles': ['../rougail-tests/structures/40_6leadership_follower_multi_no_mandatory/rougail/00-base.yml']}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_boolean/makedict/read_write.json b/tests/dictionaries/40_8calculation_boolean/makedict/read_write.json new file mode 100644 index 000000000..199f470ff --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/makedict/read_write.json @@ -0,0 +1,10 @@ +{ + "rougail.bool": false, + "rougail.multi1": [ + false + ], + "rougail.multi2": [ + true, + false + ] +} diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/makedict/read_write.json b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/read_write.json new file mode 100644 index 000000000..78b819413 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "yes", + "rougail.var2": null +} diff --git a/tests/dictionaries/40_8calculation_integer/makedict/read_write.json b/tests/dictionaries/40_8calculation_integer/makedict/read_write.json new file mode 100644 index 000000000..260362645 --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.bool": false, + "rougail.int1": 2, + "rougail.int2": 3 +} diff --git a/tests/dictionaries/40_8calculation_multi_variable/makedict/read_write.json b/tests/dictionaries/40_8calculation_multi_variable/makedict/read_write.json new file mode 100644 index 000000000..e2e3fdd72 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "no", + "yes" + ], + "rougail.var2": "no", + "rougail.var3": "yes" +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/read_write.json b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/read_write.json new file mode 100644 index 000000000..10235eb9a --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": "no", + "rougail.fam1.var": "no" +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/read_write.json b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/read_write.json new file mode 100644 index 000000000..3c5c036a0 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.fam1.var": "no", + "rougail.fam2.var": "no" +} diff --git a/tests/dictionaries/40_9calculation_variable_leader_follower_multi_inside/makedict/read_write.json b/tests/dictionaries/40_9calculation_variable_leader_follower_multi_inside/makedict/read_write.json new file mode 100644 index 000000000..e3cd4f3ba --- /dev/null +++ b/tests/dictionaries/40_9calculation_variable_leader_follower_multi_inside/makedict/read_write.json @@ -0,0 +1,16 @@ +{ + "rougail.leadership.leader": [ + { + "rougail.leadership.leader": "value1", + "rougail.leadership.follower": [ + "value1" + ] + }, + { + "rougail.leadership.leader": "value2", + "rougail.leadership.follower": [ + "value2" + ] + } + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-follower-first/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-follower-first/makedict/read_write.json new file mode 100644 index 000000000..ad3b74016 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-follower-first/makedict/read_write.json @@ -0,0 +1,17 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": [ + "val11" + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-follower-last/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-follower-last/makedict/read_write.json new file mode 100644 index 000000000..ad3b74016 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-follower-last/makedict/read_write.json @@ -0,0 +1,17 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": [ + "val11" + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-follower-no-mandatory/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-follower-no-mandatory/makedict/read_write.json new file mode 100644 index 000000000..07135b499 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-follower-no-mandatory/makedict/read_write.json @@ -0,0 +1,16 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a", + "rougail.leader.follower": null + }, + { + "rougail.leader.leader": "b", + "rougail.leader.follower": null + } + ], + "rougail.variable": [ + null, + null + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-follower/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-follower/makedict/read_write.json new file mode 100644 index 000000000..56db42ba7 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-follower/makedict/read_write.json @@ -0,0 +1,18 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": [ + "val11", + "val11" + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-leader-first/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-leader-first/makedict/read_write.json new file mode 100644 index 000000000..8ee5037b3 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-leader-first/makedict/read_write.json @@ -0,0 +1,15 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": "value1" +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-leader-last/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-leader-last/makedict/read_write.json new file mode 100644 index 000000000..877ce5165 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-leader-last/makedict/read_write.json @@ -0,0 +1,15 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": "value2" +} diff --git a/tests/dictionaries/40_9leadership-calculation-outside-leader/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-outside-leader/makedict/read_write.json new file mode 100644 index 000000000..909f30d62 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-outside-leader/makedict/read_write.json @@ -0,0 +1,18 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ], + "rougail.calculate": [ + "value1", + "value2" + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-variable/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-variable/makedict/read_write.json new file mode 100644 index 000000000..f57f0ac29 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-variable/makedict/read_write.json @@ -0,0 +1,18 @@ +{ + "rougail.calculate": [ + "value1", + "value2" + ], + "rougail.leader.leader": [ + { + "rougail.leader.leader": "value1", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + }, + { + "rougail.leader.leader": "value2", + "rougail.leader.follower1": "val11", + "rougail.leader.follower2": "val21" + } + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-variable_leader_follower/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-variable_leader_follower/makedict/read_write.json new file mode 100644 index 000000000..0c042a9a1 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-variable_leader_follower/makedict/read_write.json @@ -0,0 +1,22 @@ +{ + "rougail.leadership_1.leader": [ + { + "rougail.leadership_1.leader": "value1", + "rougail.leadership_1.follower": null + }, + { + "rougail.leadership_1.leader": "value2", + "rougail.leadership_1.follower": null + } + ], + "rougail.leadership_2.leader": [ + { + "rougail.leadership_2.leader": null, + "rougail.leadership_2.follower": "val" + }, + { + "rougail.leadership_2.leader": null, + "rougail.leadership_2.follower": "val" + } + ] +} diff --git a/tests/dictionaries/40_9leadership-calculation-variable_leader_follower_not_same/makedict/read_write.json b/tests/dictionaries/40_9leadership-calculation-variable_leader_follower_not_same/makedict/read_write.json new file mode 100644 index 000000000..acd045e84 --- /dev/null +++ b/tests/dictionaries/40_9leadership-calculation-variable_leader_follower_not_same/makedict/read_write.json @@ -0,0 +1,28 @@ +{ + "rougail.leadership_1.leader": [ + { + "rougail.leadership_1.leader": "value1", + "rougail.leadership_1.follower": null + }, + { + "rougail.leadership_1.leader": "value2", + "rougail.leadership_1.follower": null + } + ], + "rougail.leadership_2.leader": [ + { + "rougail.leadership_2.leader": "value1", + "rougail.leadership_2.follower": [ + "value1", + "value2" + ] + }, + { + "rougail.leadership_2.leader": "value2", + "rougail.leadership_2.follower": [ + "value1", + "value2" + ] + } + ] +} diff --git a/tests/dictionaries/41_0choice_leader/makedict/read_write.json b/tests/dictionaries/41_0choice_leader/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_0leadership_hidden/makedict/read_write.json b/tests/dictionaries/44_0leadership_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/44_0leadership_leader_hidden/makedict/read_write.json b/tests/dictionaries/44_0leadership_leader_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/read_write.json b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/44_4disabled_calcultion_follower/makedict/read_write.json b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/read_write.json new file mode 100644 index 000000000..c9fa35770 --- /dev/null +++ b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.condition": true, + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a", + "rougail.leader.follower": null + } + ] +} diff --git a/tests/dictionaries/44_4leadership_mandatory/makedict/read_write.json b/tests/dictionaries/44_4leadership_mandatory/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/makedict/read_write.json b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/read_write.json b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/read_write.json new file mode 100644 index 000000000..82a7895e9 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": "no" +} diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/read_write.json b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/read_write.json new file mode 100644 index 000000000..092fe27a9 --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "yes", + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/read_write.json b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/read_write.json new file mode 100644 index 000000000..8358e5c1a --- /dev/null +++ b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/read_write.json @@ -0,0 +1,11 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a" + }, + { + "rougail.leader.leader": "b", + "rougail.leader.follower": "b" + } + ] +} diff --git a/tests/dictionaries/60_0family_dynamic/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic/makedict/read_write.json new file mode 100644 index 000000000..475b83369 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": null, + "rougail.dynval2.var": null +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_0/makedict/read_write.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.vardyn": null, + "rougail.dynval2.vardyn": null +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_0_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/read_write.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.vardyn": null, + "rougail.dynval2.vardyn": null +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_0_type_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_1_1/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_1/makedict/read_write.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.vardyn": null, + "rougail.dynval2.vardyn": null +} diff --git a/tests/dictionaries/60_0family_dynamic_1_1_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_1_1_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_forbidden_char/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_forbidden_char/makedict/read_write.json new file mode 100644 index 000000000..d85c7b561 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_forbidden_char/makedict/read_write.json @@ -0,0 +1,10 @@ +{ + "rougail.var": [ + "val.1", + "val.2" + ], + "rougail.dynval_1.var1": "val.1", + "rougail.dynval_1.var2": "val.1", + "rougail.dynval_2.var1": "val.2", + "rougail.dynval_2.var2": "val.2" +} diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/read_write.json new file mode 100644 index 000000000..a54369369 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var": [ + 1, + 2 + ], + "rougail.dyn1.var": "val", + "rougail.dyn2.var": "val", + "rougail.var2": "val" +} diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_jinja_number_empty/makedict/read_write.json new file mode 100644 index 000000000..cd9083c3d --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_0family_dynamic_no_description/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_no_description/makedict/read_write.json new file mode 100644 index 000000000..475b83369 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_no_description/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": null, + "rougail.dynval2.var": null +} diff --git a/tests/dictionaries/60_0family_dynamic_no_description_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_no_description_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_no_description_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_static/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_static/makedict/read_write.json new file mode 100644 index 000000000..db2d079cd --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_static/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.dynval1.var": null, + "rougail.dynval2.var": null +} diff --git a/tests/dictionaries/60_0family_dynamic_test/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_test/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_test/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_upper_char/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_upper_char/makedict/read_write.json new file mode 100644 index 000000000..178e1eac1 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_upper_char/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "Val1", + "VAL2" + ], + "rougail.dynval1.var": null, + "rougail.dynval2.var": null +} diff --git a/tests/dictionaries/60_0family_dynamic_variable_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_variable_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_dynamic_variable_suffix/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_variable_suffix/makedict/read_write.json new file mode 100644 index 000000000..f343fedb2 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_suffix/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": "a value", + "rougail.dynval2.var": "a value" +} diff --git a/tests/dictionaries/60_0family_dynamic_variable_suffix_empty/makedict/read_write.json b/tests/dictionaries/60_0family_dynamic_variable_suffix_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_suffix_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_0family_empty/makedict/read_write.json b/tests/dictionaries/60_0family_empty/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/60_0family_empty/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/60_0family_hidden/makedict/read_write.json b/tests/dictionaries/60_0family_hidden/makedict/read_write.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/tests/dictionaries/60_0family_hidden/makedict/read_write.json @@ -0,0 +1 @@ +{} diff --git a/tests/dictionaries/60_0family_mode/makedict/read_write.json b/tests/dictionaries/60_0family_mode/makedict/read_write.json new file mode 100644 index 000000000..9a00436c2 --- /dev/null +++ b/tests/dictionaries/60_0family_mode/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.family.var": "non" +} diff --git a/tests/dictionaries/60_1family_dynamic_jinja/makedict/read_write.json b/tests/dictionaries/60_1family_dynamic_jinja/makedict/read_write.json new file mode 100644 index 000000000..a0f79d18a --- /dev/null +++ b/tests/dictionaries/60_1family_dynamic_jinja/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dyn1.var": "val", + "rougail.dyn2.var": "val" +} diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/makedict/read_write.json new file mode 100644 index 000000000..5dd964f8a --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.family.var": null, + "rougail.dynval2.family.var": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/makedict/read_write.json new file mode 100644 index 000000000..646465547 --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.family.var": "val1", + "rougail.dynval2.family.var": "val2", + "rougail.var2": "val1" +} diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2_empty/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2_empty/makedict/read_write.json new file mode 100644 index 000000000..cd9083c3d --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_empty/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_empty/makedict/read_write.json new file mode 100644 index 000000000..a20d18a3f --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_2family_dynamic_outside_calc/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_outside_calc/makedict/read_write.json new file mode 100644 index 000000000..b801934cd --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_outside_calc/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.var": "val", + "rougail.dynval2.var": "val", + "rougail.newvar": "val" +} diff --git a/tests/dictionaries/60_2family_dynamic_outside_calc_empty/makedict/read_write.json b/tests/dictionaries/60_2family_dynamic_outside_calc_empty/makedict/read_write.json new file mode 100644 index 000000000..5dbbc8de5 --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_outside_calc_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.newvar": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc2/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc2/makedict/read_write.json new file mode 100644 index 000000000..04e44d849 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc2/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.var2": null, + "rougail.dynval1.vardyn": "val", + "rougail.dynval2.vardyn": "val" +} diff --git a/tests/dictionaries/60_5family_dynamic_calc2_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc2_empty/makedict/read_write.json new file mode 100644 index 000000000..cd9083c3d --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc2_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix/makedict/read_write.json new file mode 100644 index 000000000..ee36abfe2 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.var": null, + "rougail.dynval2.var": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix2/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix2/makedict/read_write.json new file mode 100644 index 000000000..b95d649ef --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix2/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": "val1", + "rougail.dynval2.var": "val2" +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix2_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix2_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix2_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled/makedict/read_write.json new file mode 100644 index 000000000..655a2af68 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.dynval2.var": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled2/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled2/makedict/read_write.json new file mode 100644 index 000000000..a20d18a3f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_disabled2/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty/makedict/read_write.json new file mode 100644 index 000000000..a20d18a3f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_2/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_2/makedict/read_write.json new file mode 100644 index 000000000..a20d18a3f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_2/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_3/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_3/makedict/read_write.json new file mode 100644 index 000000000..4b4cc1083 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_empty_3/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var2": null, + "rougail.var1": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_param/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/makedict/read_write.json new file mode 100644 index 000000000..b95d649ef --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": "val1", + "rougail.dynval2.var": "val2" +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_param_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_suffix_param_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_param_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_variable/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_variable/makedict/read_write.json new file mode 100644 index 000000000..ee36abfe2 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_variable/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.var": null, + "rougail.dynval2.var": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_calc_variable_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_calc_variable_empty/makedict/read_write.json new file mode 100644 index 000000000..a20d18a3f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_variable_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_5family_dynamic_hidden_suffix/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_hidden_suffix/makedict/read_write.json new file mode 100644 index 000000000..581c63120 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_hidden_suffix/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.dynval1.var": null, + "rougail.dynval1.family.var": null +} diff --git a/tests/dictionaries/60_5family_dynamic_unknown_suffix/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_unknown_suffix/makedict/read_write.json new file mode 100644 index 000000000..c0f2fc5fe --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_unknown_suffix/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.val1_dyn.var1": "val1", + "rougail.val1_dyn.var2": "val1", + "rougail.val1_dyn.var3": "val1", + "rougail.val2_dyn.var1": "val2", + "rougail.val2_dyn.var2": "val2", + "rougail.val2_dyn.var3": "val2" +} diff --git a/tests/dictionaries/60_5family_dynamic_unknown_suffix_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_unknown_suffix_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_unknown_suffix_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside/makedict/read_write.json new file mode 100644 index 000000000..8bde92058 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.my_dyn_family_val1.var": "val1", + "rougail.my_dyn_family_val2.var": "val2", + "rougail.var2": [ + "val1", + "val2" + ] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside2/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside2/makedict/read_write.json new file mode 100644 index 000000000..26d5f93e7 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside2/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var2": [ + "val1", + "val2" + ], + "rougail.var": [ + "val1", + "val2" + ], + "rougail.my_dyn_family_val1.var": "val1", + "rougail.my_dyn_family_val2.var": "val2" +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside2_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside2_empty/makedict/read_write.json new file mode 100644 index 000000000..9323db63f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside2_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var2": [], + "rougail.var": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_1_0/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_1_0/makedict/read_write.json new file mode 100644 index 000000000..8bde92058 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_1_0/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.my_dyn_family_val1.var": "val1", + "rougail.my_dyn_family_val2.var": "val2", + "rougail.var2": [ + "val1", + "val2" + ] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_empty/makedict/read_write.json new file mode 100644 index 000000000..287085aaf --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_jinja/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_jinja/makedict/read_write.json new file mode 100644 index 000000000..8bde92058 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_jinja/makedict/read_write.json @@ -0,0 +1,12 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.my_dyn_family_val1.var": "val1", + "rougail.my_dyn_family_val2.var": "val2", + "rougail.var2": [ + "val1", + "val2" + ] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_jinja_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_jinja_empty/makedict/read_write.json new file mode 100644 index 000000000..287085aaf --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_jinja_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/makedict/read_write.json new file mode 100644 index 000000000..c38e18373 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.my_dyn_family_val1.subdyn_val1.var": "val1", + "rougail.my_dyn_family_val1.subdyn_val2.var": "val2", + "rougail.my_dyn_family_val2.subdyn_val1.var": "val1", + "rougail.my_dyn_family_val2.subdyn_val2.var": "val2", + "rougail.var2": [ + "val1", + "val2" + ] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix_empty/makedict/read_write.json new file mode 100644 index 000000000..287085aaf --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": [] +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/makedict/read_write.json new file mode 100644 index 000000000..8b0a30399 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dyn_val1.var": "val1", + "rougail.dyn_val2.var": "val2", + "rougail.var2": "val1" +} diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_suffix_empty/makedict/read_write.json b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix_empty/makedict/read_write.json new file mode 100644 index 000000000..cd9083c3d --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix_empty/makedict/read_write.json @@ -0,0 +1,4 @@ +{ + "rougail.var": [], + "rougail.var2": null +} diff --git a/tests/dictionaries/60_6family_dynamic_inside/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_inside/makedict/read_write.json new file mode 100644 index 000000000..a34bde9c4 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_inside/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.val1_dyn.var1": "val1", + "rougail.val1_dyn.var2": "val1", + "rougail.val1_dyn.var3": "val1", + "rougail.val1_dyn.var4": "val1", + "rougail.val2_dyn.var1": "val2", + "rougail.val2_dyn.var2": "val2", + "rougail.val2_dyn.var3": "val2", + "rougail.val2_dyn.var4": "val1" +} diff --git a/tests/dictionaries/60_6family_dynamic_inside_empty/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_inside_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_inside_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_6family_dynamic_leadership/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_leadership/makedict/read_write.json new file mode 100644 index 000000000..982d4860a --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_leadership/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.leadership.leader": [], + "rougail.dynval2.leadership.leader": [] +} diff --git a/tests/dictionaries/60_6family_dynamic_leadership_empty/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_leadership_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_leadership_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic/makedict/read_write.json new file mode 100644 index 000000000..07461b674 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic/makedict/read_write.json @@ -0,0 +1,26 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": [ + "tval1", + "tval2" + ], + "rougail.dynval1.dyn_tval1.var": "tval1", + "rougail.dynval1.dyn_tval1.var_identifier": "val1", + "rougail.dynval1.dyn_tval1.var_identifiers": "val1-tval1", + "rougail.dynval1.dyn_tval2.var": "tval2", + "rougail.dynval1.dyn_tval2.var_identifier": "val1", + "rougail.dynval1.dyn_tval2.var_identifiers": "val1-tval2", + "rougail.dynval2.var": [ + "tval1", + "tval2" + ], + "rougail.dynval2.dyn_tval1.var": "tval1", + "rougail.dynval2.dyn_tval1.var_identifier": "val2", + "rougail.dynval2.dyn_tval1.var_identifiers": "val2-tval1", + "rougail.dynval2.dyn_tval2.var": "tval2", + "rougail.dynval2.dyn_tval2.var_identifier": "val2", + "rougail.dynval2.dyn_tval2.var_identifiers": "val2-tval2" +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0/makedict/read_write.json new file mode 100644 index 000000000..07461b674 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0/makedict/read_write.json @@ -0,0 +1,26 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": [ + "tval1", + "tval2" + ], + "rougail.dynval1.dyn_tval1.var": "tval1", + "rougail.dynval1.dyn_tval1.var_identifier": "val1", + "rougail.dynval1.dyn_tval1.var_identifiers": "val1-tval1", + "rougail.dynval1.dyn_tval2.var": "tval2", + "rougail.dynval1.dyn_tval2.var_identifier": "val1", + "rougail.dynval1.dyn_tval2.var_identifiers": "val1-tval2", + "rougail.dynval2.var": [ + "tval1", + "tval2" + ], + "rougail.dynval2.dyn_tval1.var": "tval1", + "rougail.dynval2.dyn_tval1.var_identifier": "val2", + "rougail.dynval2.dyn_tval1.var_identifiers": "val2-tval1", + "rougail.dynval2.dyn_tval2.var": "tval2", + "rougail.dynval2.dyn_tval2.var_identifier": "val2", + "rougail.dynval2.dyn_tval2.var_identifiers": "val2-tval2" +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/after.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/after.json new file mode 100644 index 000000000..6fd52405b --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/after.json @@ -0,0 +1,25 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.{{ suffix }}val1.{{ suffix }}val1.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val1.{{ suffix }}val2.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val2.{{ suffix }}val1.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val2.{{ suffix }}val2.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/base.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/base.json new file mode 100644 index 000000000..a4ba41033 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/base.json @@ -0,0 +1,10 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.{{ suffix }}val1.{{ suffix }}val1.var": null, + "rougail.{{ suffix }}val1.{{ suffix }}val2.var": null, + "rougail.{{ suffix }}val2.{{ suffix }}val1.var": null, + "rougail.{{ suffix }}val2.{{ suffix }}val2.var": null +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/before.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/before.json new file mode 100644 index 000000000..6fd52405b --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/before.json @@ -0,0 +1,25 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.{{ suffix }}val1.{{ suffix }}val1.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val1.{{ suffix }}val2.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val2.{{ suffix }}val1.var": { + "owner": "default", + "value": null + }, + "rougail.{{ suffix }}val2.{{ suffix }}val2.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/mandatory.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/mandatory.json new file mode 100644 index 000000000..f72a2cf3f --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.{{ suffix }}val1.{{ suffix }}val1.var", "rougail.{{ suffix }}val1.{{ suffix }}val2.var", "rougail.{{ suffix }}val2.{{ suffix }}val1.var", "rougail.{{ suffix }}val2.{{ suffix }}val2.var"] \ No newline at end of file diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/read_write.json new file mode 100644 index 000000000..a4ba41033 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/makedict/read_write.json @@ -0,0 +1,10 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.{{ suffix }}val1.{{ suffix }}val1.var": null, + "rougail.{{ suffix }}val1.{{ suffix }}val2.var": null, + "rougail.{{ suffix }}val2.{{ suffix }}val1.var": null, + "rougail.{{ suffix }}val2.{{ suffix }}val2.var": null +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/tiramisu/base.py b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/tiramisu/base.py new file mode 100644 index 000000000..ac265e681 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_1_0_2/tiramisu/base.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from re import compile as re_compile +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('../rougail-tests/funcs/test.py') +try: + groups.namespace +except: + groups.addgroup('namespace') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="A identifier variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "standard"}), informations={'ymlfiles': ['../rougail-tests/structures/60_6family_dynamic_sub_dynamic_1_0_2/rougail/00-base.yml'], 'type': 'string'}) +option_5 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"}), informations={'ymlfiles': ['../rougail-tests/structures/60_6family_dynamic_sub_dynamic_1_0_2/rougail/00-base.yml'], 'type': 'string'}) +optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}{{ identifier }}", doc="A dynamic family", identifiers=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"basic"}), informations={'dynamic_variable': 'rougail.var', 'ymlfiles': ['../rougail-tests/structures/60_6family_dynamic_sub_dynamic_1_0_2/rougail/00-base.yml']}) +optiondescription_3 = ConvertDynOptionDescription(name="{{ suffix }}{{ identifier }}", doc="A dynamic family", identifiers=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_4], properties=frozenset({"basic"}), informations={'dynamic_variable': 'rougail.var', 'ymlfiles': ['../rougail-tests/structures/60_6family_dynamic_sub_dynamic_1_0_2/rougail/00-base.yml']}) +optiondescription_1 = OptionDescription(name="rougail", doc="Rougail", group_type=groups.namespace, children=[option_2, optiondescription_3], properties=frozenset({"basic"}), informations={'ymlfiles': ['']}) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty/makedict/read_write.json new file mode 100644 index 000000000..a132f4593 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.var": [] +} diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty2/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty2/makedict/read_write.json new file mode 100644 index 000000000..95f96c820 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic_empty2/makedict/read_write.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "val1", + "val2" + ], + "rougail.dynval1.var": [], + "rougail.dynval2.var": [] +} diff --git a/tests/dictionaries/60_6family_dynamic_suffix_auto_multi/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_suffix_auto_multi/makedict/read_write.json new file mode 100644 index 000000000..cccd7c422 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_suffix_auto_multi/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.dynval1.var": null, + "rougail.dynval1.dynval2.var": null, + "rougail.dynval2.dynval1.var": null, + "rougail.dynval2.dynval2.var": null, + "rougail.var2": [ + null, + null + ] +} diff --git a/tests/dictionaries/60_6family_dynamic_suffix_auto_multi2/makedict/read_write.json b/tests/dictionaries/60_6family_dynamic_suffix_auto_multi2/makedict/read_write.json new file mode 100644 index 000000000..cccd7c422 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_suffix_auto_multi2/makedict/read_write.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": [ + "val1", + "val2" + ], + "rougail.dynval1.dynval1.var": null, + "rougail.dynval1.dynval2.var": null, + "rougail.dynval2.dynval1.var": null, + "rougail.dynval2.dynval2.var": null, + "rougail.var2": [ + null, + null + ] +} diff --git a/tests/dictionaries/60_9extra_dynamic/makedict/read_write.json b/tests/dictionaries/60_9extra_dynamic/makedict/read_write.json new file mode 100644 index 000000000..a5accf065 --- /dev/null +++ b/tests/dictionaries/60_9extra_dynamic/makedict/read_write.json @@ -0,0 +1,6 @@ +{ + "rougail.var": [ + "a" + ], + "extra.dyn_a.var": null +} diff --git a/tests/dictionaries/60_9extra_dynamic_extra/makedict/read_write.json b/tests/dictionaries/60_9extra_dynamic_extra/makedict/read_write.json new file mode 100644 index 000000000..6f29246bb --- /dev/null +++ b/tests/dictionaries/60_9extra_dynamic_extra/makedict/read_write.json @@ -0,0 +1,9 @@ +{ + "rougail.general.varname": [ + "a" + ], + "extra.var": [ + "a" + ], + "extra.dyn_a.var": null +} diff --git a/tests/dictionaries/60_9family_dynamic_calc_both/makedict/read_write.json b/tests/dictionaries/60_9family_dynamic_calc_both/makedict/read_write.json new file mode 100644 index 000000000..6ca6ca59f --- /dev/null +++ b/tests/dictionaries/60_9family_dynamic_calc_both/makedict/read_write.json @@ -0,0 +1,5 @@ +{ + "rougail.var": "val2", + "rougail.dynval1.vardyn": null, + "rougail.dynval2.vardyn": null +} diff --git a/tests/dictionaries/68_0family_leadership_mode/makedict/read_write.json b/tests/dictionaries/68_0family_leadership_mode/makedict/read_write.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/68_0family_leadership_mode/makedict/read_write.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/test_1_flattener.py b/tests/test_1_flattener.py index 8ef8fad48..bf1759c47 100644 --- a/tests/test_1_flattener.py +++ b/tests/test_1_flattener.py @@ -47,7 +47,7 @@ excludes = set([ ]) test_ok -= excludes test_raise -= excludes -test_ok = ['00_2default_calculated_params_permissive'] +# test_ok = ['04_5validators_multi3'] #test_ok = [] # test_raise = ['22_0calculation_variable_leader_follower_multi'] #test_raise = [] @@ -70,6 +70,7 @@ test_raise = list(test_raise) test_ok.sort() test_raise.sort() + @fixture(scope="module", params=test_ok) def test_dir(request): return request.param diff --git a/tests/test_2_makedict.py b/tests/test_2_makedict.py index bf01ea911..d4445ba26 100644 --- a/tests/test_2_makedict.py +++ b/tests/test_2_makedict.py @@ -31,7 +31,7 @@ excludes = set([]) # excludes = set(['60_5family_dynamic_variable_outside_sub_suffix']) test_ok -= excludes -test_ok = ['00_2default_calculated_params_permissive'] +# test_ok = ['04_5validators_multi3'] test_ok = list(test_ok) @@ -175,7 +175,8 @@ def launch_flattener(test_dir, with open(makedict_read_write, 'r') as fh: loaded_config_dict = load(fh) if filename == 'no_namespace': - config_dict = config_add_rougail(config_dict) + if (Path(test_dir) / 'tiramisu' / 'base.py').is_file(): + config_dict = config_add_rougail(config_dict) elif filename != 'base': config_dict_prefix = {'1': {}, '2': {}} for key, value in config_dict.items():