diff --git a/src/rougail/annotator/family.py b/src/rougail/annotator/family.py index d2d98426d..40f56e9e1 100644 --- a/src/rougail/annotator/family.py +++ b/src/rougail/annotator/family.py @@ -314,21 +314,6 @@ class Annotator(Walk): if not variable.mode: variable.mode = variable_mode - def dynamic_families(self): - """link dynamic families to object""" - for family in self.get_families(): - if family.type != "dynamic": - continue - for variable in self.objectspace.parents[family.path]: - if ( - isinstance(variable, self.objectspace.family) - and not variable.leadership - ): - msg = _( - f'dynamic family "{family.name}" cannot contains another family' - ) - raise DictConsistencyError(msg, 22, family.xmlfiles) - def convert_help(self): """Convert variable help""" for family in self.get_families(): diff --git a/src/rougail/convert.py b/src/rougail/convert.py index 8386c5f42..f676ff7b1 100644 --- a/src/rougail/convert.py +++ b/src/rougail/convert.py @@ -48,6 +48,8 @@ from ruamel.yaml import YAML from ruamel.yaml.comments import CommentedMap from pydantic import ValidationError +from warnings import warn + from tiramisu.error import display_list from .i18n import _ @@ -67,7 +69,7 @@ from .object_model import ( PARAM_TYPES, AnyParam, ) -from .error import DictConsistencyError +from .error import DictConsistencyError, display_xmlfiles property_types = Union[Literal[True], Calculation] @@ -100,7 +102,7 @@ class Property: class Paths: - _regexp_relative = compile(r"^_*\.(.*)$") + regexp_relative = compile(r"^_*\.(.*)$") def __init__(self, default_namespace: str, @@ -126,6 +128,16 @@ class Paths: if not force and is_dynamic: self._dynamics[path] = dynamic + def get_relative_path(self, + path: str, + current_path: str, + ): + relative, subpath = path.split(".", 1) + relative_len = len(relative) + path_len = current_path.count(".") + parent_path = current_path.rsplit(".", relative_len)[0] + return parent_path + "." + subpath + def get_with_dynamic( self, path: str, @@ -136,12 +148,10 @@ class Paths: xmlfiles: List[str], ) -> Any: suffix = None - if version != '1.0' and self._regexp_relative.search(path): - relative, subpath = path.split(".", 1) - relative_len = len(relative) - path_len = current_path.count(".") - parent_path = current_path.rsplit(".", relative_len)[0] - path = parent_path + "." + subpath + if version != '1.0' and self.regexp_relative.search(path): + path = self.get_relative_path(path, + current_path, + ) else: path = get_realpath(path, suffix_path) dynamic = None @@ -263,7 +273,7 @@ class Informations: if path not in self._data: self._data[path] = {} if key in self._data[path]: - raise Exception(f"already key {key} in {path}") + raise Exception(f'an information "{key}" is already present in "{path}"') self._data[path][key] = data def get( @@ -467,7 +477,7 @@ class ParserVariable: return family_obj = {} subfamily_obj = {} - force_to_attrs = list(self.list_attributes(obj, version)) + force_to_attrs = list(self.list_attributes(obj)) for key, value in obj.items(): if key in force_to_attrs: if key.startswith("_"): @@ -505,12 +515,13 @@ class ParserVariable: if self.get_family_or_variable_type(family_obj) == "dynamic": family_is_dynamic = True parent_dynamic = path - if version == '1.0' and '{{ suffix }}' not in name: - name += '{{ suffix }}' - path += '{{ suffix }}' if '{{ suffix }}' not in name: - msg = f'dynamic family name must have "{{{{ suffix }}}}" in his name for "{path}"' - raise DictConsistencyError(msg, 13, [filename]) + if "variable" in family_obj: + name += '{{ suffix }}' + path += '{{ suffix }}' + else: + msg = f'dynamic family name must have "{{{{ suffix }}}}" in his name for "{path}"' + raise DictConsistencyError(msg, 13, [filename]) if version != '1.0' and not family_obj and comment: family_obj['description'] = comment self.add_family( @@ -545,7 +556,6 @@ class ParserVariable: def list_attributes( self, obj: Dict[str, Any], - version: str, ) -> Iterator[str]: """List attributes""" force_to_variable = [] @@ -568,7 +578,8 @@ class ParserVariable: ): # it's a dict, so a new variables! continue - if version == '1.0' and key == "variable" and obj.get("type") != "dynamic" and obj.get("_type") != "dynamic": + # 'variable' for compatibility to format 1.0 + if key == "variable" and obj.get("type") != "dynamic" and obj.get("_type") != "dynamic": continue if key in self.family_attrs: yield key @@ -586,6 +597,7 @@ class ParserVariable: """Add a new family""" family["path"] = path family["namespace"] = self.namespace + family["version"] = version family["xmlfiles"] = [filename] obj_type = self.get_family_or_variable_type(family) if obj_type == "dynamic": @@ -603,6 +615,9 @@ class ParserVariable: 'allow_none': True, } del family['variable'] + if version != "1.0": + warning = f'"variable" attribute in dynamic family "{ path }" is depreciated in {filename}' + warn(warning) if "variable" in family: raise Exception(f'dynamic family must not have "variable" attribute for "{family["path"]}" in {family["xmlfiles"]}') else: @@ -691,7 +706,7 @@ class ParserVariable: # so do nothing return if "redefine" in obj and obj["redefine"]: - msg = f'cannot redefine the inexisting variable "{path}" in {filename}' + msg = f'cannot redefine the inexisting variable "{path}"' raise DictConsistencyError(msg, 46, [filename]) obj["path"] = path self.add_variable( @@ -1003,7 +1018,7 @@ class RougailConvert(ParserVariable): "", False, None, - None, + '', ) else: root_parent = "." diff --git a/src/rougail/object_model.py b/src/rougail/object_model.py index c5d6e5f37..b8b84b498 100644 --- a/src/rougail/object_model.py +++ b/src/rougail/object_model.py @@ -51,40 +51,45 @@ def convert_boolean(value: str) -> bool: CONVERT_OPTION = { - "string": dict(opttype="StrOption"), - "number": dict(opttype="IntOption", func=int), - "float": dict(opttype="FloatOption", func=float), + "string": dict(opttype="StrOption", example="xxx"), + "number": dict(opttype="IntOption", func=int, example=42), + "float": dict(opttype="FloatOption", func=float, example=1.42), "boolean": dict(opttype="BoolOption", func=convert_boolean), - "secret": dict(opttype="PasswordOption"), - "mail": dict(opttype="EmailOption"), - "unix_filename": dict(opttype="FilenameOption"), - "date": dict(opttype="DateOption"), - "unix_user": dict(opttype="UsernameOption"), - "ip": dict(opttype="IPOption", initkwargs={"allow_reserved": True}), - "cidr": dict(opttype="IPOption", initkwargs={"cidr": True}), - "netmask": dict(opttype="NetmaskOption"), - "network": dict(opttype="NetworkOption"), - "network_cidr": dict(opttype="NetworkOption", initkwargs={"cidr": True}), - "broadcast": dict(opttype="BroadcastOption"), + "secret": dict(opttype="PasswordOption", example="xxx"), + "mail": dict(opttype="EmailOption", example="user@example.net"), + "unix_filename": dict(opttype="FilenameOption", example="/tmp/myfile.txt"), + "date": dict(opttype="DateOption", example="2000-01-01"), + "unix_user": dict(opttype="UsernameOption", example="xxx"), + "ip": dict(opttype="IPOption", initkwargs={"allow_reserved": True}, example="1.1.1.1"), + "cidr": dict(opttype="IPOption", initkwargs={"cidr": True}, example="1.1.1.0/24"), + "netmask": dict(opttype="NetmaskOption", example="255.255.255.0"), + "network": dict(opttype="NetworkOption", example="1.1.1.0"), + "network_cidr": dict(opttype="NetworkOption", initkwargs={"cidr": True}, example="1.1.1.0/24"), + "broadcast": dict(opttype="BroadcastOption", example="1.1.1.255"), "netbios": dict( opttype="DomainnameOption", initkwargs={"type": "netbios", "warnings_only": True}, + example="example" ), "domainname": dict( - opttype="DomainnameOption", initkwargs={"type": "domainname", "allow_ip": False} + opttype="DomainnameOption", initkwargs={"type": "domainname", "allow_ip": False}, + example="example.net" ), "hostname": dict( - opttype="DomainnameOption", initkwargs={"type": "hostname", "allow_ip": False} + opttype="DomainnameOption", initkwargs={"type": "hostname", "allow_ip": False}, + example="example" ), "web_address": dict( - opttype="URLOption", initkwargs={"allow_ip": False, "allow_without_dot": True} + opttype="URLOption", initkwargs={"allow_ip": False, "allow_without_dot": True}, + example="https://example.net" ), - "port": dict(opttype="PortOption", initkwargs={"allow_private": True}), - "mac": dict(opttype="MACOption"), + "port": dict(opttype="PortOption", initkwargs={"allow_private": True}, example="111"), + "mac": dict(opttype="MACOption", example="00:00:00:00:00"), "unix_permissions": dict( - opttype="PermissionsOption", initkwargs={"warnings_only": True}, func=int + opttype="PermissionsOption", initkwargs={"warnings_only": True}, func=int, + example="644" ), - "choice": dict(opttype="ChoiceOption"), + "choice": dict(opttype="ChoiceOption", example="xxx"), # "symlink": dict(opttype="SymLinkOption"), } @@ -164,6 +169,7 @@ class Calculation(BaseModel): path: str inside_list: bool version: str + default_values: Any=None namespace: str xmlfiles: List[str] @@ -219,6 +225,7 @@ class JinjaCalculation(Calculation): jinja: StrictStr params: Optional[List[Param]] = None return_type: BASETYPE = None + description: Optional[StrictStr] = None def _jinja_to_function( self, @@ -245,6 +252,8 @@ class JinjaCalculation(Calculation): "__internal_multi": multi, }, } + if self.default_values: + default["params"]['__default_value'] = self.default_values if add_help: default["help"] = function + "_help" if self.params: @@ -357,17 +366,20 @@ class VariableCalculation(Calculation): "variable": variable, "propertyerror": self.propertyerror, } - if suffix: - param["suffix"] = suffix params = {None: [param]} - function = "calc_value" - help_function = None + if self.default_values: + params['__default_value'] = self.default_values if self.attribute_name in PROPERTY_ATTRIBUTE: function = "variable_to_property" help_function = "variable_to_property" if variable.type != "boolean": raise Exception("only boolean!") params[None].insert(0, self.attribute_name) + else: + function = "calc_value" + help_function = None + if suffix: + param["suffix"] = suffix if self.allow_none: params["allow_none"] = True # current variable is a multi @@ -377,7 +389,16 @@ class VariableCalculation(Calculation): needs_multi = True else: needs_multi = self.path in objectspace.multis - calc_variable_is_multi = variable.path in objectspace.multis or (variable.path in objectspace.paths._dynamics and (suffix is None or suffix[-1] is None) and objectspace.paths._dynamics[variable.path] != objectspace.paths._dynamics.get(self.path)) + calc_variable_is_multi = variable.path in objectspace.multis + if not calc_variable_is_multi: + if variable.path in objectspace.paths._dynamics and (suffix is None or suffix[-1] is None): + self_dyn_path = objectspace.paths._dynamics.get(self.path) + if self_dyn_path is not None: + var_dyn_path = objectspace.paths._dynamics[variable.path] + if self_dyn_path != var_dyn_path and not self_dyn_path.startswith(f'{var_dyn_path}.'): + calc_variable_is_multi = True + else: + calc_variable_is_multi = True if needs_multi: if calc_variable_is_multi: if self.inside_list: @@ -410,9 +431,10 @@ class InformationCalculation(Calculation): self, objectspace, ) -> dict: - param = { + params = {None: [{ "type": "information", "information": self.information, + }] } if self.variable: variable, suffix = objectspace.paths.get_with_dynamic( @@ -420,10 +442,12 @@ class InformationCalculation(Calculation): ) if variable is None or suffix is not None: raise Exception("pfff") - param["variable"] = variable + params[None][0]["variable"] = variable + if self.default_values: + params['__default_value'] = self.default_values return { "function": "calc_value", - "params": {None: [param]}, + "params": params, } @@ -480,14 +504,15 @@ class Family(BaseModel): hidden: Union[bool, Calculation] = False disabled: Union[bool, Calculation] = False namespace: Optional[str] + version: str xmlfiles: List[str] = [] model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True) class Dynamic(Family): - variable: str=None # None only for format 1.0 + variable: str=None dynamic: Union[List[Union[StrictStr, Calculation]], Calculation] diff --git a/src/rougail/tiramisu.py b/src/rougail/tiramisu.py index 19a48874b..9217c1fb0 100644 --- a/src/rougail/tiramisu.py +++ b/src/rougail/tiramisu.py @@ -41,7 +41,7 @@ from .utils import normalize_family global func -func = {'calc_value': calc_value} +func = {} dict_env = {} ENV = SandboxedEnvironment(loader=DictLoader(dict_env), undefined=StrictUndefined) ENV.filters = func @@ -60,7 +60,14 @@ def load_functions(path): func[function] = getattr(func_, function) -def jinja_to_function(__internal_jinja, __internal_type, __internal_multi, **kwargs): +def rougail_calc_value(*args, __default_value=None, **kwargs): + values = calc_value(*args, **kwargs) + if __default_value is not None and values in [None, []]: + return __default_value + return values + + +def jinja_to_function(__internal_jinja, __internal_type, __internal_multi, __default_value=None, **kwargs): global ENV, CONVERT_OPTION kw = {} for key, value in kwargs.items(): @@ -75,9 +82,15 @@ def jinja_to_function(__internal_jinja, __internal_type, __internal_multi, **kwa values = ENV.get_template(__internal_jinja).render(kw, **func).strip() convert = CONVERT_OPTION[__internal_type].get('func', str) if __internal_multi: - return [convert(val) for val in values.split()] + values = [convert(val) for val in values.split()] + if not values and __default_value is not None: + return __default_value + return values values = convert(values) - return values if values != '' and values != 'None' else None + values = values if values != '' and values != 'None' else None + if values is None and __default_value is not None: + return __default_value + return values def variable_to_property(prop, value): @@ -104,6 +117,7 @@ def valid_with_jinja(warnings_only=False, **kwargs): raise ValueError(value) +func['calc_value'] = rougail_calc_value func['jinja_to_function'] = jinja_to_function func['jinja_to_property'] = jinja_to_property func['jinja_to_property_help'] = jinja_to_property_help diff --git a/tests/dictionaries/00empty/__init__.py b/tests/dictionaries/00_0empty/__init__.py similarity index 100% rename from tests/dictionaries/00empty/__init__.py rename to tests/dictionaries/00_0empty/__init__.py diff --git a/tests/dictionaries/00empty/dictionaries/rougail/.gitkeep b/tests/dictionaries/00_0empty/dictionaries/rougail/.gitkeep similarity index 100% rename from tests/dictionaries/00empty/dictionaries/rougail/.gitkeep rename to tests/dictionaries/00_0empty/dictionaries/rougail/.gitkeep diff --git a/tests/dictionaries/00empty/makedict/after.json b/tests/dictionaries/00_0empty/makedict/after.json similarity index 100% rename from tests/dictionaries/00empty/makedict/after.json rename to tests/dictionaries/00_0empty/makedict/after.json diff --git a/tests/dictionaries/00empty/makedict/base.json b/tests/dictionaries/00_0empty/makedict/base.json similarity index 100% rename from tests/dictionaries/00empty/makedict/base.json rename to tests/dictionaries/00_0empty/makedict/base.json diff --git a/tests/dictionaries/00empty/makedict/before.json b/tests/dictionaries/00_0empty/makedict/before.json similarity index 100% rename from tests/dictionaries/00empty/makedict/before.json rename to tests/dictionaries/00_0empty/makedict/before.json diff --git a/tests/dictionaries/00empty/makedict/mandatory.json b/tests/dictionaries/00_0empty/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00empty/makedict/mandatory.json rename to tests/dictionaries/00_0empty/makedict/mandatory.json diff --git a/tests/dictionaries/00empty/tiramisu/base.py b/tests/dictionaries/00_0empty/tiramisu/base.py similarity index 100% rename from tests/dictionaries/00empty/tiramisu/base.py rename to tests/dictionaries/00_0empty/tiramisu/base.py diff --git a/tests/dictionaries/00empty/tiramisu/multi.py b/tests/dictionaries/00_0empty/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/00empty/tiramisu/multi.py rename to tests/dictionaries/00_0empty/tiramisu/multi.py diff --git a/tests/dictionaries/00_0version_underscore/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_0version_underscore/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..fa4dbc9ac --- /dev/null +++ b/tests/dictionaries/00_0version_underscore/dictionaries/rougail/00-base.yml @@ -0,0 +1,3 @@ +--- +_version: '1.1' +version: # a variable diff --git a/tests/dictionaries/40version_underscode/makedict/after.json b/tests/dictionaries/00_0version_underscore/makedict/after.json similarity index 100% rename from tests/dictionaries/40version_underscode/makedict/after.json rename to tests/dictionaries/00_0version_underscore/makedict/after.json diff --git a/tests/dictionaries/40version_underscode/makedict/base.json b/tests/dictionaries/00_0version_underscore/makedict/base.json similarity index 100% rename from tests/dictionaries/40version_underscode/makedict/base.json rename to tests/dictionaries/00_0version_underscore/makedict/base.json diff --git a/tests/dictionaries/40version_underscode/makedict/before.json b/tests/dictionaries/00_0version_underscore/makedict/before.json similarity index 100% rename from tests/dictionaries/40version_underscode/makedict/before.json rename to tests/dictionaries/00_0version_underscore/makedict/before.json diff --git a/tests/dictionaries/40version_underscode/makedict/mandatory.json b/tests/dictionaries/00_0version_underscore/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/40version_underscode/makedict/mandatory.json rename to tests/dictionaries/00_0version_underscore/makedict/mandatory.json diff --git a/tests/dictionaries/00_0version_underscore/tiramisu/base.py b/tests/dictionaries/00_0version_underscore/tiramisu/base.py new file mode 100644 index 000000000..a25b6500a --- /dev/null +++ b/tests/dictionaries/00_0version_underscore/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="version", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_0version_underscore/tiramisu/multi.py b/tests/dictionaries/00_0version_underscore/tiramisu/multi.py new file mode 100644 index 000000000..c47032c89 --- /dev/null +++ b/tests/dictionaries/00_0version_underscore/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="version", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = StrOption(name="version", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/00empty_variable/__init__.py b/tests/dictionaries/00_1empty_variable/__init__.py similarity index 100% rename from tests/dictionaries/00empty_variable/__init__.py rename to tests/dictionaries/00_1empty_variable/__init__.py diff --git a/tests/dictionaries/00empty_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_1empty_variable/dictionaries/rougail/00-base.yml similarity index 100% rename from tests/dictionaries/00empty_variable/dictionaries/rougail/00-base.yml rename to tests/dictionaries/00_1empty_variable/dictionaries/rougail/00-base.yml diff --git a/tests/dictionaries/00empty_variable/makedict/after.json b/tests/dictionaries/00_1empty_variable/makedict/after.json similarity index 100% rename from tests/dictionaries/00empty_variable/makedict/after.json rename to tests/dictionaries/00_1empty_variable/makedict/after.json diff --git a/tests/dictionaries/00_1empty_variable/makedict/base.json b/tests/dictionaries/00_1empty_variable/makedict/base.json new file mode 100644 index 000000000..3d9ec1ac3 --- /dev/null +++ b/tests/dictionaries/00_1empty_variable/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.empty": null +} diff --git a/tests/dictionaries/00empty_variable/makedict/before.json b/tests/dictionaries/00_1empty_variable/makedict/before.json similarity index 100% rename from tests/dictionaries/00empty_variable/makedict/before.json rename to tests/dictionaries/00_1empty_variable/makedict/before.json diff --git a/tests/dictionaries/00empty_variable/makedict/mandatory.json b/tests/dictionaries/00_1empty_variable/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00empty_variable/makedict/mandatory.json rename to tests/dictionaries/00_1empty_variable/makedict/mandatory.json diff --git a/tests/dictionaries/00empty_variable/tiramisu/base.py b/tests/dictionaries/00_1empty_variable/tiramisu/base.py similarity index 100% rename from tests/dictionaries/00empty_variable/tiramisu/base.py rename to tests/dictionaries/00_1empty_variable/tiramisu/base.py diff --git a/tests/dictionaries/00empty_variable/tiramisu/multi.py b/tests/dictionaries/00_1empty_variable/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/00empty_variable/tiramisu/multi.py rename to tests/dictionaries/00_1empty_variable/tiramisu/multi.py diff --git a/tests/dictionaries/00load_notype/__init__.py b/tests/dictionaries/00_2default_calculated/__init__.py similarity index 100% rename from tests/dictionaries/00load_notype/__init__.py rename to tests/dictionaries/00_2default_calculated/__init__.py diff --git a/tests/dictionaries/00_2default_calculated/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_2default_calculated/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c60acea1d --- /dev/null +++ b/tests/dictionaries/00_2default_calculated/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: 1.1 +var1: "no" # a first variable +var2: + description: a second variable + multi: true + default: + type: jinja + jinja: | + {{ _.val1 }} + description: the value of var1 diff --git a/tests/dictionaries/11fill_multi_calc_val/makedict/after.json b/tests/dictionaries/00_2default_calculated/makedict/after.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val/makedict/after.json rename to tests/dictionaries/00_2default_calculated/makedict/after.json diff --git a/tests/dictionaries/11fill_multi_calc_val/makedict/base.json b/tests/dictionaries/00_2default_calculated/makedict/base.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val/makedict/base.json rename to tests/dictionaries/00_2default_calculated/makedict/base.json diff --git a/tests/dictionaries/11fill_multi_calc_val/makedict/before.json b/tests/dictionaries/00_2default_calculated/makedict/before.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val/makedict/before.json rename to tests/dictionaries/00_2default_calculated/makedict/before.json diff --git a/tests/dictionaries/00empty_family/makedict/mandatory.json b/tests/dictionaries/00_2default_calculated/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00empty_family/makedict/mandatory.json rename to tests/dictionaries/00_2default_calculated/makedict/mandatory.json diff --git a/tests/dictionaries/11fill_multi_calc_val/tiramisu/base.py b/tests/dictionaries/00_2default_calculated/tiramisu/base.py similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val/tiramisu/base.py rename to tests/dictionaries/00_2default_calculated/tiramisu/base.py diff --git a/tests/dictionaries/11fill_multi_calc_val/tiramisu/multi.py b/tests/dictionaries/00_2default_calculated/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val/tiramisu/multi.py rename to tests/dictionaries/00_2default_calculated/tiramisu/multi.py diff --git a/tests/dictionaries/00load_save/__init__.py b/tests/dictionaries/00_2default_calculated_multi/__init__.py similarity index 100% rename from tests/dictionaries/00load_save/__init__.py rename to tests/dictionaries/00_2default_calculated_multi/__init__.py diff --git a/tests/dictionaries/00_2default_calculated_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_2default_calculated_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f5cc78aee --- /dev/null +++ b/tests/dictionaries/00_2default_calculated_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: 1.1 +var1: # a first variable + - 'no' + - 'yes' + - maybe +var2: + description: a second variable + multi: true + default: + type: jinja + jinja: | + {% for val in _.var1 %} + {{ val }} + {% endfor %} + description: the value of _.var1 diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/makedict/after.json b/tests/dictionaries/00_2default_calculated_multi/makedict/after.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val_multi/makedict/after.json rename to tests/dictionaries/00_2default_calculated_multi/makedict/after.json diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/makedict/base.json b/tests/dictionaries/00_2default_calculated_multi/makedict/base.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val_multi/makedict/base.json rename to tests/dictionaries/00_2default_calculated_multi/makedict/base.json diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/makedict/before.json b/tests/dictionaries/00_2default_calculated_multi/makedict/before.json similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val_multi/makedict/before.json rename to tests/dictionaries/00_2default_calculated_multi/makedict/before.json diff --git a/tests/dictionaries/00empty_subfamily/makedict/mandatory.json b/tests/dictionaries/00_2default_calculated_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00empty_subfamily/makedict/mandatory.json rename to tests/dictionaries/00_2default_calculated_multi/makedict/mandatory.json diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/tiramisu/base.py b/tests/dictionaries/00_2default_calculated_multi/tiramisu/base.py similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val_multi/tiramisu/base.py rename to tests/dictionaries/00_2default_calculated_multi/tiramisu/base.py diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/tiramisu/multi.py b/tests/dictionaries/00_2default_calculated_multi/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/11fill_multi_calc_val_multi/tiramisu/multi.py rename to tests/dictionaries/00_2default_calculated_multi/tiramisu/multi.py diff --git a/tests/dictionaries/00load_subfolder/__init__.py b/tests/dictionaries/00_4load_subfolder/__init__.py similarity index 100% rename from tests/dictionaries/00load_subfolder/__init__.py rename to tests/dictionaries/00_4load_subfolder/__init__.py diff --git a/tests/dictionaries/00_4load_subfolder/dictionaries/rougail/99-base.yml b/tests/dictionaries/00_4load_subfolder/dictionaries/rougail/99-base.yml new file mode 100644 index 000000000..15f83a3b6 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/dictionaries/rougail/99-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.0' +var1: + description: a variable diff --git a/tests/dictionaries/00_4load_subfolder/dictionaries/rougail2/00-base.yml b/tests/dictionaries/00_4load_subfolder/dictionaries/rougail2/00-base.yml new file mode 100644 index 000000000..64c78946f --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/dictionaries/rougail2/00-base.yml @@ -0,0 +1,4 @@ +--- +version: "1.0" +var2: + description: a variable diff --git a/tests/dictionaries/00_4load_subfolder/makedict/after.json b/tests/dictionaries/00_4load_subfolder/makedict/after.json new file mode 100644 index 000000000..7ea9435a0 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_4load_subfolder/makedict/base.json b/tests/dictionaries/00_4load_subfolder/makedict/base.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_4load_subfolder/makedict/before.json b/tests/dictionaries/00_4load_subfolder/makedict/before.json new file mode 100644 index 000000000..7ea9435a0 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_4load_subfolder/makedict/mandatory.json b/tests/dictionaries/00_4load_subfolder/makedict/mandatory.json new file mode 100644 index 000000000..8c67ac5f8 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2"] \ No newline at end of file diff --git a/tests/dictionaries/00_4load_subfolder/tiramisu/base.py b/tests/dictionaries/00_4load_subfolder/tiramisu/base.py new file mode 100644 index 000000000..74e902781 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "mandatory"})) +option_3 = StrOption(name="var2", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_4load_subfolder/tiramisu/multi.py b/tests/dictionaries/00_4load_subfolder/tiramisu/multi.py new file mode 100644 index 000000000..cab637cd5 --- /dev/null +++ b/tests/dictionaries/00_4load_subfolder/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "mandatory"})) +option_4 = StrOption(name="var2", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "mandatory"})) +option_8 = StrOption(name="var2", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_auto_bool/__init__.py b/tests/dictionaries/00_5load_notype/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_bool/__init__.py rename to tests/dictionaries/00_5load_notype/__init__.py diff --git a/tests/dictionaries/00_5load_notype/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_5load_notype/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7a9ab1f11 --- /dev/null +++ b/tests/dictionaries/00_5load_notype/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.0' +without_type: + description: a variable + default: non diff --git a/tests/dictionaries/00_5load_notype/makedict/after.json b/tests/dictionaries/00_5load_notype/makedict/after.json new file mode 100644 index 000000000..196fd2c3d --- /dev/null +++ b/tests/dictionaries/00_5load_notype/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.without_type": { + "owner": "default", + "value": "non" + } +} diff --git a/tests/dictionaries/00_5load_notype/makedict/base.json b/tests/dictionaries/00_5load_notype/makedict/base.json new file mode 100644 index 000000000..3140815a2 --- /dev/null +++ b/tests/dictionaries/00_5load_notype/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.without_type": "non" +} diff --git a/tests/dictionaries/00_5load_notype/makedict/before.json b/tests/dictionaries/00_5load_notype/makedict/before.json new file mode 100644 index 000000000..196fd2c3d --- /dev/null +++ b/tests/dictionaries/00_5load_notype/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.without_type": { + "owner": "default", + "value": "non" + } +} diff --git a/tests/dictionaries/00load_notype/makedict/mandatory.json b/tests/dictionaries/00_5load_notype/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00load_notype/makedict/mandatory.json rename to tests/dictionaries/00_5load_notype/makedict/mandatory.json diff --git a/tests/dictionaries/00_5load_notype/tiramisu/base.py b/tests/dictionaries/00_5load_notype/tiramisu/base.py new file mode 100644 index 000000000..e68dbe855 --- /dev/null +++ b/tests/dictionaries/00_5load_notype/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="without_type", doc="a variable", default="non", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_5load_notype/tiramisu/multi.py b/tests/dictionaries/00_5load_notype/tiramisu/multi.py new file mode 100644 index 000000000..118a345f4 --- /dev/null +++ b/tests/dictionaries/00_5load_notype/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="without_type", doc="a variable", default="non", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="without_type", doc="a variable", default="non", properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_bool_multi/__init__.py b/tests/dictionaries/00_6boolean/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_bool_multi/__init__.py rename to tests/dictionaries/00_6boolean/__init__.py diff --git a/tests/dictionaries/00_6boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6boolean/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e650e6877 --- /dev/null +++ b/tests/dictionaries/00_6boolean/dictionaries/rougail/00-base.yml @@ -0,0 +1,18 @@ +--- +version: '1.1' +var1: true # the first variable +var2: + description: the second variable + default: true +var3: + description: the third variable + type: boolean + default: true +var4: false # the forth variable +var5: + description: the fifth variable + default: false +var6: + description: the sixth variable + type: boolean + default: false diff --git a/tests/dictionaries/00_6boolean/makedict/after.json b/tests/dictionaries/00_6boolean/makedict/after.json new file mode 100644 index 000000000..eae1ef45d --- /dev/null +++ b/tests/dictionaries/00_6boolean/makedict/after.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": true + }, + "rougail.var2": { + "owner": "default", + "value": true + }, + "rougail.var3": { + "owner": "default", + "value": true + }, + "rougail.var4": { + "owner": "default", + "value": false + }, + "rougail.var5": { + "owner": "default", + "value": false + }, + "rougail.var6": { + "owner": "default", + "value": false + } +} diff --git a/tests/dictionaries/00_6boolean/makedict/base.json b/tests/dictionaries/00_6boolean/makedict/base.json new file mode 100644 index 000000000..7be14b7be --- /dev/null +++ b/tests/dictionaries/00_6boolean/makedict/base.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/makedict/before.json b/tests/dictionaries/00_6boolean/makedict/before.json new file mode 100644 index 000000000..eae1ef45d --- /dev/null +++ b/tests/dictionaries/00_6boolean/makedict/before.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": true + }, + "rougail.var2": { + "owner": "default", + "value": true + }, + "rougail.var3": { + "owner": "default", + "value": true + }, + "rougail.var4": { + "owner": "default", + "value": false + }, + "rougail.var5": { + "owner": "default", + "value": false + }, + "rougail.var6": { + "owner": "default", + "value": false + } +} diff --git a/tests/dictionaries/00load_save/makedict/mandatory.json b/tests/dictionaries/00_6boolean/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00load_save/makedict/mandatory.json rename to tests/dictionaries/00_6boolean/makedict/mandatory.json diff --git a/tests/dictionaries/00_6boolean/tiramisu/base.py b/tests/dictionaries/00_6boolean/tiramisu/base.py new file mode 100644 index 000000000..21370bbb7 --- /dev/null +++ b/tests/dictionaries/00_6boolean/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="var1", doc="the first variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_3 = BoolOption(name="var2", doc="the second variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_4 = BoolOption(name="var3", doc="the third variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_5 = BoolOption(name="var4", doc="the forth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_6 = BoolOption(name="var5", doc="the fifth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_7 = BoolOption(name="var6", doc="the sixth variable", default=False, properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6boolean/tiramisu/multi.py b/tests/dictionaries/00_6boolean/tiramisu/multi.py new file mode 100644 index 000000000..ed545287e --- /dev/null +++ b/tests/dictionaries/00_6boolean/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="var1", doc="the first variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_4 = BoolOption(name="var2", doc="the second variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_5 = BoolOption(name="var3", doc="the third variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_6 = BoolOption(name="var4", doc="the forth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_7 = BoolOption(name="var5", doc="the fifth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_8 = BoolOption(name="var6", doc="the sixth variable", default=False, properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_11 = BoolOption(name="var1", doc="the first variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_12 = BoolOption(name="var2", doc="the second variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_13 = BoolOption(name="var3", doc="the third variable", default=True, properties=frozenset({"mandatory", "standard"})) +option_14 = BoolOption(name="var4", doc="the forth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_15 = BoolOption(name="var5", doc="the fifth variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_16 = BoolOption(name="var6", doc="the sixth variable", default=False, properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, option_12, option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/01base_auto_float/__init__.py b/tests/dictionaries/00_6boolean_no_mandatory/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_float/__init__.py rename to tests/dictionaries/00_6boolean_no_mandatory/__init__.py diff --git a/tests/dictionaries/00_6boolean_no_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6boolean_no_mandatory/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c68e04467 --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +variable: + description: a variable + type: boolean + mandatory: false diff --git a/tests/dictionaries/00_6boolean_no_mandatory/makedict/after.json b/tests/dictionaries/00_6boolean_no_mandatory/makedict/after.json new file mode 100644 index 000000000..f381199ed --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": true + } +} diff --git a/tests/dictionaries/00_6boolean_no_mandatory/makedict/base.json b/tests/dictionaries/00_6boolean_no_mandatory/makedict/base.json new file mode 100644 index 000000000..19f31a554 --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": true +} diff --git a/tests/dictionaries/00_6boolean_no_mandatory/makedict/before.json b/tests/dictionaries/00_6boolean_no_mandatory/makedict/before.json new file mode 100644 index 000000000..f381199ed --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": true + } +} diff --git a/tests/dictionaries/00load_subfolder/makedict/mandatory.json b/tests/dictionaries/00_6boolean_no_mandatory/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/00load_subfolder/makedict/mandatory.json rename to tests/dictionaries/00_6boolean_no_mandatory/makedict/mandatory.json diff --git a/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/base.py b/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/base.py new file mode 100644 index 000000000..3b8e9d74b --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="variable", doc="a family", default=True, properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/multi.py b/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/multi.py new file mode 100644 index 000000000..f46ccb717 --- /dev/null +++ b/tests/dictionaries/00_6boolean_no_mandatory/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="variable", doc="a family", default=True, properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = BoolOption(name="variable", doc="a family", default=True, properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_float_multi/__init__.py b/tests/dictionaries/00_6choice/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_float_multi/__init__.py rename to tests/dictionaries/00_6choice/__init__.py diff --git a/tests/dictionaries/00_6choice/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6choice/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..87b8acaab --- /dev/null +++ b/tests/dictionaries/00_6choice/dictionaries/rougail/00-base.yml @@ -0,0 +1,42 @@ +--- +version: '1.1' +var1: + description: the first variable + choices: + - a + - b + - c +var2: + description: the second variable + choices: + - a + - b + - c +var3: + description: the third variable + choices: + - a + - b + - c + mandatory: false +var4: + description: the forth variable + choices: + - null + - b + - c + mandatory: false +var5: + description: the fifth variable + choices: + - a + - b + - c + default: a +var6: + description: the sixth variable + choices: + - 1 + - 2 + - 3 + default: 1 diff --git a/tests/dictionaries/00_6choice/makedict/after.json b/tests/dictionaries/00_6choice/makedict/after.json new file mode 100644 index 000000000..2491c46db --- /dev/null +++ b/tests/dictionaries/00_6choice/makedict/after.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": null + }, + "rougail.var5": { + "owner": "default", + "value": "a" + }, + "rougail.var6": { + "owner": "default", + "value": 1 + } +} diff --git a/tests/dictionaries/00_6choice/makedict/base.json b/tests/dictionaries/00_6choice/makedict/base.json new file mode 100644 index 000000000..75aa2c0be --- /dev/null +++ b/tests/dictionaries/00_6choice/makedict/base.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/makedict/before.json b/tests/dictionaries/00_6choice/makedict/before.json new file mode 100644 index 000000000..2491c46db --- /dev/null +++ b/tests/dictionaries/00_6choice/makedict/before.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": null + }, + "rougail.var5": { + "owner": "default", + "value": "a" + }, + "rougail.var6": { + "owner": "default", + "value": 1 + } +} diff --git a/tests/dictionaries/00_6choice/makedict/mandatory.json b/tests/dictionaries/00_6choice/makedict/mandatory.json new file mode 100644 index 000000000..8c67ac5f8 --- /dev/null +++ b/tests/dictionaries/00_6choice/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2"] \ No newline at end of file diff --git a/tests/dictionaries/00_6choice/tiramisu/base.py b/tests/dictionaries/00_6choice/tiramisu/base.py new file mode 100644 index 000000000..70edcc87f --- /dev/null +++ b/tests/dictionaries/00_6choice/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = ChoiceOption(name="var1", doc="the first variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_3 = ChoiceOption(name="var2", doc="the second variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_4 = ChoiceOption(name="var3", doc="the third variable", values=("a", "b", "c", None), properties=frozenset({"standard"})) +option_5 = ChoiceOption(name="var4", doc="the forth variable", values=(None, "b", "c"), properties=frozenset({"standard"})) +option_6 = ChoiceOption(name="var5", doc="the fifth variable", values=("a", "b", "c"), default="a", properties=frozenset({"mandatory", "standard"})) +option_7 = ChoiceOption(name="var6", doc="the sixth variable", values=(1, 2, 3), default=1, properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6choice/tiramisu/multi.py b/tests/dictionaries/00_6choice/tiramisu/multi.py new file mode 100644 index 000000000..debec5cae --- /dev/null +++ b/tests/dictionaries/00_6choice/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = ChoiceOption(name="var1", doc="the first variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_4 = ChoiceOption(name="var2", doc="the second variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_5 = ChoiceOption(name="var3", doc="the third variable", values=("a", "b", "c", None), properties=frozenset({"standard"})) +option_6 = ChoiceOption(name="var4", doc="the forth variable", values=(None, "b", "c"), properties=frozenset({"standard"})) +option_7 = ChoiceOption(name="var5", doc="the fifth variable", values=("a", "b", "c"), default="a", properties=frozenset({"mandatory", "standard"})) +option_8 = ChoiceOption(name="var6", doc="the sixth variable", values=(1, 2, 3), default=1, properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_11 = ChoiceOption(name="var1", doc="the first variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_12 = ChoiceOption(name="var2", doc="the second variable", values=("a", "b", "c"), properties=frozenset({"basic", "mandatory"})) +option_13 = ChoiceOption(name="var3", doc="the third variable", values=("a", "b", "c", None), properties=frozenset({"standard"})) +option_14 = ChoiceOption(name="var4", doc="the forth variable", values=(None, "b", "c"), properties=frozenset({"standard"})) +option_15 = ChoiceOption(name="var5", doc="the fifth variable", values=("a", "b", "c"), default="a", properties=frozenset({"mandatory", "standard"})) +option_16 = ChoiceOption(name="var6", doc="the sixth variable", values=(1, 2, 3), default=1, properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, option_12, option_13, option_14, option_15, option_16], properties=frozenset({"basic"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/01base_auto_number/__init__.py b/tests/dictionaries/00_6choice_calculation/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_number/__init__.py rename to tests/dictionaries/00_6choice_calculation/__init__.py diff --git a/tests/dictionaries/00_6choice_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6choice_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..dd4777941 --- /dev/null +++ b/tests/dictionaries/00_6choice_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: 1.1 +var: + description: a variable + default: 9 + choices: + type: jinja + jinja: | + {% for n in trange(0, 10) %} + {{ n }} + {% endfor %} + return_type: 'number' + description: choices is 0 to 9 diff --git a/tests/dictionaries/11valid_enum_function/makedict/after.json b/tests/dictionaries/00_6choice_calculation/makedict/after.json similarity index 100% rename from tests/dictionaries/11valid_enum_function/makedict/after.json rename to tests/dictionaries/00_6choice_calculation/makedict/after.json diff --git a/tests/dictionaries/11valid_enum_function/makedict/base.json b/tests/dictionaries/00_6choice_calculation/makedict/base.json similarity index 100% rename from tests/dictionaries/11valid_enum_function/makedict/base.json rename to tests/dictionaries/00_6choice_calculation/makedict/base.json diff --git a/tests/dictionaries/11valid_enum_function/makedict/before.json b/tests/dictionaries/00_6choice_calculation/makedict/before.json similarity index 100% rename from tests/dictionaries/11valid_enum_function/makedict/before.json rename to tests/dictionaries/00_6choice_calculation/makedict/before.json diff --git a/tests/dictionaries/01base_bool_shorthand/makedict/mandatory.json b/tests/dictionaries/00_6choice_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_bool_shorthand/makedict/mandatory.json rename to tests/dictionaries/00_6choice_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/11valid_enum_function/tiramisu/base.py b/tests/dictionaries/00_6choice_calculation/tiramisu/base.py similarity index 100% rename from tests/dictionaries/11valid_enum_function/tiramisu/base.py rename to tests/dictionaries/00_6choice_calculation/tiramisu/base.py diff --git a/tests/dictionaries/11valid_enum_function/tiramisu/multi.py b/tests/dictionaries/00_6choice_calculation/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/11valid_enum_function/tiramisu/multi.py rename to tests/dictionaries/00_6choice_calculation/tiramisu/multi.py diff --git a/tests/dictionaries/01base_auto_number_multi/__init__.py b/tests/dictionaries/00_6choice_variable/__init__.py similarity index 100% rename from tests/dictionaries/01base_auto_number_multi/__init__.py rename to tests/dictionaries/00_6choice_variable/__init__.py diff --git a/tests/dictionaries/00_6choice_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6choice_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c33a775a2 --- /dev/null +++ b/tests/dictionaries/00_6choice_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +var1: # a second variable + - a + - b + - c +var2: + description: a first variable + default: a + choices: + type: variable + variable: _.var1 diff --git a/tests/dictionaries/11valid_enum_relative_variable/makedict/after.json b/tests/dictionaries/00_6choice_variable/makedict/after.json similarity index 100% rename from tests/dictionaries/11valid_enum_relative_variable/makedict/after.json rename to tests/dictionaries/00_6choice_variable/makedict/after.json diff --git a/tests/dictionaries/11valid_enum_relative_variable/makedict/base.json b/tests/dictionaries/00_6choice_variable/makedict/base.json similarity index 100% rename from tests/dictionaries/11valid_enum_relative_variable/makedict/base.json rename to tests/dictionaries/00_6choice_variable/makedict/base.json diff --git a/tests/dictionaries/11valid_enum_relative_variable/makedict/before.json b/tests/dictionaries/00_6choice_variable/makedict/before.json similarity index 100% rename from tests/dictionaries/11valid_enum_relative_variable/makedict/before.json rename to tests/dictionaries/00_6choice_variable/makedict/before.json diff --git a/tests/dictionaries/01base_domainname/makedict/mandatory.json b/tests/dictionaries/00_6choice_variable/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_domainname/makedict/mandatory.json rename to tests/dictionaries/00_6choice_variable/makedict/mandatory.json diff --git a/tests/dictionaries/11valid_enum_relative_variable/tiramisu/base.py b/tests/dictionaries/00_6choice_variable/tiramisu/base.py similarity index 100% rename from tests/dictionaries/11valid_enum_relative_variable/tiramisu/base.py rename to tests/dictionaries/00_6choice_variable/tiramisu/base.py diff --git a/tests/dictionaries/11valid_enum_relative_variable/tiramisu/multi.py b/tests/dictionaries/00_6choice_variable/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/11valid_enum_relative_variable/tiramisu/multi.py rename to tests/dictionaries/00_6choice_variable/tiramisu/multi.py diff --git a/tests/dictionaries/01base_bool_shorthand/__init__.py b/tests/dictionaries/00_6custom/__init__.py similarity index 100% rename from tests/dictionaries/01base_bool_shorthand/__init__.py rename to tests/dictionaries/00_6custom/__init__.py diff --git a/tests/dictionaries/00_6custom/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6custom/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c10ea6b53 --- /dev/null +++ b/tests/dictionaries/00_6custom/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: '1.1' +custom1: + description: the first variable + type: custom +custom2: + description: the seconf variable + type: custom + default: value diff --git a/tests/dictionaries/00_6custom/makedict/after.json b/tests/dictionaries/00_6custom/makedict/after.json new file mode 100644 index 000000000..d44af4b15 --- /dev/null +++ b/tests/dictionaries/00_6custom/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.custom1": { + "owner": "default", + "value": null + }, + "rougail.custom2": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/00_6custom/makedict/base.json b/tests/dictionaries/00_6custom/makedict/base.json new file mode 100644 index 000000000..19ff78ed3 --- /dev/null +++ b/tests/dictionaries/00_6custom/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.custom1": null, + "rougail.custom2": "value" +} diff --git a/tests/dictionaries/00_6custom/makedict/before.json b/tests/dictionaries/00_6custom/makedict/before.json new file mode 100644 index 000000000..d44af4b15 --- /dev/null +++ b/tests/dictionaries/00_6custom/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.custom1": { + "owner": "default", + "value": null + }, + "rougail.custom2": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/00_6custom/makedict/mandatory.json b/tests/dictionaries/00_6custom/makedict/mandatory.json new file mode 100644 index 000000000..d7995133a --- /dev/null +++ b/tests/dictionaries/00_6custom/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.custom1"] \ No newline at end of file diff --git a/tests/dictionaries/00_6custom/tiramisu/base.py b/tests/dictionaries/00_6custom/tiramisu/base.py new file mode 100644 index 000000000..85c2f2a9f --- /dev/null +++ b/tests/dictionaries/00_6custom/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = CustomOption(name="custom1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_3 = CustomOption(name="custom2", doc="the seconf variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6custom/tiramisu/multi.py b/tests/dictionaries/00_6custom/tiramisu/multi.py new file mode 100644 index 000000000..d30b725d6 --- /dev/null +++ b/tests/dictionaries/00_6custom/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = CustomOption(name="custom1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_4 = CustomOption(name="custom2", doc="the seconf variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = CustomOption(name="custom1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_8 = CustomOption(name="custom2", doc="the seconf variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_custom/__init__.py b/tests/dictionaries/00_6domainname/__init__.py similarity index 100% rename from tests/dictionaries/01base_custom/__init__.py rename to tests/dictionaries/00_6domainname/__init__.py diff --git a/tests/dictionaries/00_6domainname/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6domainname/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5e8f4a04c --- /dev/null +++ b/tests/dictionaries/00_6domainname/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +variable: + description: a domain name variable + type: domainname + default: my.domain.name diff --git a/tests/dictionaries/01base_domainname/makedict/after.json b/tests/dictionaries/00_6domainname/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_domainname/makedict/after.json rename to tests/dictionaries/00_6domainname/makedict/after.json diff --git a/tests/dictionaries/01base_domainname/makedict/base.json b/tests/dictionaries/00_6domainname/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_domainname/makedict/base.json rename to tests/dictionaries/00_6domainname/makedict/base.json diff --git a/tests/dictionaries/01base_domainname/makedict/before.json b/tests/dictionaries/00_6domainname/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_domainname/makedict/before.json rename to tests/dictionaries/00_6domainname/makedict/before.json diff --git a/tests/dictionaries/01base_domainname_params/makedict/mandatory.json b/tests/dictionaries/00_6domainname/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_domainname_params/makedict/mandatory.json rename to tests/dictionaries/00_6domainname/makedict/mandatory.json diff --git a/tests/dictionaries/01base_domainname/tiramisu/base.py b/tests/dictionaries/00_6domainname/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_domainname/tiramisu/base.py rename to tests/dictionaries/00_6domainname/tiramisu/base.py diff --git a/tests/dictionaries/01base_domainname/tiramisu/multi.py b/tests/dictionaries/00_6domainname/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_domainname/tiramisu/multi.py rename to tests/dictionaries/00_6domainname/tiramisu/multi.py diff --git a/tests/dictionaries/01base_domainname/__init__.py b/tests/dictionaries/00_6domainname_params/__init__.py similarity index 100% rename from tests/dictionaries/01base_domainname/__init__.py rename to tests/dictionaries/00_6domainname_params/__init__.py diff --git a/tests/dictionaries/00_6domainname_params/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6domainname_params/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..90cbf9378 --- /dev/null +++ b/tests/dictionaries/00_6domainname_params/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: + description: a domain name variable + type: domainname + default: my.domain.name + params: + allow_ip: true diff --git a/tests/dictionaries/01base_domainname_params/makedict/after.json b/tests/dictionaries/00_6domainname_params/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_domainname_params/makedict/after.json rename to tests/dictionaries/00_6domainname_params/makedict/after.json diff --git a/tests/dictionaries/01base_domainname_params/makedict/base.json b/tests/dictionaries/00_6domainname_params/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_domainname_params/makedict/base.json rename to tests/dictionaries/00_6domainname_params/makedict/base.json diff --git a/tests/dictionaries/01base_domainname_params/makedict/before.json b/tests/dictionaries/00_6domainname_params/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_domainname_params/makedict/before.json rename to tests/dictionaries/00_6domainname_params/makedict/before.json diff --git a/tests/dictionaries/01base_float/makedict/mandatory.json b/tests/dictionaries/00_6domainname_params/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_float/makedict/mandatory.json rename to tests/dictionaries/00_6domainname_params/makedict/mandatory.json diff --git a/tests/dictionaries/01base_domainname_params/tiramisu/base.py b/tests/dictionaries/00_6domainname_params/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_domainname_params/tiramisu/base.py rename to tests/dictionaries/00_6domainname_params/tiramisu/base.py diff --git a/tests/dictionaries/01base_domainname_params/tiramisu/multi.py b/tests/dictionaries/00_6domainname_params/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_domainname_params/tiramisu/multi.py rename to tests/dictionaries/00_6domainname_params/tiramisu/multi.py diff --git a/tests/dictionaries/01base_domainname_params/__init__.py b/tests/dictionaries/00_6float/__init__.py similarity index 100% rename from tests/dictionaries/01base_domainname_params/__init__.py rename to tests/dictionaries/00_6float/__init__.py diff --git a/tests/dictionaries/00_6float/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6float/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5373264e6 --- /dev/null +++ b/tests/dictionaries/00_6float/dictionaries/rougail/00-base.yml @@ -0,0 +1,18 @@ +--- +version: '1.1' +var1: 0.0 # the first variable +var2: + description: the second variable + default: 0.0 +var3: + description: the third variable + type: float + default: 0.0 +var4: 10.1 # the forth variable +var5: + description: the fifth variable + default: 10.1 +var6: + description: the sixth variable + type: float + default: 10.1 diff --git a/tests/dictionaries/00_6float/makedict/after.json b/tests/dictionaries/00_6float/makedict/after.json new file mode 100644 index 000000000..29e7ed894 --- /dev/null +++ b/tests/dictionaries/00_6float/makedict/after.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": 0.0 + }, + "rougail.var2": { + "owner": "default", + "value": 0.0 + }, + "rougail.var3": { + "owner": "default", + "value": 0.0 + }, + "rougail.var4": { + "owner": "default", + "value": 10.1 + }, + "rougail.var5": { + "owner": "default", + "value": 10.1 + }, + "rougail.var6": { + "owner": "default", + "value": 10.1 + } +} diff --git a/tests/dictionaries/00_6float/makedict/base.json b/tests/dictionaries/00_6float/makedict/base.json new file mode 100644 index 000000000..dde1d582e --- /dev/null +++ b/tests/dictionaries/00_6float/makedict/base.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_6float/makedict/before.json b/tests/dictionaries/00_6float/makedict/before.json new file mode 100644 index 000000000..29e7ed894 --- /dev/null +++ b/tests/dictionaries/00_6float/makedict/before.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": 0.0 + }, + "rougail.var2": { + "owner": "default", + "value": 0.0 + }, + "rougail.var3": { + "owner": "default", + "value": 0.0 + }, + "rougail.var4": { + "owner": "default", + "value": 10.1 + }, + "rougail.var5": { + "owner": "default", + "value": 10.1 + }, + "rougail.var6": { + "owner": "default", + "value": 10.1 + } +} diff --git a/tests/dictionaries/01base_float_shorthand/makedict/mandatory.json b/tests/dictionaries/00_6float/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_float_shorthand/makedict/mandatory.json rename to tests/dictionaries/00_6float/makedict/mandatory.json diff --git a/tests/dictionaries/00_6float/tiramisu/base.py b/tests/dictionaries/00_6float/tiramisu/base.py new file mode 100644 index 000000000..5f2a8c25f --- /dev/null +++ b/tests/dictionaries/00_6float/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = FloatOption(name="var1", doc="the first variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_3 = FloatOption(name="var2", doc="the second variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_4 = FloatOption(name="var3", doc="the third variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_5 = FloatOption(name="var4", doc="the forth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_6 = FloatOption(name="var5", doc="the fifth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_7 = FloatOption(name="var6", doc="the sixth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6float/tiramisu/multi.py b/tests/dictionaries/00_6float/tiramisu/multi.py new file mode 100644 index 000000000..9e6d2fff4 --- /dev/null +++ b/tests/dictionaries/00_6float/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = FloatOption(name="var1", doc="the first variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_4 = FloatOption(name="var2", doc="the second variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_5 = FloatOption(name="var3", doc="the third variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_6 = FloatOption(name="var4", doc="the forth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_7 = FloatOption(name="var5", doc="the fifth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_8 = FloatOption(name="var6", doc="the sixth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_11 = FloatOption(name="var1", doc="the first variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_12 = FloatOption(name="var2", doc="the second variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_13 = FloatOption(name="var3", doc="the third variable", default=0.0, properties=frozenset({"mandatory", "standard"})) +option_14 = FloatOption(name="var4", doc="the forth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_15 = FloatOption(name="var5", doc="the fifth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +option_16 = FloatOption(name="var6", doc="the sixth variable", default=10.1, properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, option_12, option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/01base_float/__init__.py b/tests/dictionaries/00_6number/__init__.py similarity index 100% rename from tests/dictionaries/01base_float/__init__.py rename to tests/dictionaries/00_6number/__init__.py diff --git a/tests/dictionaries/00_6number/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6number/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..86273c72b --- /dev/null +++ b/tests/dictionaries/00_6number/dictionaries/rougail/00-base.yml @@ -0,0 +1,18 @@ +--- +version: '1.1' +var1: 0 # the first variable +var2: + description: the second variable + default: 0 +var3: + description: the third variable + type: number + default: 0 +var4: 10 # this forth variable +var5: + description: the fifth variable + default: 10 +var6: + description: the sixth variable + type: number + default: 10 diff --git a/tests/dictionaries/00_6number/makedict/after.json b/tests/dictionaries/00_6number/makedict/after.json new file mode 100644 index 000000000..a74971f3d --- /dev/null +++ b/tests/dictionaries/00_6number/makedict/after.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": 0 + }, + "rougail.var2": { + "owner": "default", + "value": 0 + }, + "rougail.var3": { + "owner": "default", + "value": 0 + }, + "rougail.var4": { + "owner": "default", + "value": 10 + }, + "rougail.var5": { + "owner": "default", + "value": 10 + }, + "rougail.var6": { + "owner": "default", + "value": 10 + } +} diff --git a/tests/dictionaries/00_6number/makedict/base.json b/tests/dictionaries/00_6number/makedict/base.json new file mode 100644 index 000000000..20006db5d --- /dev/null +++ b/tests/dictionaries/00_6number/makedict/base.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_6number/makedict/before.json b/tests/dictionaries/00_6number/makedict/before.json new file mode 100644 index 000000000..a74971f3d --- /dev/null +++ b/tests/dictionaries/00_6number/makedict/before.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": 0 + }, + "rougail.var2": { + "owner": "default", + "value": 0 + }, + "rougail.var3": { + "owner": "default", + "value": 0 + }, + "rougail.var4": { + "owner": "default", + "value": 10 + }, + "rougail.var5": { + "owner": "default", + "value": 10 + }, + "rougail.var6": { + "owner": "default", + "value": 10 + } +} diff --git a/tests/dictionaries/01base_help_quote/makedict/mandatory.json b/tests/dictionaries/00_6number/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_help_quote/makedict/mandatory.json rename to tests/dictionaries/00_6number/makedict/mandatory.json diff --git a/tests/dictionaries/00_6number/tiramisu/base.py b/tests/dictionaries/00_6number/tiramisu/base.py new file mode 100644 index 000000000..0b1447b44 --- /dev/null +++ b/tests/dictionaries/00_6number/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = IntOption(name="var1", doc="the first variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_3 = IntOption(name="var2", doc="the second variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_4 = IntOption(name="var3", doc="the third variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_5 = IntOption(name="var4", doc="this forth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_6 = IntOption(name="var5", doc="the fifth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_7 = IntOption(name="var6", doc="the sixth variable", default=10, properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6number/tiramisu/multi.py b/tests/dictionaries/00_6number/tiramisu/multi.py new file mode 100644 index 000000000..e6c6dffae --- /dev/null +++ b/tests/dictionaries/00_6number/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = IntOption(name="var1", doc="the first variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_4 = IntOption(name="var2", doc="the second variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_5 = IntOption(name="var3", doc="the third variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_6 = IntOption(name="var4", doc="this forth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_7 = IntOption(name="var5", doc="the fifth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_8 = IntOption(name="var6", doc="the sixth variable", default=10, properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_11 = IntOption(name="var1", doc="the first variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_12 = IntOption(name="var2", doc="the second variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_13 = IntOption(name="var3", doc="the third variable", default=0, properties=frozenset({"mandatory", "standard"})) +option_14 = IntOption(name="var4", doc="this forth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_15 = IntOption(name="var5", doc="the fifth variable", default=10, properties=frozenset({"mandatory", "standard"})) +option_16 = IntOption(name="var6", doc="the sixth variable", default=10, properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, option_12, option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/01base_float_shorthand/__init__.py b/tests/dictionaries/00_6string/__init__.py similarity index 100% rename from tests/dictionaries/01base_float_shorthand/__init__.py rename to tests/dictionaries/00_6string/__init__.py diff --git a/tests/dictionaries/00_6string/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_6string/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..2d4852424 --- /dev/null +++ b/tests/dictionaries/00_6string/dictionaries/rougail/00-base.yml @@ -0,0 +1,17 @@ +--- +version: '1.1' +var1: # the first variable +var2: + description: the second variable + default: +var3: + description: the third variable + type: string +var4: value # the forth variable +var5: + description: the fifth variable + default: value +var6: + description: the sixth variable + type: string + default: value diff --git a/tests/dictionaries/00_6string/makedict/after.json b/tests/dictionaries/00_6string/makedict/after.json new file mode 100644 index 000000000..09746c09d --- /dev/null +++ b/tests/dictionaries/00_6string/makedict/after.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": "value" + }, + "rougail.var5": { + "owner": "default", + "value": "value" + }, + "rougail.var6": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/00_6string/makedict/base.json b/tests/dictionaries/00_6string/makedict/base.json new file mode 100644 index 000000000..de2c3bbd3 --- /dev/null +++ b/tests/dictionaries/00_6string/makedict/base.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_6string/makedict/before.json b/tests/dictionaries/00_6string/makedict/before.json new file mode 100644 index 000000000..09746c09d --- /dev/null +++ b/tests/dictionaries/00_6string/makedict/before.json @@ -0,0 +1,26 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": "value" + }, + "rougail.var5": { + "owner": "default", + "value": "value" + }, + "rougail.var6": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/00_6string/makedict/mandatory.json b/tests/dictionaries/00_6string/makedict/mandatory.json new file mode 100644 index 000000000..bb8f7d275 --- /dev/null +++ b/tests/dictionaries/00_6string/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2", "rougail.var3"] \ No newline at end of file diff --git a/tests/dictionaries/00_6string/tiramisu/base.py b/tests/dictionaries/00_6string/tiramisu/base.py new file mode 100644 index 000000000..acd01e256 --- /dev/null +++ b/tests/dictionaries/00_6string/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_3 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"})) +option_4 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="var4", doc="the forth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="var5", doc="the fifth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var6", doc="the sixth variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_6string/tiramisu/multi.py b/tests/dictionaries/00_6string/tiramisu/multi.py new file mode 100644 index 000000000..906aea947 --- /dev/null +++ b/tests/dictionaries/00_6string/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_4 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="var4", doc="the forth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var5", doc="the fifth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var6", doc="the sixth variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_11 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"})) +option_12 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"})) +option_13 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_14 = StrOption(name="var4", doc="the forth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_15 = StrOption(name="var5", doc="the fifth variable", default="value", properties=frozenset({"mandatory", "standard"})) +option_16 = StrOption(name="var6", doc="the sixth variable", default="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, option_12, option_13, option_14, option_15, option_16], properties=frozenset({"basic"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/01base_help_quote/__init__.py b/tests/dictionaries/00_7choice_quote/__init__.py similarity index 100% rename from tests/dictionaries/01base_help_quote/__init__.py rename to tests/dictionaries/00_7choice_quote/__init__.py diff --git a/tests/dictionaries/00_7choice_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7choice_quote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c05ce4ebf --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.0' +var: + type: choice + description: A choice + default: quote' + choices: + - quote' + - quote" + - quote"' diff --git a/tests/dictionaries/00_7choice_quote/makedict/after.json b/tests/dictionaries/00_7choice_quote/makedict/after.json new file mode 100644 index 000000000..aca34b728 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "quote'" + } +} diff --git a/tests/dictionaries/00_7choice_quote/makedict/base.json b/tests/dictionaries/00_7choice_quote/makedict/base.json new file mode 100644 index 000000000..e4c736548 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "quote'" +} diff --git a/tests/dictionaries/00_7choice_quote/makedict/before.json b/tests/dictionaries/00_7choice_quote/makedict/before.json new file mode 100644 index 000000000..aca34b728 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "quote'" + } +} diff --git a/tests/dictionaries/01base_int_shorthand/makedict/mandatory.json b/tests/dictionaries/00_7choice_quote/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_int_shorthand/makedict/mandatory.json rename to tests/dictionaries/00_7choice_quote/makedict/mandatory.json diff --git a/tests/dictionaries/00_7choice_quote/tiramisu/base.py b/tests/dictionaries/00_7choice_quote/tiramisu/base.py new file mode 100644 index 000000000..9b0a3cf19 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = ChoiceOption(name="var", doc="A choice", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_7choice_quote/tiramisu/multi.py b/tests/dictionaries/00_7choice_quote/tiramisu/multi.py new file mode 100644 index 000000000..258c77b08 --- /dev/null +++ b/tests/dictionaries/00_7choice_quote/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = ChoiceOption(name="var", doc="A choice", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = ChoiceOption(name="var", doc="A choice", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_int_shorthand/__init__.py b/tests/dictionaries/00_7help_quote/__init__.py similarity index 100% rename from tests/dictionaries/01base_int_shorthand/__init__.py rename to tests/dictionaries/00_7help_quote/__init__.py diff --git a/tests/dictionaries/00_7help_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7help_quote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..b946de55d --- /dev/null +++ b/tests/dictionaries/00_7help_quote/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.0' +var1: + description: the first variable + help: message with ' +var2: + description: the second variable + help: message with " diff --git a/tests/dictionaries/00_7help_quote/makedict/after.json b/tests/dictionaries/00_7help_quote/makedict/after.json new file mode 100644 index 000000000..7ea9435a0 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_7help_quote/makedict/base.json b/tests/dictionaries/00_7help_quote/makedict/base.json new file mode 100644 index 000000000..559aec2a4 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/00_7help_quote/makedict/before.json b/tests/dictionaries/00_7help_quote/makedict/before.json new file mode 100644 index 000000000..7ea9435a0 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_7help_quote/makedict/mandatory.json b/tests/dictionaries/00_7help_quote/makedict/mandatory.json new file mode 100644 index 000000000..8c67ac5f8 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2"] \ No newline at end of file diff --git a/tests/dictionaries/00_7help_quote/tiramisu/base.py b/tests/dictionaries/00_7help_quote/tiramisu/base.py new file mode 100644 index 000000000..d59ac34f7 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'help': "message with '"}) +option_3 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"}), informations={'help': 'message with "'}) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_7help_quote/tiramisu/multi.py b/tests/dictionaries/00_7help_quote/tiramisu/multi.py new file mode 100644 index 000000000..bd0e92773 --- /dev/null +++ b/tests/dictionaries/00_7help_quote/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'help': "message with '"}) +option_4 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"}), informations={'help': 'message with "'}) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'help': "message with '"}) +option_8 = StrOption(name="var2", doc="the second variable", properties=frozenset({"basic", "mandatory"}), informations={'help': 'message with "'}) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_multi/__init__.py b/tests/dictionaries/00_7value_doublequote/__init__.py similarity index 100% rename from tests/dictionaries/01base_multi/__init__.py rename to tests/dictionaries/00_7value_doublequote/__init__.py diff --git a/tests/dictionaries/00_7value_doublequote/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7value_doublequote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..aa2f61b10 --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + description: a variable + default: quote" diff --git a/tests/dictionaries/01base_value_doublequote/makedict/after.json b/tests/dictionaries/00_7value_doublequote/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote/makedict/after.json rename to tests/dictionaries/00_7value_doublequote/makedict/after.json diff --git a/tests/dictionaries/01base_value_doublequote/makedict/base.json b/tests/dictionaries/00_7value_doublequote/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote/makedict/base.json rename to tests/dictionaries/00_7value_doublequote/makedict/base.json diff --git a/tests/dictionaries/01base_value_doublequote/makedict/before.json b/tests/dictionaries/00_7value_doublequote/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote/makedict/before.json rename to tests/dictionaries/00_7value_doublequote/makedict/before.json diff --git a/tests/dictionaries/01base_multi/makedict/mandatory.json b/tests/dictionaries/00_7value_doublequote/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_multi/makedict/mandatory.json rename to tests/dictionaries/00_7value_doublequote/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_doublequote/tiramisu/base.py b/tests/dictionaries/00_7value_doublequote/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote/tiramisu/base.py rename to tests/dictionaries/00_7value_doublequote/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_doublequote/tiramisu/multi.py b/tests/dictionaries/00_7value_doublequote/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote/tiramisu/multi.py rename to tests/dictionaries/00_7value_doublequote/tiramisu/multi.py diff --git a/tests/dictionaries/01base_multi_auto/__init__.py b/tests/dictionaries/00_7value_doublequote2/__init__.py similarity index 100% rename from tests/dictionaries/01base_multi_auto/__init__.py rename to tests/dictionaries/00_7value_doublequote2/__init__.py diff --git a/tests/dictionaries/00_7value_doublequote2/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7value_doublequote2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..100cf5cc3 --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote2/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + description: a variable + default: quote'" diff --git a/tests/dictionaries/01base_value_doublequote2/makedict/after.json b/tests/dictionaries/00_7value_doublequote2/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/makedict/after.json rename to tests/dictionaries/00_7value_doublequote2/makedict/after.json diff --git a/tests/dictionaries/01base_value_doublequote2/makedict/base.json b/tests/dictionaries/00_7value_doublequote2/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/makedict/base.json rename to tests/dictionaries/00_7value_doublequote2/makedict/base.json diff --git a/tests/dictionaries/01base_value_doublequote2/makedict/before.json b/tests/dictionaries/00_7value_doublequote2/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/makedict/before.json rename to tests/dictionaries/00_7value_doublequote2/makedict/before.json diff --git a/tests/dictionaries/01base_multi_auto/makedict/mandatory.json b/tests/dictionaries/00_7value_doublequote2/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_multi_auto/makedict/mandatory.json rename to tests/dictionaries/00_7value_doublequote2/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_doublequote2/tiramisu/base.py b/tests/dictionaries/00_7value_doublequote2/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/tiramisu/base.py rename to tests/dictionaries/00_7value_doublequote2/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_doublequote2/tiramisu/multi.py b/tests/dictionaries/00_7value_doublequote2/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/tiramisu/multi.py rename to tests/dictionaries/00_7value_doublequote2/tiramisu/multi.py diff --git a/tests/dictionaries/01base_multi_notuniq/__init__.py b/tests/dictionaries/00_7value_doublequote3/__init__.py similarity index 100% rename from tests/dictionaries/01base_multi_notuniq/__init__.py rename to tests/dictionaries/00_7value_doublequote3/__init__.py diff --git a/tests/dictionaries/00_7value_doublequote3/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7value_doublequote3/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5d407e60f --- /dev/null +++ b/tests/dictionaries/00_7value_doublequote3/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.0' +variable: + description: a variable + hidden: true + default: quote\"\' diff --git a/tests/dictionaries/01base_value_doublequote3/makedict/after.json b/tests/dictionaries/00_7value_doublequote3/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/makedict/after.json rename to tests/dictionaries/00_7value_doublequote3/makedict/after.json diff --git a/tests/dictionaries/01base_value_doublequote3/makedict/base.json b/tests/dictionaries/00_7value_doublequote3/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/makedict/base.json rename to tests/dictionaries/00_7value_doublequote3/makedict/base.json diff --git a/tests/dictionaries/01base_value_doublequote3/makedict/before.json b/tests/dictionaries/00_7value_doublequote3/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/makedict/before.json rename to tests/dictionaries/00_7value_doublequote3/makedict/before.json diff --git a/tests/dictionaries/01base_multi_notuniq/makedict/mandatory.json b/tests/dictionaries/00_7value_doublequote3/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_multi_notuniq/makedict/mandatory.json rename to tests/dictionaries/00_7value_doublequote3/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_doublequote3/tiramisu/base.py b/tests/dictionaries/00_7value_doublequote3/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/tiramisu/base.py rename to tests/dictionaries/00_7value_doublequote3/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_doublequote3/tiramisu/multi.py b/tests/dictionaries/00_7value_doublequote3/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/tiramisu/multi.py rename to tests/dictionaries/00_7value_doublequote3/tiramisu/multi.py diff --git a/tests/dictionaries/01base_multi_uniq/__init__.py b/tests/dictionaries/00_7value_quote/__init__.py similarity index 100% rename from tests/dictionaries/01base_multi_uniq/__init__.py rename to tests/dictionaries/00_7value_quote/__init__.py diff --git a/tests/dictionaries/00_7value_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_7value_quote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..40789a6fe --- /dev/null +++ b/tests/dictionaries/00_7value_quote/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.0' +variable: + description: a variable + default: quote' diff --git a/tests/dictionaries/01base_value_quote/makedict/after.json b/tests/dictionaries/00_7value_quote/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_quote/makedict/after.json rename to tests/dictionaries/00_7value_quote/makedict/after.json diff --git a/tests/dictionaries/01base_value_quote/makedict/base.json b/tests/dictionaries/00_7value_quote/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_quote/makedict/base.json rename to tests/dictionaries/00_7value_quote/makedict/base.json diff --git a/tests/dictionaries/01base_value_quote/makedict/before.json b/tests/dictionaries/00_7value_quote/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_quote/makedict/before.json rename to tests/dictionaries/00_7value_quote/makedict/before.json diff --git a/tests/dictionaries/01base_multi_uniq/makedict/mandatory.json b/tests/dictionaries/00_7value_quote/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_multi_uniq/makedict/mandatory.json rename to tests/dictionaries/00_7value_quote/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_quote/tiramisu/base.py b/tests/dictionaries/00_7value_quote/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_quote/tiramisu/base.py rename to tests/dictionaries/00_7value_quote/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_quote/tiramisu/multi.py b/tests/dictionaries/00_7value_quote/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_quote/tiramisu/multi.py rename to tests/dictionaries/00_7value_quote/tiramisu/multi.py diff --git a/tests/dictionaries/01base_shorthand/__init__.py b/tests/dictionaries/00_8calculation_information/__init__.py similarity index 100% rename from tests/dictionaries/01base_shorthand/__init__.py rename to tests/dictionaries/00_8calculation_information/__init__.py diff --git a/tests/dictionaries/00_8calculation_information/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_8calculation_information/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..fe5effe0c --- /dev/null +++ b/tests/dictionaries/00_8calculation_information/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +variable: + description: a variable + default: + type: jinja + jinja: | + {{test_information }} + params: + test_information: + type: information + information: test_information + description: get information test_information diff --git a/tests/dictionaries/10fill_target_information/makedict/after.json b/tests/dictionaries/00_8calculation_information/makedict/after.json similarity index 100% rename from tests/dictionaries/10fill_target_information/makedict/after.json rename to tests/dictionaries/00_8calculation_information/makedict/after.json diff --git a/tests/dictionaries/10fill_target_information/makedict/base.json b/tests/dictionaries/00_8calculation_information/makedict/base.json similarity index 100% rename from tests/dictionaries/10fill_target_information/makedict/base.json rename to tests/dictionaries/00_8calculation_information/makedict/base.json diff --git a/tests/dictionaries/10fill_target_information/makedict/before.json b/tests/dictionaries/00_8calculation_information/makedict/before.json similarity index 100% rename from tests/dictionaries/10fill_target_information/makedict/before.json rename to tests/dictionaries/00_8calculation_information/makedict/before.json diff --git a/tests/dictionaries/01base_string_shorthand/makedict/mandatory.json b/tests/dictionaries/00_8calculation_information/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_string_shorthand/makedict/mandatory.json rename to tests/dictionaries/00_8calculation_information/makedict/mandatory.json diff --git a/tests/dictionaries/13fill_information/tiramisu/base.py b/tests/dictionaries/00_8calculation_information/tiramisu/base.py similarity index 100% rename from tests/dictionaries/13fill_information/tiramisu/base.py rename to tests/dictionaries/00_8calculation_information/tiramisu/base.py diff --git a/tests/dictionaries/13fill_information/tiramisu/multi.py b/tests/dictionaries/00_8calculation_information/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/13fill_information/tiramisu/multi.py rename to tests/dictionaries/00_8calculation_information/tiramisu/multi.py diff --git a/tests/dictionaries/01base_string_shorthand/__init__.py b/tests/dictionaries/00_8test/__init__.py similarity index 100% rename from tests/dictionaries/01base_string_shorthand/__init__.py rename to tests/dictionaries/00_8test/__init__.py diff --git a/tests/dictionaries/00_8test/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_8test/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e592f4757 --- /dev/null +++ b/tests/dictionaries/00_8test/dictionaries/rougail/00-base.yml @@ -0,0 +1,26 @@ +--- +version: '1.1' +var1: + description: the first variable + test: + - test +var2: + description: the second variable + test: + - test + default: value +var3: + description: the third variable + test: + - test1 + - test2 +var4: + description: the forth variable + test: + - null + - test1 + - test2 +var5: + description: the fifth variable + test: + - false diff --git a/tests/dictionaries/00_8test/makedict/after.json b/tests/dictionaries/00_8test/makedict/after.json new file mode 100644 index 000000000..676492ffe --- /dev/null +++ b/tests/dictionaries/00_8test/makedict/after.json @@ -0,0 +1,22 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": "value" + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": null + }, + "rougail.var5": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_8test/makedict/base.json b/tests/dictionaries/00_8test/makedict/base.json new file mode 100644 index 000000000..a16c1253c --- /dev/null +++ b/tests/dictionaries/00_8test/makedict/base.json @@ -0,0 +1,7 @@ +{ + "rougail.var1": null, + "rougail.var2": "value", + "rougail.var3": null, + "rougail.var4": null, + "rougail.var5": null +} diff --git a/tests/dictionaries/00_8test/makedict/before.json b/tests/dictionaries/00_8test/makedict/before.json new file mode 100644 index 000000000..676492ffe --- /dev/null +++ b/tests/dictionaries/00_8test/makedict/before.json @@ -0,0 +1,22 @@ +{ + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": "value" + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": null + }, + "rougail.var5": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/00_8test/makedict/mandatory.json b/tests/dictionaries/00_8test/makedict/mandatory.json new file mode 100644 index 000000000..0b75b2830 --- /dev/null +++ b/tests/dictionaries/00_8test/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var3", "rougail.var4", "rougail.var5"] \ No newline at end of file diff --git a/tests/dictionaries/00_8test/tiramisu/base.py b/tests/dictionaries/00_8test/tiramisu/base.py new file mode 100644 index 000000000..5d0f2647e --- /dev/null +++ b/tests/dictionaries/00_8test/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test',)}) +option_3 = StrOption(name="var2", doc="the second variable", default="value", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) +option_4 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test1', 'test2')}) +option_5 = StrOption(name="var4", doc="the forth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (None, 'test1', 'test2')}) +option_6 = StrOption(name="var5", doc="the fifth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (False,)}) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_8test/tiramisu/multi.py b/tests/dictionaries/00_8test/tiramisu/multi.py new file mode 100644 index 000000000..dd0cbd5a5 --- /dev/null +++ b/tests/dictionaries/00_8test/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test',)}) +option_4 = StrOption(name="var2", doc="the second variable", default="value", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) +option_5 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test1', 'test2')}) +option_6 = StrOption(name="var4", doc="the forth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (None, 'test1', 'test2')}) +option_7 = StrOption(name="var5", doc="the fifth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (False,)}) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="var1", doc="the first variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test',)}) +option_11 = StrOption(name="var2", doc="the second variable", default="value", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) +option_12 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"}), informations={'test': ('test1', 'test2')}) +option_13 = StrOption(name="var4", doc="the forth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (None, 'test1', 'test2')}) +option_14 = StrOption(name="var5", doc="the fifth variable", properties=frozenset({"basic", "mandatory"}), informations={'test': (False,)}) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, option_11, option_12, option_13, option_14], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/00_9choice_variables/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9choice_variables/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..fee7f45f7 --- /dev/null +++ b/tests/dictionaries/00_9choice_variables/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +source_variable_1: val1 # the first source variable +source_variable_2: val2 # the second source variable +my_variable: + description: a variable + type: choice + choices: + - type: variable + variable: rougail.source_variable_1 + - type: variable + variable: rougail.source_variable_2 + default: val1 diff --git a/tests/dictionaries/10valid_enum_variables/makedict/after.json b/tests/dictionaries/00_9choice_variables/makedict/after.json similarity index 100% rename from tests/dictionaries/10valid_enum_variables/makedict/after.json rename to tests/dictionaries/00_9choice_variables/makedict/after.json diff --git a/tests/dictionaries/10valid_enum_variables/makedict/base.json b/tests/dictionaries/00_9choice_variables/makedict/base.json similarity index 100% rename from tests/dictionaries/10valid_enum_variables/makedict/base.json rename to tests/dictionaries/00_9choice_variables/makedict/base.json diff --git a/tests/dictionaries/10valid_enum_variables/makedict/before.json b/tests/dictionaries/00_9choice_variables/makedict/before.json similarity index 100% rename from tests/dictionaries/10valid_enum_variables/makedict/before.json rename to tests/dictionaries/00_9choice_variables/makedict/before.json diff --git a/tests/dictionaries/01base_value_doublequote/makedict/mandatory.json b/tests/dictionaries/00_9choice_variables/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote/makedict/mandatory.json rename to tests/dictionaries/00_9choice_variables/makedict/mandatory.json diff --git a/tests/dictionaries/00_9choice_variables/tiramisu/base.py b/tests/dictionaries/00_9choice_variables/tiramisu/base.py new file mode 100644 index 000000000..c7905ad2d --- /dev/null +++ b/tests/dictionaries/00_9choice_variables/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="source_variable_1", doc="the first source variable", default="val1", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="source_variable_2", doc="the second source variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_4 = ChoiceOption(name="my_variable", doc="a variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_2)))), Calculation(func['calc_value'], Params((ParamOption(option_3))))), default="val1", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_9choice_variables/tiramisu/multi.py b/tests/dictionaries/00_9choice_variables/tiramisu/multi.py new file mode 100644 index 000000000..ea670ac61 --- /dev/null +++ b/tests/dictionaries/00_9choice_variables/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="source_variable_1", doc="the first source variable", default="val1", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="source_variable_2", doc="the second source variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_5 = ChoiceOption(name="my_variable", doc="a variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_3)))), Calculation(func['calc_value'], Params((ParamOption(option_4))))), default="val1", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="source_variable_1", doc="the first source variable", default="val1", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="source_variable_2", doc="the second source variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_10 = ChoiceOption(name="my_variable", doc="a variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_8)))), Calculation(func['calc_value'], Params((ParamOption(option_9))))), default="val1", properties=frozenset({"mandatory", "standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/01base_value_doublequote/__init__.py b/tests/dictionaries/00_9default_calculation/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote/__init__.py rename to tests/dictionaries/00_9default_calculation/__init__.py diff --git a/tests/dictionaries/00_9default_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..33c22c08b --- /dev/null +++ b/tests/dictionaries/00_9default_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +variable: + description: a variable + default: + type: jinja + jinja: | + {{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }} + params: + param1: string + param2: 1 + param3: true + param4: null + description: concat all parameters diff --git a/tests/dictionaries/10fill/makedict/after.json b/tests/dictionaries/00_9default_calculation/makedict/after.json similarity index 100% rename from tests/dictionaries/10fill/makedict/after.json rename to tests/dictionaries/00_9default_calculation/makedict/after.json diff --git a/tests/dictionaries/10fill/makedict/base.json b/tests/dictionaries/00_9default_calculation/makedict/base.json similarity index 100% rename from tests/dictionaries/10fill/makedict/base.json rename to tests/dictionaries/00_9default_calculation/makedict/base.json diff --git a/tests/dictionaries/10fill/makedict/before.json b/tests/dictionaries/00_9default_calculation/makedict/before.json similarity index 100% rename from tests/dictionaries/10fill/makedict/before.json rename to tests/dictionaries/00_9default_calculation/makedict/before.json diff --git a/tests/dictionaries/01base_value_doublequote2/makedict/mandatory.json b/tests/dictionaries/00_9default_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/makedict/mandatory.json rename to tests/dictionaries/00_9default_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/00_9default_calculation/tiramisu/base.py b/tests/dictionaries/00_9default_calculation/tiramisu/base.py new file mode 100644 index 000000000..00077b6a2 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" +option_2 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_9default_calculation/tiramisu/multi.py b/tests/dictionaries/00_9default_calculation/tiramisu/multi.py new file mode 100644 index 000000000..b864595b8 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" +dict_env['default_2.rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" +option_3 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_value_doublequote2/__init__.py b/tests/dictionaries/00_9default_calculation_information/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote2/__init__.py rename to tests/dictionaries/00_9default_calculation_information/__init__.py diff --git a/tests/dictionaries/00_9default_calculation_information/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_calculation_information/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e2ef8d19f --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +var: + description: a variable + default: + type: jinja + jinja: '{{ information }}' + params: + information: + type: information + information: test_information + variable: _.var + description: returns the information diff --git a/tests/dictionaries/00_9default_calculation_information/informations.json b/tests/dictionaries/00_9default_calculation_information/informations.json new file mode 100644 index 000000000..388b2508d --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/informations.json @@ -0,0 +1 @@ +{"rougail.var": "value"} diff --git a/tests/dictionaries/00_9default_calculation_information/makedict/after.json b/tests/dictionaries/00_9default_calculation_information/makedict/after.json new file mode 100644 index 000000000..e4928d8c3 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/00_9default_calculation_information/makedict/base.json b/tests/dictionaries/00_9default_calculation_information/makedict/base.json new file mode 100644 index 000000000..39e7b0017 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "value" +} diff --git a/tests/dictionaries/00_9default_calculation_information/makedict/before.json b/tests/dictionaries/00_9default_calculation_information/makedict/before.json new file mode 100644 index 000000000..e4928d8c3 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "value" + } +} diff --git a/tests/dictionaries/01base_value_doublequote3/makedict/mandatory.json b/tests/dictionaries/00_9default_calculation_information/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/makedict/mandatory.json rename to tests/dictionaries/00_9default_calculation_information/makedict/mandatory.json diff --git a/tests/dictionaries/00_9default_calculation_information/tiramisu/base.py b/tests/dictionaries/00_9default_calculation_information/tiramisu/base.py new file mode 100644 index 000000000..90aeffd90 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var'] = "{{ information }}" +option_2 = StrOption(name="var", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamSelfInformation("test_information", None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_9default_calculation_information/tiramisu/multi.py b/tests/dictionaries/00_9default_calculation_information/tiramisu/multi.py new file mode 100644 index 000000000..313998413 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var'] = "{{ information }}" +dict_env['default_2.rougail.var'] = "{{ information }}" +option_3 = StrOption(name="var", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamSelfInformation("test_information", None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="var", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamSelfInformation("test_information", None)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_value_doublequote3/__init__.py b/tests/dictionaries/00_9default_calculation_information_other_variable/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_doublequote3/__init__.py rename to tests/dictionaries/00_9default_calculation_information_other_variable/__init__.py diff --git a/tests/dictionaries/00_9default_calculation_information_other_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_calculation_information_other_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0b8a20922 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_information_other_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +var1: # a first variable +var2: + description: a second variable + default: + type: jinja + jinja: | + {{ information }} + params: + information: + type: information + information: test_information + variable: _.var1 diff --git a/tests/dictionaries/13fill_option/informations.json b/tests/dictionaries/00_9default_calculation_information_other_variable/informations.json similarity index 100% rename from tests/dictionaries/13fill_option/informations.json rename to tests/dictionaries/00_9default_calculation_information_other_variable/informations.json diff --git a/tests/dictionaries/13fill_option/makedict/after.json b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/after.json similarity index 100% rename from tests/dictionaries/13fill_option/makedict/after.json rename to tests/dictionaries/00_9default_calculation_information_other_variable/makedict/after.json diff --git a/tests/dictionaries/13fill_option/makedict/base.json b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/base.json similarity index 100% rename from tests/dictionaries/13fill_option/makedict/base.json rename to tests/dictionaries/00_9default_calculation_information_other_variable/makedict/base.json diff --git a/tests/dictionaries/13fill_option/makedict/before.json b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/before.json similarity index 100% rename from tests/dictionaries/13fill_option/makedict/before.json rename to tests/dictionaries/00_9default_calculation_information_other_variable/makedict/before.json diff --git a/tests/dictionaries/01base_value_multi_doublequote/makedict/mandatory.json b/tests/dictionaries/00_9default_calculation_information_other_variable/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/makedict/mandatory.json rename to tests/dictionaries/00_9default_calculation_information_other_variable/makedict/mandatory.json diff --git a/tests/dictionaries/13fill_option/tiramisu/base.py b/tests/dictionaries/00_9default_calculation_information_other_variable/tiramisu/base.py similarity index 100% rename from tests/dictionaries/13fill_option/tiramisu/base.py rename to tests/dictionaries/00_9default_calculation_information_other_variable/tiramisu/base.py diff --git a/tests/dictionaries/13fill_option/tiramisu/multi.py b/tests/dictionaries/00_9default_calculation_information_other_variable/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/13fill_option/tiramisu/multi.py rename to tests/dictionaries/00_9default_calculation_information_other_variable/tiramisu/multi.py diff --git a/tests/dictionaries/01base_value_multi_doublequote/__init__.py b/tests/dictionaries/00_9default_calculation_param_optional/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/__init__.py rename to tests/dictionaries/00_9default_calculation_param_optional/__init__.py diff --git a/tests/dictionaries/00_9default_calculation_param_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_calculation_param_optional/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..70a80b98f --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/dictionaries/rougail/00-base.yml @@ -0,0 +1,32 @@ +--- +version: '1.1' +var1: + description: a first variable + default: + type: jinja + jinja: '{% if var2 is defined %} + {{ var2 }} + {% elif var3 is defined %} + {{ var3 }} + {% elif var4 is defined %} + {{ var4 }} + {% else %} + {{ _.var2 }} + {% endif %} + ' + params: + var2: + type: variable + variable: _.var2 + optional: true + var3: + type: variable + variable: _.var3 + optional: true + var4: + type: variable + variable: _.unknown_family.var + optional: true + description: returns a value + mandatory: false +var2: "no" # a second variable diff --git a/tests/dictionaries/00_9default_calculation_param_optional/makedict/after.json b/tests/dictionaries/00_9default_calculation_param_optional/makedict/after.json new file mode 100644 index 000000000..0c0ecae57 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/00_9default_calculation_param_optional/makedict/base.json b/tests/dictionaries/00_9default_calculation_param_optional/makedict/base.json new file mode 100644 index 000000000..2ff57a58f --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/00_9default_calculation_param_optional/makedict/before.json b/tests/dictionaries/00_9default_calculation_param_optional/makedict/before.json new file mode 100644 index 000000000..0c0ecae57 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/01base_value_multi_doublequote2/makedict/mandatory.json b/tests/dictionaries/00_9default_calculation_param_optional/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/makedict/mandatory.json rename to tests/dictionaries/00_9default_calculation_param_optional/makedict/mandatory.json diff --git a/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/base.py b/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/base.py new file mode 100644 index 000000000..1c5f2575a --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var1'] = "{% if var2 is defined %} {{ var2 }} {% elif var3 is defined %} {{ var3 }} {% elif var4 is defined %} {{ var4 }} {% else %} {{ _.var2 }} {% endif %} " +option_3 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_2 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'var2': ParamOption(option_3), '_.var2': ParamOption(option_3)})), properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/multi.py b/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/multi.py new file mode 100644 index 000000000..6163679b2 --- /dev/null +++ b/tests/dictionaries/00_9default_calculation_param_optional/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var1'] = "{% if var2 is defined %} {{ var2 }} {% elif var3 is defined %} {{ var3 }} {% elif var4 is defined %} {{ var4 }} {% else %} {{ _.var2 }} {% endif %} " +dict_env['default_2.rougail.var1'] = "{% if var2 is defined %} {{ var2 }} {% elif var3 is defined %} {{ var3 }} {% elif var4 is defined %} {{ var4 }} {% else %} {{ _.var2 }} {% endif %} " +option_4 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'var2': ParamOption(option_4), '_.var2': ParamOption(option_4)})), properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'var2': ParamOption(option_8), '_.var2': ParamOption(option_8)})), properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_value_multi_doublequote2/__init__.py b/tests/dictionaries/00_9default_information_other_variable/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/__init__.py rename to tests/dictionaries/00_9default_information_other_variable/__init__.py diff --git a/tests/dictionaries/00_9default_information_other_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_information_other_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7e9c20023 --- /dev/null +++ b/tests/dictionaries/00_9default_information_other_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: '1.1' +var1: # a first variable +var2: + description: a second variable + default: + type: information + information: test_information + variable: _.var1 diff --git a/tests/dictionaries/13fill_option_information/informations.json b/tests/dictionaries/00_9default_information_other_variable/informations.json similarity index 100% rename from tests/dictionaries/13fill_option_information/informations.json rename to tests/dictionaries/00_9default_information_other_variable/informations.json diff --git a/tests/dictionaries/13fill_option_information/makedict/after.json b/tests/dictionaries/00_9default_information_other_variable/makedict/after.json similarity index 100% rename from tests/dictionaries/13fill_option_information/makedict/after.json rename to tests/dictionaries/00_9default_information_other_variable/makedict/after.json diff --git a/tests/dictionaries/13fill_option_information/makedict/base.json b/tests/dictionaries/00_9default_information_other_variable/makedict/base.json similarity index 100% rename from tests/dictionaries/13fill_option_information/makedict/base.json rename to tests/dictionaries/00_9default_information_other_variable/makedict/base.json diff --git a/tests/dictionaries/13fill_option_information/makedict/before.json b/tests/dictionaries/00_9default_information_other_variable/makedict/before.json similarity index 100% rename from tests/dictionaries/13fill_option_information/makedict/before.json rename to tests/dictionaries/00_9default_information_other_variable/makedict/before.json diff --git a/tests/dictionaries/01base_value_multi_quote/makedict/mandatory.json b/tests/dictionaries/00_9default_information_other_variable/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/makedict/mandatory.json rename to tests/dictionaries/00_9default_information_other_variable/makedict/mandatory.json diff --git a/tests/dictionaries/13fill_option_information/tiramisu/base.py b/tests/dictionaries/00_9default_information_other_variable/tiramisu/base.py similarity index 100% rename from tests/dictionaries/13fill_option_information/tiramisu/base.py rename to tests/dictionaries/00_9default_information_other_variable/tiramisu/base.py diff --git a/tests/dictionaries/13fill_option_information/tiramisu/multi.py b/tests/dictionaries/00_9default_information_other_variable/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/13fill_option_information/tiramisu/multi.py rename to tests/dictionaries/00_9default_information_other_variable/tiramisu/multi.py diff --git a/tests/dictionaries/00_9default_integer/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9default_integer/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..ab8d02967 --- /dev/null +++ b/tests/dictionaries/00_9default_integer/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +var: + description: a variable + type: choice + default: 9 + choices: + type: jinja + jinja: |+ + {% for item in trange(0, 10) %} + {{ item }} + {%- endfor %} + return_type: number + description: choice for 0 to 9 diff --git a/tests/dictionaries/00_9default_integer/makedict/after.json b/tests/dictionaries/00_9default_integer/makedict/after.json new file mode 100644 index 000000000..679cb186d --- /dev/null +++ b/tests/dictionaries/00_9default_integer/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": 9 + } +} diff --git a/tests/dictionaries/00_9default_integer/makedict/base.json b/tests/dictionaries/00_9default_integer/makedict/base.json new file mode 100644 index 000000000..e03ee5a69 --- /dev/null +++ b/tests/dictionaries/00_9default_integer/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": 9 +} diff --git a/tests/dictionaries/00_9default_integer/makedict/before.json b/tests/dictionaries/00_9default_integer/makedict/before.json new file mode 100644 index 000000000..679cb186d --- /dev/null +++ b/tests/dictionaries/00_9default_integer/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": 9 + } +} diff --git a/tests/dictionaries/01base_value_quote/makedict/mandatory.json b/tests/dictionaries/00_9default_integer/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_value_quote/makedict/mandatory.json rename to tests/dictionaries/00_9default_integer/makedict/mandatory.json diff --git a/tests/dictionaries/00_9default_integer/tiramisu/base.py b/tests/dictionaries/00_9default_integer/tiramisu/base.py new file mode 100644 index 000000000..013c88f6d --- /dev/null +++ b/tests/dictionaries/00_9default_integer/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['choices_rougail.var'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" +option_2 = ChoiceOption(name="var", doc="a variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_rougail.var"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00_9default_integer/tiramisu/multi.py b/tests/dictionaries/00_9default_integer/tiramisu/multi.py new file mode 100644 index 000000000..4b41b3667 --- /dev/null +++ b/tests/dictionaries/00_9default_integer/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['choices_1.rougail.var'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" +dict_env['choices_2.rougail.var'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" +option_3 = ChoiceOption(name="var", doc="a variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_1.rougail.var"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = ChoiceOption(name="var", doc="a variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_2.rougail.var"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_value_multi_quote/__init__.py b/tests/dictionaries/00_9extra/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/__init__.py rename to tests/dictionaries/00_9extra/__init__.py diff --git a/tests/dictionaries/00_9extra/dictionaries/extra/00-base.yml b/tests/dictionaries/00_9extra/dictionaries/extra/00-base.yml new file mode 100644 index 000000000..7d8c29e22 --- /dev/null +++ b/tests/dictionaries/00_9extra/dictionaries/extra/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: + description: a variable + default: + type: jinja + jinja: 'no' + description: return no diff --git a/tests/dictionaries/00_9extra/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9extra/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..4f64b4402 --- /dev/null +++ b/tests/dictionaries/00_9extra/dictionaries/rougail/00-base.yml @@ -0,0 +1,3 @@ +--- +version: '1.1' +variable: rougail # a variable diff --git a/tests/dictionaries/45extra_without_family/makedict/after.json b/tests/dictionaries/00_9extra/makedict/after.json similarity index 100% rename from tests/dictionaries/45extra_without_family/makedict/after.json rename to tests/dictionaries/00_9extra/makedict/after.json diff --git a/tests/dictionaries/45extra_without_family/makedict/base.json b/tests/dictionaries/00_9extra/makedict/base.json similarity index 100% rename from tests/dictionaries/45extra_without_family/makedict/base.json rename to tests/dictionaries/00_9extra/makedict/base.json diff --git a/tests/dictionaries/45extra_without_family/makedict/before.json b/tests/dictionaries/00_9extra/makedict/before.json similarity index 100% rename from tests/dictionaries/45extra_without_family/makedict/before.json rename to tests/dictionaries/00_9extra/makedict/before.json diff --git a/tests/dictionaries/01base_var_name_same_family/makedict/mandatory.json b/tests/dictionaries/00_9extra/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01base_var_name_same_family/makedict/mandatory.json rename to tests/dictionaries/00_9extra/makedict/mandatory.json diff --git a/tests/dictionaries/45extra_without_family/result/etc/file b/tests/dictionaries/00_9extra/result/etc/file similarity index 100% rename from tests/dictionaries/45extra_without_family/result/etc/file rename to tests/dictionaries/00_9extra/result/etc/file diff --git a/tests/dictionaries/11disabled_if_in_filelist/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/00_9extra/result/tmpfiles.d/0rougail.conf similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist/result/tmpfiles.d/0rougail.conf rename to tests/dictionaries/00_9extra/result/tmpfiles.d/0rougail.conf diff --git a/tests/dictionaries/45extra_without_family/tiramisu/base.py b/tests/dictionaries/00_9extra/tiramisu/base.py similarity index 100% rename from tests/dictionaries/45extra_without_family/tiramisu/base.py rename to tests/dictionaries/00_9extra/tiramisu/base.py diff --git a/tests/dictionaries/45extra_without_family/tiramisu/multi.py b/tests/dictionaries/00_9extra/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/45extra_without_family/tiramisu/multi.py rename to tests/dictionaries/00_9extra/tiramisu/multi.py diff --git a/tests/dictionaries/45extra_without_family/tmpl/file b/tests/dictionaries/00_9extra/tmpl/file similarity index 100% rename from tests/dictionaries/45extra_without_family/tmpl/file rename to tests/dictionaries/00_9extra/tmpl/file diff --git a/tests/dictionaries/01base_value_quote/__init__.py b/tests/dictionaries/00_9extra_calculation/__init__.py similarity index 100% rename from tests/dictionaries/01base_value_quote/__init__.py rename to tests/dictionaries/00_9extra_calculation/__init__.py diff --git a/tests/dictionaries/00_9extra_calculation/dictionaries/extra/00-base.yml b/tests/dictionaries/00_9extra_calculation/dictionaries/extra/00-base.yml new file mode 100644 index 000000000..a86b0961d --- /dev/null +++ b/tests/dictionaries/00_9extra_calculation/dictionaries/extra/00-base.yml @@ -0,0 +1,25 @@ +--- +version: '1.1' +variable1: + description: a first variable + default: + type: variable + variable: rougail.variable +variable2: + description: a second variable + default: + type: jinja + jinja: | + {{ rougail.variable }} + description: copy the value of rougail.variable +variable3: + description: a third variable + default: + type: jinja + jinja: | + {{ variable }} + params: + variable: + type: variable + variable: rougail.variable + description: copy the value of rougail.variable diff --git a/tests/dictionaries/00_9extra_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/00_9extra_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e0c9e9727 --- /dev/null +++ b/tests/dictionaries/00_9extra_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,3 @@ +--- +version: '1.1' +variable: value # a variable diff --git a/tests/dictionaries/60extra_basic/makedict/after.json b/tests/dictionaries/00_9extra_calculation/makedict/after.json similarity index 100% rename from tests/dictionaries/60extra_basic/makedict/after.json rename to tests/dictionaries/00_9extra_calculation/makedict/after.json diff --git a/tests/dictionaries/60extra_basic/makedict/base.json b/tests/dictionaries/00_9extra_calculation/makedict/base.json similarity index 100% rename from tests/dictionaries/60extra_basic/makedict/base.json rename to tests/dictionaries/00_9extra_calculation/makedict/base.json diff --git a/tests/dictionaries/60extra_basic/makedict/before.json b/tests/dictionaries/00_9extra_calculation/makedict/before.json similarity index 100% rename from tests/dictionaries/60extra_basic/makedict/before.json rename to tests/dictionaries/00_9extra_calculation/makedict/before.json diff --git a/tests/dictionaries/60extra_basic/makedict/mandatory.json b/tests/dictionaries/00_9extra_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/60extra_basic/makedict/mandatory.json rename to tests/dictionaries/00_9extra_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/60extra_basic/tiramisu/base.py b/tests/dictionaries/00_9extra_calculation/tiramisu/base.py similarity index 100% rename from tests/dictionaries/60extra_basic/tiramisu/base.py rename to tests/dictionaries/00_9extra_calculation/tiramisu/base.py diff --git a/tests/dictionaries/60extra_basic/tiramisu/multi.py b/tests/dictionaries/00_9extra_calculation/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/60extra_basic/tiramisu/multi.py rename to tests/dictionaries/00_9extra_calculation/tiramisu/multi.py diff --git a/tests/dictionaries/00empty_variable/makedict/base.json b/tests/dictionaries/00empty_variable/makedict/base.json deleted file mode 100644 index 6311042cd..000000000 --- a/tests/dictionaries/00empty_variable/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.empty": null -} diff --git a/tests/dictionaries/00load_notype/dictionaries/rougail/00-base.yml b/tests/dictionaries/00load_notype/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1355fc8a8..000000000 --- a/tests/dictionaries/00load_notype/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - without_type: - default: non -version: '1.0' diff --git a/tests/dictionaries/00load_notype/makedict/after.json b/tests/dictionaries/00load_notype/makedict/after.json deleted file mode 100644 index 89640e57e..000000000 --- a/tests/dictionaries/00load_notype/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.without_type": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_notype/makedict/base.json b/tests/dictionaries/00load_notype/makedict/base.json deleted file mode 100644 index 983f231e5..000000000 --- a/tests/dictionaries/00load_notype/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.without_type": "non" -} diff --git a/tests/dictionaries/00load_notype/makedict/before.json b/tests/dictionaries/00load_notype/makedict/before.json deleted file mode 100644 index 89640e57e..000000000 --- a/tests/dictionaries/00load_notype/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.without_type": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_notype/tiramisu/base.py b/tests/dictionaries/00load_notype/tiramisu/base.py deleted file mode 100644 index d80a409f6..000000000 --- a/tests/dictionaries/00load_notype/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="without_type", doc="without_type", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00load_notype/tiramisu/multi.py b/tests/dictionaries/00load_notype/tiramisu/multi.py deleted file mode 100644 index f49974698..000000000 --- a/tests/dictionaries/00load_notype/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="without_type", doc="without_type", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_10 = StrOption(name="without_type", doc="without_type", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="général", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/00load_save/dictionaries/rougail/00-base.yml b/tests/dictionaries/00load_save/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1085cc1cc..000000000 --- a/tests/dictionaries/00load_save/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/00load_save/makedict/after.json b/tests/dictionaries/00load_save/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/00load_save/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_save/makedict/base.json b/tests/dictionaries/00load_save/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/00load_save/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/00load_save/makedict/before.json b/tests/dictionaries/00load_save/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/00load_save/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_save/tiramisu/base.py b/tests/dictionaries/00load_save/tiramisu/base.py deleted file mode 100644 index c3298848a..000000000 --- a/tests/dictionaries/00load_save/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00load_save/tiramisu/multi.py b/tests/dictionaries/00load_save/tiramisu/multi.py deleted file mode 100644 index 146a4820a..000000000 --- a/tests/dictionaries/00load_save/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="général", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/00load_subfolder/dictionaries/rougail/99-base.yml b/tests/dictionaries/00load_subfolder/dictionaries/rougail/99-base.yml deleted file mode 100644 index 0fc6888de..000000000 --- a/tests/dictionaries/00load_subfolder/dictionaries/rougail/99-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.0' -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non diff --git a/tests/dictionaries/00load_subfolder/dictionaries/rougail2/00-base.yml b/tests/dictionaries/00load_subfolder/dictionaries/rougail2/00-base.yml deleted file mode 100644 index c1f822cad..000000000 --- a/tests/dictionaries/00load_subfolder/dictionaries/rougail2/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -version: "1.0" -general: - mode_conteneur_actif1: - description: "No change" - hidden: true - default: non diff --git a/tests/dictionaries/00load_subfolder/makedict/after.json b/tests/dictionaries/00load_subfolder/makedict/after.json deleted file mode 100644 index 39ed60d03..000000000 --- a/tests/dictionaries/00load_subfolder/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_subfolder/makedict/base.json b/tests/dictionaries/00load_subfolder/makedict/base.json deleted file mode 100644 index fb54e4386..000000000 --- a/tests/dictionaries/00load_subfolder/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/00load_subfolder/makedict/before.json b/tests/dictionaries/00load_subfolder/makedict/before.json deleted file mode 100644 index 39ed60d03..000000000 --- a/tests/dictionaries/00load_subfolder/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/00load_subfolder/tiramisu/base.py b/tests/dictionaries/00load_subfolder/tiramisu/base.py deleted file mode 100644 index ed08e8d31..000000000 --- a/tests/dictionaries/00load_subfolder/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/00load_subfolder/tiramisu/multi.py b/tests/dictionaries/00load_subfolder/tiramisu/multi.py deleted file mode 100644 index 3efe3771e..000000000 --- a/tests/dictionaries/00load_subfolder/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="général", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/01base_var_name_same_family/__init__.py b/tests/dictionaries/01_6boolean_multi/__init__.py similarity index 100% rename from tests/dictionaries/01base_var_name_same_family/__init__.py rename to tests/dictionaries/01_6boolean_multi/__init__.py diff --git a/tests/dictionaries/01_6boolean_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_6boolean_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6d0ffeb4b --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,36 @@ +--- +version: '1.1' +var1: # the first variable + - true +var2: + description: the second variable + default: + - true +var3: + description: the third variable + type: boolean + default: + - true +var4: # the forth variable + - false +var5: + description: the fifth variable + default: + - false +var6: + description: the sixth variable + type: boolean + default: + - false + +var7: + description: the seventh variable + multi: true + default: + - true +var8: + description: the eighth variable + type: boolean + multi: true + default: + - true diff --git a/tests/dictionaries/01_6boolean_multi/makedict/after.json b/tests/dictionaries/01_6boolean_multi/makedict/after.json new file mode 100644 index 000000000..e0701343e --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/makedict/after.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + true + ] + } +} diff --git a/tests/dictionaries/01_6boolean_multi/makedict/base.json b/tests/dictionaries/01_6boolean_multi/makedict/base.json new file mode 100644 index 000000000..93be85432 --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/makedict/base.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_6boolean_multi/makedict/before.json b/tests/dictionaries/01_6boolean_multi/makedict/before.json new file mode 100644 index 000000000..e0701343e --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/makedict/before.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + true + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + true + ] + } +} diff --git a/tests/dictionaries/01boolean_no_mandatory/makedict/mandatory.json b/tests/dictionaries/01_6boolean_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01boolean_no_mandatory/makedict/mandatory.json rename to tests/dictionaries/01_6boolean_multi/makedict/mandatory.json diff --git a/tests/dictionaries/01_6boolean_multi/tiramisu/base.py b/tests/dictionaries/01_6boolean_multi/tiramisu/base.py new file mode 100644 index 000000000..c0f8c41ff --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/tiramisu/base.py @@ -0,0 +1,17 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="var1", doc="the first variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_3 = BoolOption(name="var2", doc="the second variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = BoolOption(name="var3", doc="the third variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = BoolOption(name="var4", doc="the forth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = BoolOption(name="var5", doc="the fifth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = BoolOption(name="var6", doc="the sixth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = BoolOption(name="var7", doc="the seventh variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = BoolOption(name="var8", doc="the eighth variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01_6boolean_multi/tiramisu/multi.py b/tests/dictionaries/01_6boolean_multi/tiramisu/multi.py new file mode 100644 index 000000000..815ae61db --- /dev/null +++ b/tests/dictionaries/01_6boolean_multi/tiramisu/multi.py @@ -0,0 +1,28 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="var1", doc="the first variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = BoolOption(name="var2", doc="the second variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = BoolOption(name="var3", doc="the third variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = BoolOption(name="var4", doc="the forth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = BoolOption(name="var5", doc="the fifth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = BoolOption(name="var6", doc="the sixth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = BoolOption(name="var7", doc="the seventh variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = BoolOption(name="var8", doc="the eighth variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_13 = BoolOption(name="var1", doc="the first variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_14 = BoolOption(name="var2", doc="the second variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_15 = BoolOption(name="var3", doc="the third variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_16 = BoolOption(name="var4", doc="the forth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_17 = BoolOption(name="var5", doc="the fifth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_18 = BoolOption(name="var6", doc="the sixth variable", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) +option_19 = BoolOption(name="var7", doc="the seventh variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +option_20 = BoolOption(name="var8", doc="the eighth variable", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[option_13, option_14, option_15, option_16, option_17, option_18, option_19, option_20], properties=frozenset({"standard"})) +optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/01boolean_no_mandatory/__init__.py b/tests/dictionaries/01_6custom_multi/__init__.py similarity index 100% rename from tests/dictionaries/01boolean_no_mandatory/__init__.py rename to tests/dictionaries/01_6custom_multi/__init__.py diff --git a/tests/dictionaries/01_6custom_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_6custom_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..39125a285 --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +custom1: + description: a first custom variable + type: custom + multi: true +custom2: + description: a second custom variable + type: custom + default: + - value diff --git a/tests/dictionaries/01_6custom_multi/makedict/after.json b/tests/dictionaries/01_6custom_multi/makedict/after.json new file mode 100644 index 000000000..4fd1b5822 --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/makedict/after.json @@ -0,0 +1,12 @@ +{ + "rougail.custom1": { + "owner": "default", + "value": [] + }, + "rougail.custom2": { + "owner": "default", + "value": [ + "value" + ] + } +} diff --git a/tests/dictionaries/01_6custom_multi/makedict/base.json b/tests/dictionaries/01_6custom_multi/makedict/base.json new file mode 100644 index 000000000..b76cf38cc --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/makedict/base.json @@ -0,0 +1,6 @@ +{ + "rougail.custom1": [], + "rougail.custom2": [ + "value" + ] +} diff --git a/tests/dictionaries/01_6custom_multi/makedict/before.json b/tests/dictionaries/01_6custom_multi/makedict/before.json new file mode 100644 index 000000000..4fd1b5822 --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/makedict/before.json @@ -0,0 +1,12 @@ +{ + "rougail.custom1": { + "owner": "default", + "value": [] + }, + "rougail.custom2": { + "owner": "default", + "value": [ + "value" + ] + } +} diff --git a/tests/dictionaries/01_6custom_multi/makedict/mandatory.json b/tests/dictionaries/01_6custom_multi/makedict/mandatory.json new file mode 100644 index 000000000..d7995133a --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.custom1"] \ No newline at end of file diff --git a/tests/dictionaries/01_6custom_multi/tiramisu/base.py b/tests/dictionaries/01_6custom_multi/tiramisu/base.py new file mode 100644 index 000000000..fdd14bb67 --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = CustomOption(name="custom1", doc="a first custom variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_3 = CustomOption(name="custom2", doc="a second custom variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01_6custom_multi/tiramisu/multi.py b/tests/dictionaries/01_6custom_multi/tiramisu/multi.py new file mode 100644 index 000000000..efe62bb07 --- /dev/null +++ b/tests/dictionaries/01_6custom_multi/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = CustomOption(name="custom1", doc="a first custom variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = CustomOption(name="custom2", doc="a second custom variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = CustomOption(name="custom1", doc="a first custom variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_8 = CustomOption(name="custom2", doc="a second custom variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01family_description/__init__.py b/tests/dictionaries/01_6float_multi/__init__.py similarity index 100% rename from tests/dictionaries/01family_description/__init__.py rename to tests/dictionaries/01_6float_multi/__init__.py diff --git a/tests/dictionaries/01_6float_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_6float_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..df8a001ad --- /dev/null +++ b/tests/dictionaries/01_6float_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,36 @@ +--- +version: '1.1' +var1: # the first variable + - 0.0 +var2: + description: the second variable + default: + - 0.0 +var3: + description: the third variable + type: float + default: + - 0.0 +var4: # the forth variable + - 10.1 +var5: + description: the fifth variable + default: + - 10.1 +var6: + description: the sixth variable + type: float + default: + - 10.1 + +var7: + description: the seventh variable + multi: true + default: + - 0.0 +var8: + description: the eighth variable + type: float + multi: true + default: + - 0.0 diff --git a/tests/dictionaries/01_6float_multi/makedict/after.json b/tests/dictionaries/01_6float_multi/makedict/after.json new file mode 100644 index 000000000..221d638aa --- /dev/null +++ b/tests/dictionaries/01_6float_multi/makedict/after.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + 0.0 + ] + } +} diff --git a/tests/dictionaries/01_6float_multi/makedict/base.json b/tests/dictionaries/01_6float_multi/makedict/base.json new file mode 100644 index 000000000..534cb8e99 --- /dev/null +++ b/tests/dictionaries/01_6float_multi/makedict/base.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_6float_multi/makedict/before.json b/tests/dictionaries/01_6float_multi/makedict/before.json new file mode 100644 index 000000000..221d638aa --- /dev/null +++ b/tests/dictionaries/01_6float_multi/makedict/before.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + 10.1 + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + 0.0 + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + 0.0 + ] + } +} diff --git a/tests/dictionaries/01family_description/makedict/mandatory.json b/tests/dictionaries/01_6float_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01family_description/makedict/mandatory.json rename to tests/dictionaries/01_6float_multi/makedict/mandatory.json diff --git a/tests/dictionaries/01_6float_multi/tiramisu/base.py b/tests/dictionaries/01_6float_multi/tiramisu/base.py new file mode 100644 index 000000000..cefdaa497 --- /dev/null +++ b/tests/dictionaries/01_6float_multi/tiramisu/base.py @@ -0,0 +1,17 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = FloatOption(name="var1", doc="the first variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_3 = FloatOption(name="var2", doc="the second variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = FloatOption(name="var3", doc="the third variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = FloatOption(name="var4", doc="the forth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = FloatOption(name="var5", doc="the fifth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = FloatOption(name="var6", doc="the sixth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = FloatOption(name="var7", doc="the seventh variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = FloatOption(name="var8", doc="the eighth variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01_6float_multi/tiramisu/multi.py b/tests/dictionaries/01_6float_multi/tiramisu/multi.py new file mode 100644 index 000000000..e2cd20b57 --- /dev/null +++ b/tests/dictionaries/01_6float_multi/tiramisu/multi.py @@ -0,0 +1,28 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = FloatOption(name="var1", doc="the first variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = FloatOption(name="var2", doc="the second variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = FloatOption(name="var3", doc="the third variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = FloatOption(name="var4", doc="the forth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = FloatOption(name="var5", doc="the fifth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = FloatOption(name="var6", doc="the sixth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = FloatOption(name="var7", doc="the seventh variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = FloatOption(name="var8", doc="the eighth variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_13 = FloatOption(name="var1", doc="the first variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_14 = FloatOption(name="var2", doc="the second variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_15 = FloatOption(name="var3", doc="the third variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_16 = FloatOption(name="var4", doc="the forth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_17 = FloatOption(name="var5", doc="the fifth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_18 = FloatOption(name="var6", doc="the sixth variable", multi=True, default=[10.1], default_multi=10.1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_19 = FloatOption(name="var7", doc="the seventh variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_20 = FloatOption(name="var8", doc="the eighth variable", multi=True, default=[0.0], default_multi=0.0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[option_13, option_14, option_15, option_16, option_17, option_18, option_19, option_20], properties=frozenset({"standard"})) +optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/01test/__init__.py b/tests/dictionaries/01_6number_multi/__init__.py similarity index 100% rename from tests/dictionaries/01test/__init__.py rename to tests/dictionaries/01_6number_multi/__init__.py diff --git a/tests/dictionaries/01_6number_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_6number_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..daa918b0c --- /dev/null +++ b/tests/dictionaries/01_6number_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,36 @@ +--- +version: '1.1' +var1: # the first variable + - 0 +var2: + description: the second variable + default: + - 0 +var3: + description: the third variable + type: number + default: + - 0 +var4: # the forth variable + - 10 +var5: + description: the fifth variable + default: + - 10 +var6: + description: the sixth variable + type: number + default: + - 10 + +var7: + description: the seventh variable + multi: true + default: + - 0 +var8: + description: the eighth variable + type: number + multi: true + default: + - 0 diff --git a/tests/dictionaries/01_6number_multi/makedict/after.json b/tests/dictionaries/01_6number_multi/makedict/after.json new file mode 100644 index 000000000..359100c38 --- /dev/null +++ b/tests/dictionaries/01_6number_multi/makedict/after.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + 0 + ] + } +} diff --git a/tests/dictionaries/01_6number_multi/makedict/base.json b/tests/dictionaries/01_6number_multi/makedict/base.json new file mode 100644 index 000000000..dc357dcbc --- /dev/null +++ b/tests/dictionaries/01_6number_multi/makedict/base.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_6number_multi/makedict/before.json b/tests/dictionaries/01_6number_multi/makedict/before.json new file mode 100644 index 000000000..359100c38 --- /dev/null +++ b/tests/dictionaries/01_6number_multi/makedict/before.json @@ -0,0 +1,50 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var2": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var3": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var4": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + 10 + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + 0 + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + 0 + ] + } +} diff --git a/tests/dictionaries/01test/makedict/mandatory.json b/tests/dictionaries/01_6number_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test/makedict/mandatory.json rename to tests/dictionaries/01_6number_multi/makedict/mandatory.json diff --git a/tests/dictionaries/01_6number_multi/tiramisu/base.py b/tests/dictionaries/01_6number_multi/tiramisu/base.py new file mode 100644 index 000000000..7c8d45761 --- /dev/null +++ b/tests/dictionaries/01_6number_multi/tiramisu/base.py @@ -0,0 +1,17 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = IntOption(name="var1", doc="the first variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_3 = IntOption(name="var2", doc="the second variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = IntOption(name="var3", doc="the third variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = IntOption(name="var4", doc="the forth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = IntOption(name="var5", doc="the fifth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = IntOption(name="var6", doc="the sixth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = IntOption(name="var7", doc="the seventh variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = IntOption(name="var8", doc="the eighth variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01_6number_multi/tiramisu/multi.py b/tests/dictionaries/01_6number_multi/tiramisu/multi.py new file mode 100644 index 000000000..bc9f0a94a --- /dev/null +++ b/tests/dictionaries/01_6number_multi/tiramisu/multi.py @@ -0,0 +1,28 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = IntOption(name="var1", doc="the first variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = IntOption(name="var2", doc="the second variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = IntOption(name="var3", doc="the third variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = IntOption(name="var4", doc="the forth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = IntOption(name="var5", doc="the fifth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = IntOption(name="var6", doc="the sixth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = IntOption(name="var7", doc="the seventh variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = IntOption(name="var8", doc="the eighth variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_13 = IntOption(name="var1", doc="the first variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_14 = IntOption(name="var2", doc="the second variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_15 = IntOption(name="var3", doc="the third variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_16 = IntOption(name="var4", doc="the forth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_17 = IntOption(name="var5", doc="the fifth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_18 = IntOption(name="var6", doc="the sixth variable", multi=True, default=[10], default_multi=10, properties=frozenset({"mandatory", "notempty", "standard"})) +option_19 = IntOption(name="var7", doc="the seventh variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +option_20 = IntOption(name="var8", doc="the eighth variable", multi=True, default=[0], default_multi=0, properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[option_13, option_14, option_15, option_16, option_17, option_18, option_19, option_20], properties=frozenset({"standard"})) +optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/01test_boolean/__init__.py b/tests/dictionaries/01_6string_multi/__init__.py similarity index 100% rename from tests/dictionaries/01test_boolean/__init__.py rename to tests/dictionaries/01_6string_multi/__init__.py diff --git a/tests/dictionaries/01_6string_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_6string_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..38b5075cb --- /dev/null +++ b/tests/dictionaries/01_6string_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,32 @@ +--- +version: '1.1' +var1: [] # the first variable +var2: + description: the second variable + default: [] +var3: + description: the third variable + type: string +var4: # the forth variable + - value +var5: + description: the fifth variable + default: + - value +var6: + description: the sixth variable + type: string + default: + - value + +var7: + description: the seventh variable + multi: true + default: + - value +var8: + description: the eighth variable + type: string + multi: true + default: + - value diff --git a/tests/dictionaries/01_6string_multi/makedict/after.json b/tests/dictionaries/01_6string_multi/makedict/after.json new file mode 100644 index 000000000..ba31a3958 --- /dev/null +++ b/tests/dictionaries/01_6string_multi/makedict/after.json @@ -0,0 +1,44 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [] + }, + "rougail.var2": { + "owner": "default", + "value": [] + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + "value" + ] + } +} diff --git a/tests/dictionaries/01_6string_multi/makedict/base.json b/tests/dictionaries/01_6string_multi/makedict/base.json new file mode 100644 index 000000000..39897a9ce --- /dev/null +++ b/tests/dictionaries/01_6string_multi/makedict/base.json @@ -0,0 +1,20 @@ +{ + "rougail.var1": [], + "rougail.var2": [], + "rougail.var3": null, + "rougail.var4": [ + "value" + ], + "rougail.var5": [ + "value" + ], + "rougail.var6": [ + "value" + ], + "rougail.var7": [ + "value" + ], + "rougail.var8": [ + "value" + ] +} diff --git a/tests/dictionaries/01_6string_multi/makedict/before.json b/tests/dictionaries/01_6string_multi/makedict/before.json new file mode 100644 index 000000000..ba31a3958 --- /dev/null +++ b/tests/dictionaries/01_6string_multi/makedict/before.json @@ -0,0 +1,44 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [] + }, + "rougail.var2": { + "owner": "default", + "value": [] + }, + "rougail.var3": { + "owner": "default", + "value": null + }, + "rougail.var4": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var5": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var6": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var7": { + "owner": "default", + "value": [ + "value" + ] + }, + "rougail.var8": { + "owner": "default", + "value": [ + "value" + ] + } +} diff --git a/tests/dictionaries/01_6string_multi/makedict/mandatory.json b/tests/dictionaries/01_6string_multi/makedict/mandatory.json new file mode 100644 index 000000000..bb8f7d275 --- /dev/null +++ b/tests/dictionaries/01_6string_multi/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2", "rougail.var3"] \ No newline at end of file diff --git a/tests/dictionaries/01_6string_multi/tiramisu/base.py b/tests/dictionaries/01_6string_multi/tiramisu/base.py new file mode 100644 index 000000000..469f4680a --- /dev/null +++ b/tests/dictionaries/01_6string_multi/tiramisu/base.py @@ -0,0 +1,17 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="the first variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_3 = StrOption(name="var2", doc="the second variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="var4", doc="the forth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="var5", doc="the fifth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = StrOption(name="var6", doc="the sixth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = StrOption(name="var7", doc="the seventh variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = StrOption(name="var8", doc="the eighth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4, option_5, option_6, option_7, option_8, option_9], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01_6string_multi/tiramisu/multi.py b/tests/dictionaries/01_6string_multi/tiramisu/multi.py new file mode 100644 index 000000000..6d95ee00d --- /dev/null +++ b/tests/dictionaries/01_6string_multi/tiramisu/multi.py @@ -0,0 +1,28 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="the first variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="var2", doc="the second variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="var4", doc="the forth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = StrOption(name="var5", doc="the fifth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_8 = StrOption(name="var6", doc="the sixth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_9 = StrOption(name="var7", doc="the seventh variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var8", doc="the eighth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5, option_6, option_7, option_8, option_9, option_10], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_13 = StrOption(name="var1", doc="the first variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_14 = StrOption(name="var2", doc="the second variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_15 = StrOption(name="var3", doc="the third variable", properties=frozenset({"basic", "mandatory"})) +option_16 = StrOption(name="var4", doc="the forth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_17 = StrOption(name="var5", doc="the fifth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_18 = StrOption(name="var6", doc="the sixth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_19 = StrOption(name="var7", doc="the seventh variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +option_20 = StrOption(name="var8", doc="the eighth variable", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[option_13, option_14, option_15, option_16, option_17, option_18, option_19, option_20], properties=frozenset({"basic"})) +optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/01test_multi/__init__.py b/tests/dictionaries/01_7value_multi_doublequote/__init__.py similarity index 100% rename from tests/dictionaries/01test_multi/__init__.py rename to tests/dictionaries/01_7value_multi_doublequote/__init__.py diff --git a/tests/dictionaries/01_7value_multi_doublequote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_7value_multi_doublequote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6674df88a --- /dev/null +++ b/tests/dictionaries/01_7value_multi_doublequote/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +variable: + description: a variable + default: + - quote" diff --git a/tests/dictionaries/01base_value_multi_doublequote/makedict/after.json b/tests/dictionaries/01_7value_multi_doublequote/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/makedict/after.json rename to tests/dictionaries/01_7value_multi_doublequote/makedict/after.json diff --git a/tests/dictionaries/01base_value_multi_doublequote/makedict/base.json b/tests/dictionaries/01_7value_multi_doublequote/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/makedict/base.json rename to tests/dictionaries/01_7value_multi_doublequote/makedict/base.json diff --git a/tests/dictionaries/01base_value_multi_doublequote/makedict/before.json b/tests/dictionaries/01_7value_multi_doublequote/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/makedict/before.json rename to tests/dictionaries/01_7value_multi_doublequote/makedict/before.json diff --git a/tests/dictionaries/01test_boolean/makedict/mandatory.json b/tests/dictionaries/01_7value_multi_doublequote/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_boolean/makedict/mandatory.json rename to tests/dictionaries/01_7value_multi_doublequote/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_multi_doublequote/tiramisu/base.py b/tests/dictionaries/01_7value_multi_doublequote/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/tiramisu/base.py rename to tests/dictionaries/01_7value_multi_doublequote/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_multi_doublequote/tiramisu/multi.py b/tests/dictionaries/01_7value_multi_doublequote/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote/tiramisu/multi.py rename to tests/dictionaries/01_7value_multi_doublequote/tiramisu/multi.py diff --git a/tests/dictionaries/01test_multi_none/__init__.py b/tests/dictionaries/01_7value_multi_doublequote2/__init__.py similarity index 100% rename from tests/dictionaries/01test_multi_none/__init__.py rename to tests/dictionaries/01_7value_multi_doublequote2/__init__.py diff --git a/tests/dictionaries/01_7value_multi_doublequote2/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_7value_multi_doublequote2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..939316b89 --- /dev/null +++ b/tests/dictionaries/01_7value_multi_doublequote2/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +variable: + description: a variable + default: + - quote'" diff --git a/tests/dictionaries/01base_value_multi_doublequote2/makedict/after.json b/tests/dictionaries/01_7value_multi_doublequote2/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/makedict/after.json rename to tests/dictionaries/01_7value_multi_doublequote2/makedict/after.json diff --git a/tests/dictionaries/01base_value_multi_doublequote2/makedict/base.json b/tests/dictionaries/01_7value_multi_doublequote2/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/makedict/base.json rename to tests/dictionaries/01_7value_multi_doublequote2/makedict/base.json diff --git a/tests/dictionaries/01base_value_multi_doublequote2/makedict/before.json b/tests/dictionaries/01_7value_multi_doublequote2/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/makedict/before.json rename to tests/dictionaries/01_7value_multi_doublequote2/makedict/before.json diff --git a/tests/dictionaries/01test_multi/makedict/mandatory.json b/tests/dictionaries/01_7value_multi_doublequote2/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_multi/makedict/mandatory.json rename to tests/dictionaries/01_7value_multi_doublequote2/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_multi_doublequote2/tiramisu/base.py b/tests/dictionaries/01_7value_multi_doublequote2/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/tiramisu/base.py rename to tests/dictionaries/01_7value_multi_doublequote2/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_multi_doublequote2/tiramisu/multi.py b/tests/dictionaries/01_7value_multi_doublequote2/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_multi_doublequote2/tiramisu/multi.py rename to tests/dictionaries/01_7value_multi_doublequote2/tiramisu/multi.py diff --git a/tests/dictionaries/01test_redefine/__init__.py b/tests/dictionaries/01_7value_multi_quote/__init__.py similarity index 100% rename from tests/dictionaries/01test_redefine/__init__.py rename to tests/dictionaries/01_7value_multi_quote/__init__.py diff --git a/tests/dictionaries/01_7value_multi_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_7value_multi_quote/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..22cfe82e8 --- /dev/null +++ b/tests/dictionaries/01_7value_multi_quote/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +variable: + description: a variable + default: + - quote' diff --git a/tests/dictionaries/01base_value_multi_quote/makedict/after.json b/tests/dictionaries/01_7value_multi_quote/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/makedict/after.json rename to tests/dictionaries/01_7value_multi_quote/makedict/after.json diff --git a/tests/dictionaries/01base_value_multi_quote/makedict/base.json b/tests/dictionaries/01_7value_multi_quote/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/makedict/base.json rename to tests/dictionaries/01_7value_multi_quote/makedict/base.json diff --git a/tests/dictionaries/01base_value_multi_quote/makedict/before.json b/tests/dictionaries/01_7value_multi_quote/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/makedict/before.json rename to tests/dictionaries/01_7value_multi_quote/makedict/before.json diff --git a/tests/dictionaries/01test_multi_none/makedict/mandatory.json b/tests/dictionaries/01_7value_multi_quote/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_multi_none/makedict/mandatory.json rename to tests/dictionaries/01_7value_multi_quote/makedict/mandatory.json diff --git a/tests/dictionaries/01base_value_multi_quote/tiramisu/base.py b/tests/dictionaries/01_7value_multi_quote/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/tiramisu/base.py rename to tests/dictionaries/01_7value_multi_quote/tiramisu/base.py diff --git a/tests/dictionaries/01base_value_multi_quote/tiramisu/multi.py b/tests/dictionaries/01_7value_multi_quote/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_value_multi_quote/tiramisu/multi.py rename to tests/dictionaries/01_7value_multi_quote/tiramisu/multi.py diff --git a/tests/dictionaries/01test_redefine_base/__init__.py b/tests/dictionaries/01_8calculation_information_multi/__init__.py similarity index 100% rename from tests/dictionaries/01test_redefine_base/__init__.py rename to tests/dictionaries/01_8calculation_information_multi/__init__.py diff --git a/tests/dictionaries/01_8calculation_information_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_8calculation_information_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..3e2081ed3 --- /dev/null +++ b/tests/dictionaries/01_8calculation_information_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +variable: + description: a variable + multi: true + default: + type: jinja + jinja: | + {{test_information }} + params: + test_information: + type: information + information: test_information + description: get information test_information diff --git a/tests/dictionaries/13fill_information_multi/makedict/after.json b/tests/dictionaries/01_8calculation_information_multi/makedict/after.json similarity index 100% rename from tests/dictionaries/13fill_information_multi/makedict/after.json rename to tests/dictionaries/01_8calculation_information_multi/makedict/after.json diff --git a/tests/dictionaries/13fill_information_multi/makedict/base.json b/tests/dictionaries/01_8calculation_information_multi/makedict/base.json similarity index 100% rename from tests/dictionaries/13fill_information_multi/makedict/base.json rename to tests/dictionaries/01_8calculation_information_multi/makedict/base.json diff --git a/tests/dictionaries/13fill_information_multi/makedict/before.json b/tests/dictionaries/01_8calculation_information_multi/makedict/before.json similarity index 100% rename from tests/dictionaries/13fill_information_multi/makedict/before.json rename to tests/dictionaries/01_8calculation_information_multi/makedict/before.json diff --git a/tests/dictionaries/01test_redefine/makedict/mandatory.json b/tests/dictionaries/01_8calculation_information_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_redefine/makedict/mandatory.json rename to tests/dictionaries/01_8calculation_information_multi/makedict/mandatory.json diff --git a/tests/dictionaries/13fill_information_multi/tiramisu/base.py b/tests/dictionaries/01_8calculation_information_multi/tiramisu/base.py similarity index 100% rename from tests/dictionaries/13fill_information_multi/tiramisu/base.py rename to tests/dictionaries/01_8calculation_information_multi/tiramisu/base.py diff --git a/tests/dictionaries/13fill_information_multi/tiramisu/multi.py b/tests/dictionaries/01_8calculation_information_multi/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/13fill_information_multi/tiramisu/multi.py rename to tests/dictionaries/01_8calculation_information_multi/tiramisu/multi.py diff --git a/tests/dictionaries/01test_redefine_remove/__init__.py b/tests/dictionaries/01_9choice_variable_multi/__init__.py similarity index 100% rename from tests/dictionaries/01test_redefine_remove/__init__.py rename to tests/dictionaries/01_9choice_variable_multi/__init__.py diff --git a/tests/dictionaries/01_9choice_variable_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01_9choice_variable_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..94f2012f2 --- /dev/null +++ b/tests/dictionaries/01_9choice_variable_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +variable1: # a first variable + - a + - b + - c +variable2: + description: a second variable + choices: + type: variable + variable: _.variable1 diff --git a/tests/dictionaries/11valid_enum_variable/makedict/after.json b/tests/dictionaries/01_9choice_variable_multi/makedict/after.json similarity index 100% rename from tests/dictionaries/11valid_enum_variable/makedict/after.json rename to tests/dictionaries/01_9choice_variable_multi/makedict/after.json diff --git a/tests/dictionaries/11valid_enum_variable/makedict/base.json b/tests/dictionaries/01_9choice_variable_multi/makedict/base.json similarity index 100% rename from tests/dictionaries/11valid_enum_variable/makedict/base.json rename to tests/dictionaries/01_9choice_variable_multi/makedict/base.json diff --git a/tests/dictionaries/11valid_enum_variable/makedict/before.json b/tests/dictionaries/01_9choice_variable_multi/makedict/before.json similarity index 100% rename from tests/dictionaries/11valid_enum_variable/makedict/before.json rename to tests/dictionaries/01_9choice_variable_multi/makedict/before.json diff --git a/tests/dictionaries/01test_redefine_base/makedict/mandatory.json b/tests/dictionaries/01_9choice_variable_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_redefine_base/makedict/mandatory.json rename to tests/dictionaries/01_9choice_variable_multi/makedict/mandatory.json diff --git a/tests/dictionaries/11valid_enum_variable/tiramisu/base.py b/tests/dictionaries/01_9choice_variable_multi/tiramisu/base.py similarity index 100% rename from tests/dictionaries/11valid_enum_variable/tiramisu/base.py rename to tests/dictionaries/01_9choice_variable_multi/tiramisu/base.py diff --git a/tests/dictionaries/11valid_enum_variable/tiramisu/multi.py b/tests/dictionaries/01_9choice_variable_multi/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/11valid_enum_variable/tiramisu/multi.py rename to tests/dictionaries/01_9choice_variable_multi/tiramisu/multi.py diff --git a/tests/dictionaries/01base_auto_bool/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_bool/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9233af433..000000000 --- a/tests/dictionaries/01base_auto_bool/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -version: '1.1' -auto: - default: true diff --git a/tests/dictionaries/01base_auto_bool/makedict/after.json b/tests/dictionaries/01base_auto_bool/makedict/after.json deleted file mode 100644 index 21399b3e3..000000000 --- a/tests/dictionaries/01base_auto_bool/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01base_auto_bool/makedict/base.json b/tests/dictionaries/01base_auto_bool/makedict/base.json deleted file mode 100644 index a8a77f69e..000000000 --- a/tests/dictionaries/01base_auto_bool/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": true -} diff --git a/tests/dictionaries/01base_auto_bool/makedict/before.json b/tests/dictionaries/01base_auto_bool/makedict/before.json deleted file mode 100644 index 21399b3e3..000000000 --- a/tests/dictionaries/01base_auto_bool/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01base_auto_bool/makedict/mandatory.json b/tests/dictionaries/01base_auto_bool/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_bool/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_bool/tiramisu/base.py b/tests/dictionaries/01base_auto_bool/tiramisu/base.py deleted file mode 100644 index 41fa2ec4a..000000000 --- a/tests/dictionaries/01base_auto_bool/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="auto", doc="auto", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_bool/tiramisu/multi.py b/tests/dictionaries/01base_auto_bool/tiramisu/multi.py deleted file mode 100644 index 0aebdc44d..000000000 --- a/tests/dictionaries/01base_auto_bool/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="auto", doc="auto", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = BoolOption(name="auto", doc="auto", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_bool_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_bool_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2fcf8a880..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -version: '1.1' -auto: - default: - - true diff --git a/tests/dictionaries/01base_auto_bool_multi/makedict/after.json b/tests/dictionaries/01base_auto_bool_multi/makedict/after.json deleted file mode 100644 index 7f0d73b06..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [true] - } -} diff --git a/tests/dictionaries/01base_auto_bool_multi/makedict/base.json b/tests/dictionaries/01base_auto_bool_multi/makedict/base.json deleted file mode 100644 index ac9330294..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": [true] -} diff --git a/tests/dictionaries/01base_auto_bool_multi/makedict/before.json b/tests/dictionaries/01base_auto_bool_multi/makedict/before.json deleted file mode 100644 index 7f0d73b06..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [true] - } -} diff --git a/tests/dictionaries/01base_auto_bool_multi/makedict/mandatory.json b/tests/dictionaries/01base_auto_bool_multi/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_bool_multi/tiramisu/base.py b/tests/dictionaries/01base_auto_bool_multi/tiramisu/base.py deleted file mode 100644 index 9cd648f9b..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="auto", doc="auto", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_bool_multi/tiramisu/multi.py b/tests/dictionaries/01base_auto_bool_multi/tiramisu/multi.py deleted file mode 100644 index fd4730c57..000000000 --- a/tests/dictionaries/01base_auto_bool_multi/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="auto", doc="auto", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = BoolOption(name="auto", doc="auto", multi=True, default=[True], default_multi=True, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_float/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_float/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0ffb4eb02..000000000 --- a/tests/dictionaries/01base_auto_float/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -version: '1.1' -auto: - default: 1.0 diff --git a/tests/dictionaries/01base_auto_float/makedict/after.json b/tests/dictionaries/01base_auto_float/makedict/after.json deleted file mode 100644 index accf30153..000000000 --- a/tests/dictionaries/01base_auto_float/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": 1.0 - } -} diff --git a/tests/dictionaries/01base_auto_float/makedict/base.json b/tests/dictionaries/01base_auto_float/makedict/base.json deleted file mode 100644 index da46848f6..000000000 --- a/tests/dictionaries/01base_auto_float/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": 1.0 -} diff --git a/tests/dictionaries/01base_auto_float/makedict/before.json b/tests/dictionaries/01base_auto_float/makedict/before.json deleted file mode 100644 index accf30153..000000000 --- a/tests/dictionaries/01base_auto_float/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": 1.0 - } -} diff --git a/tests/dictionaries/01base_auto_float/makedict/mandatory.json b/tests/dictionaries/01base_auto_float/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_float/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_float/tiramisu/base.py b/tests/dictionaries/01base_auto_float/tiramisu/base.py deleted file mode 100644 index ed69928a4..000000000 --- a/tests/dictionaries/01base_auto_float/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = FloatOption(name="auto", doc="auto", default=1.0, properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_float/tiramisu/multi.py b/tests/dictionaries/01base_auto_float/tiramisu/multi.py deleted file mode 100644 index cf0e00983..000000000 --- a/tests/dictionaries/01base_auto_float/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = FloatOption(name="auto", doc="auto", default=1.0, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = FloatOption(name="auto", doc="auto", default=1.0, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_float_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_float_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 63148f08d..000000000 --- a/tests/dictionaries/01base_auto_float_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -version: '1.1' -auto: - default: - - 1.0 diff --git a/tests/dictionaries/01base_auto_float_multi/makedict/after.json b/tests/dictionaries/01base_auto_float_multi/makedict/after.json deleted file mode 100644 index 019ece384..000000000 --- a/tests/dictionaries/01base_auto_float_multi/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [1.0] - } -} diff --git a/tests/dictionaries/01base_auto_float_multi/makedict/base.json b/tests/dictionaries/01base_auto_float_multi/makedict/base.json deleted file mode 100644 index b129ea0e9..000000000 --- a/tests/dictionaries/01base_auto_float_multi/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": [1.0] -} diff --git a/tests/dictionaries/01base_auto_float_multi/makedict/before.json b/tests/dictionaries/01base_auto_float_multi/makedict/before.json deleted file mode 100644 index 019ece384..000000000 --- a/tests/dictionaries/01base_auto_float_multi/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [1.0] - } -} diff --git a/tests/dictionaries/01base_auto_float_multi/makedict/mandatory.json b/tests/dictionaries/01base_auto_float_multi/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_float_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_float_multi/tiramisu/base.py b/tests/dictionaries/01base_auto_float_multi/tiramisu/base.py deleted file mode 100644 index 42ce684ea..000000000 --- a/tests/dictionaries/01base_auto_float_multi/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = FloatOption(name="auto", doc="auto", multi=True, default=[1.0], default_multi=1.0, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_float_multi/tiramisu/multi.py b/tests/dictionaries/01base_auto_float_multi/tiramisu/multi.py deleted file mode 100644 index 16ada2d49..000000000 --- a/tests/dictionaries/01base_auto_float_multi/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = FloatOption(name="auto", doc="auto", multi=True, default=[1.0], default_multi=1.0, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = FloatOption(name="auto", doc="auto", multi=True, default=[1.0], default_multi=1.0, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_number/dictionaries/rougail/00-base.yml deleted file mode 100644 index eaea92323..000000000 --- a/tests/dictionaries/01base_auto_number/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -version: '1.1' -auto: - default: 1 diff --git a/tests/dictionaries/01base_auto_number/makedict/after.json b/tests/dictionaries/01base_auto_number/makedict/after.json deleted file mode 100644 index 61614a5bd..000000000 --- a/tests/dictionaries/01base_auto_number/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": 1 - } -} diff --git a/tests/dictionaries/01base_auto_number/makedict/base.json b/tests/dictionaries/01base_auto_number/makedict/base.json deleted file mode 100644 index 4dee012e5..000000000 --- a/tests/dictionaries/01base_auto_number/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": 1 -} diff --git a/tests/dictionaries/01base_auto_number/makedict/before.json b/tests/dictionaries/01base_auto_number/makedict/before.json deleted file mode 100644 index 61614a5bd..000000000 --- a/tests/dictionaries/01base_auto_number/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": 1 - } -} diff --git a/tests/dictionaries/01base_auto_number/makedict/mandatory.json b/tests/dictionaries/01base_auto_number/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_number/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_number/tiramisu/base.py b/tests/dictionaries/01base_auto_number/tiramisu/base.py deleted file mode 100644 index ec5ba74be..000000000 --- a/tests/dictionaries/01base_auto_number/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = IntOption(name="auto", doc="auto", default=1, properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_number/tiramisu/multi.py b/tests/dictionaries/01base_auto_number/tiramisu/multi.py deleted file mode 100644 index ff6610146..000000000 --- a/tests/dictionaries/01base_auto_number/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = IntOption(name="auto", doc="auto", default=1, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = IntOption(name="auto", doc="auto", default=1, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_auto_number_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_auto_number_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9f1dedfa8..000000000 --- a/tests/dictionaries/01base_auto_number_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -version: '1.1' -auto: - default: - - 1 diff --git a/tests/dictionaries/01base_auto_number_multi/makedict/after.json b/tests/dictionaries/01base_auto_number_multi/makedict/after.json deleted file mode 100644 index 8ef14c6a0..000000000 --- a/tests/dictionaries/01base_auto_number_multi/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [1] - } -} diff --git a/tests/dictionaries/01base_auto_number_multi/makedict/base.json b/tests/dictionaries/01base_auto_number_multi/makedict/base.json deleted file mode 100644 index c710bc45c..000000000 --- a/tests/dictionaries/01base_auto_number_multi/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.auto": [1] -} diff --git a/tests/dictionaries/01base_auto_number_multi/makedict/before.json b/tests/dictionaries/01base_auto_number_multi/makedict/before.json deleted file mode 100644 index 8ef14c6a0..000000000 --- a/tests/dictionaries/01base_auto_number_multi/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.auto": { - "owner": "default", - "value": [1] - } -} diff --git a/tests/dictionaries/01base_auto_number_multi/makedict/mandatory.json b/tests/dictionaries/01base_auto_number_multi/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/01base_auto_number_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/01base_auto_number_multi/tiramisu/base.py b/tests/dictionaries/01base_auto_number_multi/tiramisu/base.py deleted file mode 100644 index 999c8e4fa..000000000 --- a/tests/dictionaries/01base_auto_number_multi/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = IntOption(name="auto", doc="auto", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_auto_number_multi/tiramisu/multi.py b/tests/dictionaries/01base_auto_number_multi/tiramisu/multi.py deleted file mode 100644 index f9a365b20..000000000 --- a/tests/dictionaries/01base_auto_number_multi/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = IntOption(name="auto", doc="auto", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = IntOption(name="auto", doc="auto", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_bool_shorthand/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_bool_shorthand/dictionaries/rougail/00-base.yml deleted file mode 100644 index 70dd511ce..000000000 --- a/tests/dictionaries/01base_bool_shorthand/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.1' -bool: true -bool_multi: - - false -family: - bool: true - bool_multi: - - false diff --git a/tests/dictionaries/01base_bool_shorthand/makedict/after.json b/tests/dictionaries/01base_bool_shorthand/makedict/after.json deleted file mode 100644 index b2c8cf378..000000000 --- a/tests/dictionaries/01base_bool_shorthand/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.bool_multi": { - "owner": "default", - "value": [ - false - ] - }, - "rougail.family.bool": { - "owner": "default", - "value": true - }, - "rougail.family.bool_multi": { - "owner": "default", - "value": [ - false - ] - } -} diff --git a/tests/dictionaries/01base_bool_shorthand/makedict/base.json b/tests/dictionaries/01base_bool_shorthand/makedict/base.json deleted file mode 100644 index 0a56e2bb1..000000000 --- a/tests/dictionaries/01base_bool_shorthand/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.bool": true, - "rougail.bool_multi": [ - false - ], - "rougail.family.bool": true, - "rougail.family.bool_multi": [ - false - ] -} diff --git a/tests/dictionaries/01base_bool_shorthand/makedict/before.json b/tests/dictionaries/01base_bool_shorthand/makedict/before.json deleted file mode 100644 index b2c8cf378..000000000 --- a/tests/dictionaries/01base_bool_shorthand/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.bool_multi": { - "owner": "default", - "value": [ - false - ] - }, - "rougail.family.bool": { - "owner": "default", - "value": true - }, - "rougail.family.bool_multi": { - "owner": "default", - "value": [ - false - ] - } -} diff --git a/tests/dictionaries/01base_bool_shorthand/tiramisu/base.py b/tests/dictionaries/01base_bool_shorthand/tiramisu/base.py deleted file mode 100644 index e540ec7dc..000000000 --- a/tests/dictionaries/01base_bool_shorthand/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_3 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_6 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = OptionDescription(name="family", doc="family", children=[option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_bool_shorthand/tiramisu/multi.py b/tests/dictionaries/01base_bool_shorthand/tiramisu/multi.py deleted file mode 100644 index 34c733519..000000000 --- a/tests/dictionaries/01base_bool_shorthand/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_7 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="family", doc="family", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_11 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_14 = BoolOption(name="bool_multi", doc="bool_multi", multi=True, default=[False], default_multi=False, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="family", doc="family", children=[option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/01base_custom/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_custom/dictionaries/rougail/00-base.yml deleted file mode 100644 index 27ca10846..000000000 --- a/tests/dictionaries/01base_custom/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -version: '1.0' -custom: - type: custom diff --git a/tests/dictionaries/01base_custom/makedict/after.json b/tests/dictionaries/01base_custom/makedict/after.json deleted file mode 100644 index 50595bbbb..000000000 --- a/tests/dictionaries/01base_custom/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.custom": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01base_custom/makedict/base.json b/tests/dictionaries/01base_custom/makedict/base.json deleted file mode 100644 index 98b2a3906..000000000 --- a/tests/dictionaries/01base_custom/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.custom": null -} diff --git a/tests/dictionaries/01base_custom/makedict/before.json b/tests/dictionaries/01base_custom/makedict/before.json deleted file mode 100644 index 50595bbbb..000000000 --- a/tests/dictionaries/01base_custom/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.custom": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01base_custom/makedict/mandatory.json b/tests/dictionaries/01base_custom/makedict/mandatory.json deleted file mode 100644 index ce7fcf3a6..000000000 --- a/tests/dictionaries/01base_custom/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.custom"] \ No newline at end of file diff --git a/tests/dictionaries/01base_custom/tiramisu/base.py b/tests/dictionaries/01base_custom/tiramisu/base.py deleted file mode 100644 index 4bf7b6eda..000000000 --- a/tests/dictionaries/01base_custom/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = CustomOption(name="custom", doc="custom", properties=frozenset({"basic", "mandatory"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_custom/tiramisu/multi.py b/tests/dictionaries/01base_custom/tiramisu/multi.py deleted file mode 100644 index 1ea52919f..000000000 --- a/tests/dictionaries/01base_custom/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = CustomOption(name="custom", doc="custom", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_6 = CustomOption(name="custom", doc="custom", properties=frozenset({"basic", "mandatory"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01base_domainname/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_domainname/dictionaries/rougail/00-base.yml deleted file mode 100644 index 72519737a..000000000 --- a/tests/dictionaries/01base_domainname/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -version: '1.0' -general: - domain: - type: domainname - description: Description - default: my.domain.name diff --git a/tests/dictionaries/01base_domainname_params/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_domainname_params/dictionaries/rougail/00-base.yml deleted file mode 100644 index a0591c1de..000000000 --- a/tests/dictionaries/01base_domainname_params/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.0' -general: - domain: - type: domainname - description: Description - default: 192.168.1.1 - params: - allow_ip: true diff --git a/tests/dictionaries/01base_float/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_float/dictionaries/rougail/00-base.yml deleted file mode 100644 index ed2a0c191..000000000 --- a/tests/dictionaries/01base_float/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -version: '1.0' -general: - float: - type: float - description: Description - default: 0.527 - float_multi: - type: float - description: Description - multi: true - default: - - 0.527 diff --git a/tests/dictionaries/01base_float/makedict/after.json b/tests/dictionaries/01base_float/makedict/after.json deleted file mode 100644 index 005c64daf..000000000 --- a/tests/dictionaries/01base_float/makedict/after.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.general.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - } -} diff --git a/tests/dictionaries/01base_float/makedict/base.json b/tests/dictionaries/01base_float/makedict/base.json deleted file mode 100644 index 99e81271b..000000000 --- a/tests/dictionaries/01base_float/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.float": 0.527, - "rougail.general.float_multi": [ - 0.527 - ] -} diff --git a/tests/dictionaries/01base_float/makedict/before.json b/tests/dictionaries/01base_float/makedict/before.json deleted file mode 100644 index 005c64daf..000000000 --- a/tests/dictionaries/01base_float/makedict/before.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.general.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - } -} diff --git a/tests/dictionaries/01base_float/tiramisu/base.py b/tests/dictionaries/01base_float/tiramisu/base.py deleted file mode 100644 index 4f54c1ed8..000000000 --- a/tests/dictionaries/01base_float/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = FloatOption(name="float", doc="Description", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_4 = FloatOption(name="float_multi", doc="Description", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_float/tiramisu/multi.py b/tests/dictionaries/01base_float/tiramisu/multi.py deleted file mode 100644 index c75967c69..000000000 --- a/tests/dictionaries/01base_float/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = FloatOption(name="float", doc="Description", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_5 = FloatOption(name="float_multi", doc="Description", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = FloatOption(name="float", doc="Description", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_10 = FloatOption(name="float_multi", doc="Description", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/01base_float_shorthand/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_float_shorthand/dictionaries/rougail/00-base.yml deleted file mode 100644 index 51b4648e7..000000000 --- a/tests/dictionaries/01base_float_shorthand/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.1' -float: 0.527 -float_multi: - - 0.527 -family: - float: 0.527 - float_multi: - - 0.527 diff --git a/tests/dictionaries/01base_float_shorthand/makedict/after.json b/tests/dictionaries/01base_float_shorthand/makedict/after.json deleted file mode 100644 index 77f66ded9..000000000 --- a/tests/dictionaries/01base_float_shorthand/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - }, - "rougail.family.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.family.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - } -} diff --git a/tests/dictionaries/01base_float_shorthand/makedict/base.json b/tests/dictionaries/01base_float_shorthand/makedict/base.json deleted file mode 100644 index 245584378..000000000 --- a/tests/dictionaries/01base_float_shorthand/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.float": 0.527, - "rougail.float_multi": [ - 0.527 - ], - "rougail.family.float": 0.527, - "rougail.family.float_multi": [ - 0.527 - ] -} diff --git a/tests/dictionaries/01base_float_shorthand/makedict/before.json b/tests/dictionaries/01base_float_shorthand/makedict/before.json deleted file mode 100644 index 77f66ded9..000000000 --- a/tests/dictionaries/01base_float_shorthand/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - }, - "rougail.family.float": { - "owner": "default", - "value": 0.527 - }, - "rougail.family.float_multi": { - "owner": "default", - "value": [ - 0.527 - ] - } -} diff --git a/tests/dictionaries/01base_float_shorthand/tiramisu/base.py b/tests/dictionaries/01base_float_shorthand/tiramisu/base.py deleted file mode 100644 index a66d37df5..000000000 --- a/tests/dictionaries/01base_float_shorthand/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_3 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_6 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = OptionDescription(name="family", doc="family", children=[option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_float_shorthand/tiramisu/multi.py b/tests/dictionaries/01base_float_shorthand/tiramisu/multi.py deleted file mode 100644 index b794336a6..000000000 --- a/tests/dictionaries/01base_float_shorthand/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_4 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_7 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="family", doc="family", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_11 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = FloatOption(name="float", doc="float", default=0.527, properties=frozenset({"mandatory", "standard"})) -option_14 = FloatOption(name="float_multi", doc="float_multi", multi=True, default=[0.527], default_multi=0.527, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="family", doc="family", children=[option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/01base_help_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_help_quote/dictionaries/rougail/00-base.yml deleted file mode 100644 index 30efa25c9..000000000 --- a/tests/dictionaries/01base_help_quote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - help: message with ' - mandatory: false - mode_conteneur_actif1: - type: string - description: Redefine description - help: message with " - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/01base_help_quote/makedict/after.json b/tests/dictionaries/01base_help_quote/makedict/after.json deleted file mode 100644 index 7fe661fc7..000000000 --- a/tests/dictionaries/01base_help_quote/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01base_help_quote/makedict/base.json b/tests/dictionaries/01base_help_quote/makedict/base.json deleted file mode 100644 index 230e4fc1a..000000000 --- a/tests/dictionaries/01base_help_quote/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null, - "rougail.general.mode_conteneur_actif1": null -} diff --git a/tests/dictionaries/01base_help_quote/makedict/before.json b/tests/dictionaries/01base_help_quote/makedict/before.json deleted file mode 100644 index 7fe661fc7..000000000 --- a/tests/dictionaries/01base_help_quote/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01base_help_quote/tiramisu/base.py b/tests/dictionaries/01base_help_quote/tiramisu/base.py deleted file mode 100644 index 8a02da33a..000000000 --- a/tests/dictionaries/01base_help_quote/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': "message with '"}) -option_4 = StrOption(name="mode_conteneur_actif1", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': 'message with "'}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_help_quote/tiramisu/multi.py b/tests/dictionaries/01base_help_quote/tiramisu/multi.py deleted file mode 100644 index 28fce136f..000000000 --- a/tests/dictionaries/01base_help_quote/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': "message with '"}) -option_5 = StrOption(name="mode_conteneur_actif1", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': 'message with "'}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': "message with '"}) -option_10 = StrOption(name="mode_conteneur_actif1", doc="Redefine description", properties=frozenset({"standard"}), informations={'help': 'message with "'}) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/01base_int_shorthand/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_int_shorthand/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8e7af82e9..000000000 --- a/tests/dictionaries/01base_int_shorthand/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.1' -int: 1 -int_multi: - - 1 -family: - int: 1 - int_multi: - - 1 diff --git a/tests/dictionaries/01base_int_shorthand/makedict/after.json b/tests/dictionaries/01base_int_shorthand/makedict/after.json deleted file mode 100644 index 7e8b76f4f..000000000 --- a/tests/dictionaries/01base_int_shorthand/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.int": { - "owner": "default", - "value": 1 - }, - "rougail.int_multi": { - "owner": "default", - "value": [ - 1 - ] - }, - "rougail.family.int": { - "owner": "default", - "value": 1 - }, - "rougail.family.int_multi": { - "owner": "default", - "value": [ - 1 - ] - } -} diff --git a/tests/dictionaries/01base_int_shorthand/makedict/base.json b/tests/dictionaries/01base_int_shorthand/makedict/base.json deleted file mode 100644 index facee83d8..000000000 --- a/tests/dictionaries/01base_int_shorthand/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.int": 1, - "rougail.int_multi": [ - 1 - ], - "rougail.family.int": 1, - "rougail.family.int_multi": [ - 1 - ] -} diff --git a/tests/dictionaries/01base_int_shorthand/makedict/before.json b/tests/dictionaries/01base_int_shorthand/makedict/before.json deleted file mode 100644 index 7e8b76f4f..000000000 --- a/tests/dictionaries/01base_int_shorthand/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.int": { - "owner": "default", - "value": 1 - }, - "rougail.int_multi": { - "owner": "default", - "value": [ - 1 - ] - }, - "rougail.family.int": { - "owner": "default", - "value": 1 - }, - "rougail.family.int_multi": { - "owner": "default", - "value": [ - 1 - ] - } -} diff --git a/tests/dictionaries/01base_int_shorthand/tiramisu/base.py b/tests/dictionaries/01base_int_shorthand/tiramisu/base.py deleted file mode 100644 index ab5e8cebf..000000000 --- a/tests/dictionaries/01base_int_shorthand/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_3 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_6 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = OptionDescription(name="family", doc="family", children=[option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_int_shorthand/tiramisu/multi.py b/tests/dictionaries/01base_int_shorthand/tiramisu/multi.py deleted file mode 100644 index 47e69b43b..000000000 --- a/tests/dictionaries/01base_int_shorthand/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_4 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_7 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="family", doc="family", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_11 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = IntOption(name="int", doc="int", default=1, properties=frozenset({"mandatory", "standard"})) -option_14 = IntOption(name="int_multi", doc="int_multi", multi=True, default=[1], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="family", doc="family", children=[option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/01base_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 13a77c762..000000000 --- a/tests/dictionaries/01base_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - default: - - non -version: '1.0' diff --git a/tests/dictionaries/01base_multi/tiramisu/base.py b/tests/dictionaries/01base_multi/tiramisu/base.py deleted file mode 100644 index 4d358650d..000000000 --- a/tests/dictionaries/01base_multi/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_multi/tiramisu/multi.py b/tests/dictionaries/01base_multi/tiramisu/multi.py deleted file mode 100644 index 082cdc41d..000000000 --- a/tests/dictionaries/01base_multi/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_multi_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_multi_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9fc31df2d..000000000 --- a/tests/dictionaries/01base_multi_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -version: '1.1' -general: - mode_conteneur_actif: - default: - - non diff --git a/tests/dictionaries/01base_multi_auto/makedict/after.json b/tests/dictionaries/01base_multi_auto/makedict/after.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_auto/makedict/after.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_multi_auto/makedict/base.json b/tests/dictionaries/01base_multi_auto/makedict/base.json deleted file mode 100644 index feedadc62..000000000 --- a/tests/dictionaries/01base_multi_auto/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ] -} diff --git a/tests/dictionaries/01base_multi_auto/makedict/before.json b/tests/dictionaries/01base_multi_auto/makedict/before.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_auto/makedict/before.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_multi_auto/tiramisu/base.py b/tests/dictionaries/01base_multi_auto/tiramisu/base.py deleted file mode 100644 index 9f1dd2f0f..000000000 --- a/tests/dictionaries/01base_multi_auto/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_multi_auto/tiramisu/multi.py b/tests/dictionaries/01base_multi_auto/tiramisu/multi.py deleted file mode 100644 index e4b6ca14d..000000000 --- a/tests/dictionaries/01base_multi_auto/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_multi_notuniq/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_multi_notuniq/dictionaries/rougail/00-base.yml deleted file mode 100644 index c86588600..000000000 --- a/tests/dictionaries/01base_multi_notuniq/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - unique: false - default: - - non -version: '1.0' diff --git a/tests/dictionaries/01base_multi_notuniq/makedict/after.json b/tests/dictionaries/01base_multi_notuniq/makedict/after.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_notuniq/makedict/after.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_multi_notuniq/makedict/base.json b/tests/dictionaries/01base_multi_notuniq/makedict/base.json deleted file mode 100644 index feedadc62..000000000 --- a/tests/dictionaries/01base_multi_notuniq/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ] -} diff --git a/tests/dictionaries/01base_multi_notuniq/makedict/before.json b/tests/dictionaries/01base_multi_notuniq/makedict/before.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_notuniq/makedict/before.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_multi_notuniq/tiramisu/base.py b/tests/dictionaries/01base_multi_notuniq/tiramisu/base.py deleted file mode 100644 index b4eb09d76..000000000 --- a/tests/dictionaries/01base_multi_notuniq/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "notunique", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_multi_notuniq/tiramisu/multi.py b/tests/dictionaries/01base_multi_notuniq/tiramisu/multi.py deleted file mode 100644 index c79e89f69..000000000 --- a/tests/dictionaries/01base_multi_notuniq/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "notunique", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "notunique", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01base_multi_uniq/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_multi_uniq/dictionaries/rougail/00-base.yml deleted file mode 100644 index a40a48624..000000000 --- a/tests/dictionaries/01base_multi_uniq/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - unique: true - default: - - non -version: '1.0' diff --git a/tests/dictionaries/01base_multi_uniq/makedict/after.json b/tests/dictionaries/01base_multi_uniq/makedict/after.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_uniq/makedict/after.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_multi_uniq/makedict/base.json b/tests/dictionaries/01base_multi_uniq/makedict/base.json deleted file mode 100644 index feedadc62..000000000 --- a/tests/dictionaries/01base_multi_uniq/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ] -} diff --git a/tests/dictionaries/01base_multi_uniq/makedict/before.json b/tests/dictionaries/01base_multi_uniq/makedict/before.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/01base_multi_uniq/makedict/before.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/01base_shorthand/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_shorthand/dictionaries/rougail/00-base.yml deleted file mode 100644 index 4234b6773..000000000 --- a/tests/dictionaries/01base_shorthand/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.1' -root_variable: # With root comment -root_int: 1 # With root int comment -family: # With comment - variable: # With variable comment - int: 1 # With comment for an integer - multi: # With comment for a multi - - 0.1 - - 0.2 - empty_multi: [] # With comment for an empty multi -family_not_shorthand: # Not a description - hidden: true - variable: # Not a description - default: true diff --git a/tests/dictionaries/01base_shorthand/makedict/after.json b/tests/dictionaries/01base_shorthand/makedict/after.json deleted file mode 100644 index 1f40d3df5..000000000 --- a/tests/dictionaries/01base_shorthand/makedict/after.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "rougail.root_variable": { - "owner": "default", - "value": null - }, - "rougail.root_int": { - "owner": "default", - "value": 1 - }, - "rougail.family.variable": { - "owner": "default", - "value": null - }, - "rougail.family.int": { - "owner": "default", - "value": 1 - }, - "rougail.family.multi": { - "owner": "default", - "value": [ - 0.1, - 0.2 - ] - }, - "rougail.family.empty_multi": { - "owner": "default", - "value": [] - }, - "rougail.family_not_shorthand.variable": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01base_shorthand/makedict/base.json b/tests/dictionaries/01base_shorthand/makedict/base.json deleted file mode 100644 index f7660de50..000000000 --- a/tests/dictionaries/01base_shorthand/makedict/base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.root_variable": null, - "rougail.root_int": 1, - "rougail.family.variable": null, - "rougail.family.int": 1, - "rougail.family.multi": [ - 0.1, - 0.2 - ], - "rougail.family.empty_multi": [], - "rougail.family_not_shorthand.variable": true -} diff --git a/tests/dictionaries/01base_shorthand/makedict/before.json b/tests/dictionaries/01base_shorthand/makedict/before.json deleted file mode 100644 index 1f40d3df5..000000000 --- a/tests/dictionaries/01base_shorthand/makedict/before.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "rougail.root_variable": { - "owner": "default", - "value": null - }, - "rougail.root_int": { - "owner": "default", - "value": 1 - }, - "rougail.family.variable": { - "owner": "default", - "value": null - }, - "rougail.family.int": { - "owner": "default", - "value": 1 - }, - "rougail.family.multi": { - "owner": "default", - "value": [ - 0.1, - 0.2 - ] - }, - "rougail.family.empty_multi": { - "owner": "default", - "value": [] - }, - "rougail.family_not_shorthand.variable": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01base_shorthand/makedict/mandatory.json b/tests/dictionaries/01base_shorthand/makedict/mandatory.json deleted file mode 100644 index ae2914959..000000000 --- a/tests/dictionaries/01base_shorthand/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.root_variable", "rougail.family.variable", "rougail.family.empty_multi"] \ No newline at end of file diff --git a/tests/dictionaries/01base_shorthand/tiramisu/base.py b/tests/dictionaries/01base_shorthand/tiramisu/base.py deleted file mode 100644 index 939fb47fd..000000000 --- a/tests/dictionaries/01base_shorthand/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="root_variable", doc="With root comment", properties=frozenset({"basic", "mandatory"})) -option_3 = IntOption(name="root_int", doc="With root int comment", default=1, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="variable", doc="With variable comment", properties=frozenset({"basic", "mandatory"})) -option_6 = IntOption(name="int", doc="With comment for an integer", default=1, properties=frozenset({"mandatory", "standard"})) -option_7 = FloatOption(name="multi", doc="With comment for a multi", multi=True, default=[0.1, 0.2], default_multi=0.1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_8 = StrOption(name="empty_multi", doc="With comment for an empty multi", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -optiondescription_4 = OptionDescription(name="family", doc="With comment", children=[option_5, option_6, option_7, option_8], properties=frozenset({"basic"})) -option_10 = BoolOption(name="variable", doc="variable", default=True, properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="family_not_shorthand", doc="family_not_shorthand", children=[option_10], properties=frozenset({"hidden", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4, optiondescription_9], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_shorthand/tiramisu/multi.py b/tests/dictionaries/01base_shorthand/tiramisu/multi.py deleted file mode 100644 index 1149d8282..000000000 --- a/tests/dictionaries/01base_shorthand/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="root_variable", doc="With root comment", properties=frozenset({"basic", "mandatory"})) -option_4 = IntOption(name="root_int", doc="With root int comment", default=1, properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="variable", doc="With variable comment", properties=frozenset({"basic", "mandatory"})) -option_7 = IntOption(name="int", doc="With comment for an integer", default=1, properties=frozenset({"mandatory", "standard"})) -option_8 = FloatOption(name="multi", doc="With comment for a multi", multi=True, default=[0.1, 0.2], default_multi=0.1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_9 = StrOption(name="empty_multi", doc="With comment for an empty multi", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -optiondescription_5 = OptionDescription(name="family", doc="With comment", children=[option_6, option_7, option_8, option_9], properties=frozenset({"basic"})) -option_11 = BoolOption(name="variable", doc="variable", default=True, properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="family_not_shorthand", doc="family_not_shorthand", children=[option_11], properties=frozenset({"hidden", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5, optiondescription_10], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_14 = StrOption(name="root_variable", doc="With root comment", properties=frozenset({"basic", "mandatory"})) -option_15 = IntOption(name="root_int", doc="With root int comment", default=1, properties=frozenset({"mandatory", "standard"})) -option_17 = StrOption(name="variable", doc="With variable comment", properties=frozenset({"basic", "mandatory"})) -option_18 = IntOption(name="int", doc="With comment for an integer", default=1, properties=frozenset({"mandatory", "standard"})) -option_19 = FloatOption(name="multi", doc="With comment for a multi", multi=True, default=[0.1, 0.2], default_multi=0.1, properties=frozenset({"mandatory", "notempty", "standard"})) -option_20 = StrOption(name="empty_multi", doc="With comment for an empty multi", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -optiondescription_16 = OptionDescription(name="family", doc="With comment", children=[option_17, option_18, option_19, option_20], properties=frozenset({"basic"})) -option_22 = BoolOption(name="variable", doc="variable", default=True, properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -optiondescription_21 = OptionDescription(name="family_not_shorthand", doc="family_not_shorthand", children=[option_22], properties=frozenset({"hidden", "standard"})) -optiondescription_13 = OptionDescription(name="rougail", doc="rougail", children=[option_14, option_15, optiondescription_16, optiondescription_21], properties=frozenset({"basic"})) -optiondescription_12 = OptionDescription(name="2", doc="2", children=[optiondescription_13], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_12]) diff --git a/tests/dictionaries/01base_string_shorthand/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_string_shorthand/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8cef93daf..000000000 --- a/tests/dictionaries/01base_string_shorthand/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.1' -string: value -string_multi: - - value -family: - string: value - string_multi: - - value diff --git a/tests/dictionaries/01base_string_shorthand/makedict/after.json b/tests/dictionaries/01base_string_shorthand/makedict/after.json deleted file mode 100644 index a0d00f6fe..000000000 --- a/tests/dictionaries/01base_string_shorthand/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.string": { - "owner": "default", - "value": "value" - }, - "rougail.string_multi": { - "owner": "default", - "value": [ - "value" - ] - }, - "rougail.family.string": { - "owner": "default", - "value": "value" - }, - "rougail.family.string_multi": { - "owner": "default", - "value": [ - "value" - ] - } -} diff --git a/tests/dictionaries/01base_string_shorthand/makedict/base.json b/tests/dictionaries/01base_string_shorthand/makedict/base.json deleted file mode 100644 index e5dfb8cc0..000000000 --- a/tests/dictionaries/01base_string_shorthand/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.string": "value", - "rougail.string_multi": [ - "value" - ], - "rougail.family.string": "value", - "rougail.family.string_multi": [ - "value" - ] -} diff --git a/tests/dictionaries/01base_string_shorthand/makedict/before.json b/tests/dictionaries/01base_string_shorthand/makedict/before.json deleted file mode 100644 index a0d00f6fe..000000000 --- a/tests/dictionaries/01base_string_shorthand/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.string": { - "owner": "default", - "value": "value" - }, - "rougail.string_multi": { - "owner": "default", - "value": [ - "value" - ] - }, - "rougail.family.string": { - "owner": "default", - "value": "value" - }, - "rougail.family.string_multi": { - "owner": "default", - "value": [ - "value" - ] - } -} diff --git a/tests/dictionaries/01base_string_shorthand/tiramisu/base.py b/tests/dictionaries/01base_string_shorthand/tiramisu/base.py deleted file mode 100644 index c7111d321..000000000 --- a/tests/dictionaries/01base_string_shorthand/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = OptionDescription(name="family", doc="family", children=[option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_string_shorthand/tiramisu/multi.py b/tests/dictionaries/01base_string_shorthand/tiramisu/multi.py deleted file mode 100644 index 721a47dcd..000000000 --- a/tests/dictionaries/01base_string_shorthand/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = OptionDescription(name="family", doc="family", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = StrOption(name="string", doc="string", default="value", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="string_multi", doc="string_multi", multi=True, default=["value"], default_multi="value", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="family", doc="family", children=[option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/01base_value_doublequote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_doublequote/dictionaries/rougail/00-base.yml deleted file mode 100644 index ee8d8e599..000000000 --- a/tests/dictionaries/01base_value_doublequote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: quote" -version: '1.0' diff --git a/tests/dictionaries/01base_value_doublequote2/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_doublequote2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3071f1a08..000000000 --- a/tests/dictionaries/01base_value_doublequote2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: quote'" -version: '1.0' diff --git a/tests/dictionaries/01base_value_doublequote3/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_doublequote3/dictionaries/rougail/00-base.yml deleted file mode 100644 index e7442c204..000000000 --- a/tests/dictionaries/01base_value_doublequote3/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: quote\"\' diff --git a/tests/dictionaries/01base_value_multi_doublequote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_multi_doublequote/dictionaries/rougail/00-base.yml deleted file mode 100644 index ca0dc5158..000000000 --- a/tests/dictionaries/01base_value_multi_doublequote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - default: - - quote" -version: '1.0' diff --git a/tests/dictionaries/01base_value_multi_doublequote2/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_multi_doublequote2/dictionaries/rougail/00-base.yml deleted file mode 100644 index d09865f89..000000000 --- a/tests/dictionaries/01base_value_multi_doublequote2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - default: - - quote'" -version: '1.0' diff --git a/tests/dictionaries/01base_value_multi_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_multi_quote/dictionaries/rougail/00-base.yml deleted file mode 100644 index f998e9268..000000000 --- a/tests/dictionaries/01base_value_multi_quote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - multi: true - default: - - quote' -version: '1.0' diff --git a/tests/dictionaries/01base_value_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_value_quote/dictionaries/rougail/00-base.yml deleted file mode 100644 index d602e8e26..000000000 --- a/tests/dictionaries/01base_value_quote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: quote' -version: '1.0' diff --git a/tests/dictionaries/01base_var_name_same_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/01base_var_name_same_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0a73fd775..000000000 --- a/tests/dictionaries/01base_var_name_same_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - general: - type: string - description: description - default: non -version: '1.0' diff --git a/tests/dictionaries/01base_var_name_same_family/makedict/after.json b/tests/dictionaries/01base_var_name_same_family/makedict/after.json deleted file mode 100644 index b3942d986..000000000 --- a/tests/dictionaries/01base_var_name_same_family/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.general": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01base_var_name_same_family/makedict/base.json b/tests/dictionaries/01base_var_name_same_family/makedict/base.json deleted file mode 100644 index 03f140af0..000000000 --- a/tests/dictionaries/01base_var_name_same_family/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.general": "non" -} diff --git a/tests/dictionaries/01base_var_name_same_family/makedict/before.json b/tests/dictionaries/01base_var_name_same_family/makedict/before.json deleted file mode 100644 index b3942d986..000000000 --- a/tests/dictionaries/01base_var_name_same_family/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.general": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01base_var_name_same_family/tiramisu/base.py b/tests/dictionaries/01base_var_name_same_family/tiramisu/base.py deleted file mode 100644 index 72067c9e6..000000000 --- a/tests/dictionaries/01base_var_name_same_family/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="general", doc="description", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01base_var_name_same_family/tiramisu/multi.py b/tests/dictionaries/01base_var_name_same_family/tiramisu/multi.py deleted file mode 100644 index 7b0b70aeb..000000000 --- a/tests/dictionaries/01base_var_name_same_family/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="general", doc="description", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="general", doc="description", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01boolean_no_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/01boolean_no_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 456cb907f..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ -my_variable: - type: boolean - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/01boolean_no_mandatory/makedict/after.json b/tests/dictionaries/01boolean_no_mandatory/makedict/after.json deleted file mode 100644 index 51758e8dc..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01boolean_no_mandatory/makedict/base.json b/tests/dictionaries/01boolean_no_mandatory/makedict/base.json deleted file mode 100644 index 9c4e49a9c..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.my_variable": true -} diff --git a/tests/dictionaries/01boolean_no_mandatory/makedict/before.json b/tests/dictionaries/01boolean_no_mandatory/makedict/before.json deleted file mode 100644 index 51758e8dc..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01boolean_no_mandatory/tiramisu/base.py b/tests/dictionaries/01boolean_no_mandatory/tiramisu/base.py deleted file mode 100644 index 8adff146a..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="my_variable", doc="my_variable", default=True, properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01boolean_no_mandatory/tiramisu/multi.py b/tests/dictionaries/01boolean_no_mandatory/tiramisu/multi.py deleted file mode 100644 index 1bb7fbc58..000000000 --- a/tests/dictionaries/01boolean_no_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="my_variable", doc="my_variable", default=True, properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = BoolOption(name="my_variable", doc="my_variable", default=True, properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01family_description/dictionaries/rougail/00-base.yml b/tests/dictionaries/01family_description/dictionaries/rougail/00-base.yml deleted file mode 100644 index 737ff62b9..000000000 --- a/tests/dictionaries/01family_description/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - description: Other description - mode_conteneur_actif: - default: non -version: '1.0' diff --git a/tests/dictionaries/01family_description/makedict/after.json b/tests/dictionaries/01family_description/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01family_description/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01family_description/makedict/base.json b/tests/dictionaries/01family_description/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01family_description/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01family_description/makedict/before.json b/tests/dictionaries/01family_description/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01family_description/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01family_description/tiramisu/base.py b/tests/dictionaries/01family_description/tiramisu/base.py deleted file mode 100644 index 5fcbff94e..000000000 --- a/tests/dictionaries/01family_description/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="Other description", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01family_description/tiramisu/multi.py b/tests/dictionaries/01family_description/tiramisu/multi.py deleted file mode 100644 index f94de6b85..000000000 --- a/tests/dictionaries/01family_description/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="Other description", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="Other description", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1bbd4f95b..000000000 --- a/tests/dictionaries/01test/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - test: - - test - default: non -version: '1.0' diff --git a/tests/dictionaries/01test/makedict/after.json b/tests/dictionaries/01test/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test/makedict/base.json b/tests/dictionaries/01test/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01test/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01test/makedict/before.json b/tests/dictionaries/01test/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test/tiramisu/base.py b/tests/dictionaries/01test/tiramisu/base.py deleted file mode 100644 index 21b97463c..000000000 --- a/tests/dictionaries/01test/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test/tiramisu/multi.py b/tests/dictionaries/01test/tiramisu/multi.py deleted file mode 100644 index 4a3338529..000000000 --- a/tests/dictionaries/01test/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test',)}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test_boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_boolean/dictionaries/rougail/00-base.yml deleted file mode 100644 index fd56a3d2a..000000000 --- a/tests/dictionaries/01test_boolean/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: "boolean" - test: - - false - default: true diff --git a/tests/dictionaries/01test_boolean/makedict/after.json b/tests/dictionaries/01test_boolean/makedict/after.json deleted file mode 100644 index a4b17e4d8..000000000 --- a/tests/dictionaries/01test_boolean/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01test_boolean/makedict/base.json b/tests/dictionaries/01test_boolean/makedict/base.json deleted file mode 100644 index d1567df62..000000000 --- a/tests/dictionaries/01test_boolean/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": true -} diff --git a/tests/dictionaries/01test_boolean/makedict/before.json b/tests/dictionaries/01test_boolean/makedict/before.json deleted file mode 100644 index a4b17e4d8..000000000 --- a/tests/dictionaries/01test_boolean/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/01test_boolean/tiramisu/base.py b/tests/dictionaries/01test_boolean/tiramisu/base.py deleted file mode 100644 index 9db52b8ec..000000000 --- a/tests/dictionaries/01test_boolean/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default=True, properties=frozenset({"mandatory", "standard"}), informations={'test': (False,)}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_boolean/tiramisu/multi.py b/tests/dictionaries/01test_boolean/tiramisu/multi.py deleted file mode 100644 index d56c174d0..000000000 --- a/tests/dictionaries/01test_boolean/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = BoolOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default=True, properties=frozenset({"mandatory", "standard"}), informations={'test': (False,)}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = BoolOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default=True, properties=frozenset({"mandatory", "standard"}), informations={'test': (False,)}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 92438b71e..000000000 --- a/tests/dictionaries/01test_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - test: - - test1 - - test2 - default: non diff --git a/tests/dictionaries/01test_multi/makedict/after.json b/tests/dictionaries/01test_multi/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_multi/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_multi/makedict/base.json b/tests/dictionaries/01test_multi/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01test_multi/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01test_multi/makedict/before.json b/tests/dictionaries/01test_multi/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_multi/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_multi/tiramisu/base.py b/tests/dictionaries/01test_multi/tiramisu/base.py deleted file mode 100644 index 5d3cb283d..000000000 --- a/tests/dictionaries/01test_multi/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1', 'test2')}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_multi/tiramisu/multi.py b/tests/dictionaries/01test_multi/tiramisu/multi.py deleted file mode 100644 index cf3696875..000000000 --- a/tests/dictionaries/01test_multi/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1', 'test2')}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1', 'test2')}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test_multi_none/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_multi_none/dictionaries/rougail/00-base.yml deleted file mode 100644 index eb5f0c525..000000000 --- a/tests/dictionaries/01test_multi_none/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - mode_conteneur_actif: - test: - - null - - test1 - - test2 - default: non -version: '1.0' diff --git a/tests/dictionaries/01test_multi_none/makedict/after.json b/tests/dictionaries/01test_multi_none/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_multi_none/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_multi_none/makedict/base.json b/tests/dictionaries/01test_multi_none/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01test_multi_none/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01test_multi_none/makedict/before.json b/tests/dictionaries/01test_multi_none/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_multi_none/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_multi_none/tiramisu/base.py b/tests/dictionaries/01test_multi_none/tiramisu/base.py deleted file mode 100644 index ceb2d5b43..000000000 --- a/tests/dictionaries/01test_multi_none/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': (None, 'test1', 'test2')}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_multi_none/tiramisu/multi.py b/tests/dictionaries/01test_multi_none/tiramisu/multi.py deleted file mode 100644 index e77119a62..000000000 --- a/tests/dictionaries/01test_multi_none/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': (None, 'test1', 'test2')}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': (None, 'test1', 'test2')}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_redefine/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1bbd4f95b..000000000 --- a/tests/dictionaries/01test_redefine/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - test: - - test - default: non -version: '1.0' diff --git a/tests/dictionaries/01test_redefine/dictionaries/rougail/10-base.yml b/tests/dictionaries/01test_redefine/dictionaries/rougail/10-base.yml deleted file mode 100644 index fce89f579..000000000 --- a/tests/dictionaries/01test_redefine/dictionaries/rougail/10-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - test: - - test1 -version: '1.0' diff --git a/tests/dictionaries/01test_redefine/makedict/after.json b/tests/dictionaries/01test_redefine/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_redefine/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_redefine/makedict/base.json b/tests/dictionaries/01test_redefine/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01test_redefine/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01test_redefine/makedict/before.json b/tests/dictionaries/01test_redefine/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_redefine/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_redefine/tiramisu/base.py b/tests/dictionaries/01test_redefine/tiramisu/base.py deleted file mode 100644 index 3724aa30d..000000000 --- a/tests/dictionaries/01test_redefine/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_redefine/tiramisu/multi.py b/tests/dictionaries/01test_redefine/tiramisu/multi.py deleted file mode 100644 index 0a3836ed5..000000000 --- a/tests/dictionaries/01test_redefine/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/01test_redefine_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_redefine_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 81136a3fd..000000000 --- a/tests/dictionaries/01test_redefine_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ -my_variable: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/01test_redefine_base/dictionaries/rougail/10-base.yml b/tests/dictionaries/01test_redefine_base/dictionaries/rougail/10-base.yml deleted file mode 100644 index 7e0e2e829..000000000 --- a/tests/dictionaries/01test_redefine_base/dictionaries/rougail/10-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -my_variable: - redefine: true - test: - - test1 -version: '1.0' diff --git a/tests/dictionaries/01test_redefine_base/makedict/after.json b/tests/dictionaries/01test_redefine_base/makedict/after.json deleted file mode 100644 index bd8910427..000000000 --- a/tests/dictionaries/01test_redefine_base/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01test_redefine_base/makedict/base.json b/tests/dictionaries/01test_redefine_base/makedict/base.json deleted file mode 100644 index 9b3f9ac4b..000000000 --- a/tests/dictionaries/01test_redefine_base/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.my_variable": null -} diff --git a/tests/dictionaries/01test_redefine_base/makedict/before.json b/tests/dictionaries/01test_redefine_base/makedict/before.json deleted file mode 100644 index bd8910427..000000000 --- a/tests/dictionaries/01test_redefine_base/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/01test_redefine_base/tiramisu/base.py b/tests/dictionaries/01test_redefine_base/tiramisu/base.py deleted file mode 100644 index d07059c28..000000000 --- a/tests/dictionaries/01test_redefine_base/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"}), informations={'test': ('test1',)}) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_redefine_base/tiramisu/multi.py b/tests/dictionaries/01test_redefine_base/tiramisu/multi.py deleted file mode 100644 index fd1c18da3..000000000 --- a/tests/dictionaries/01test_redefine_base/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"}), informations={'test': ('test1',)}) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"}), informations={'test': ('test1',)}) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/00-base.yml b/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1bbd4f95b..000000000 --- a/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - test: - - test - default: non -version: '1.0' diff --git a/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/10-base.yml b/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/10-base.yml deleted file mode 100644 index b1baea2d3..000000000 --- a/tests/dictionaries/01test_redefine_remove/dictionaries/rougail/10-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - test: null -version: '1.0' diff --git a/tests/dictionaries/01test_redefine_remove/makedict/after.json b/tests/dictionaries/01test_redefine_remove/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_redefine_remove/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_redefine_remove/makedict/base.json b/tests/dictionaries/01test_redefine_remove/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/01test_redefine_remove/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/01test_redefine_remove/makedict/before.json b/tests/dictionaries/01test_redefine_remove/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/01test_redefine_remove/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/01test_redefine_remove/tiramisu/base.py b/tests/dictionaries/01test_redefine_remove/tiramisu/base.py deleted file mode 100644 index 079234e31..000000000 --- a/tests/dictionaries/01test_redefine_remove/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/01test_redefine_remove/tiramisu/multi.py b/tests/dictionaries/01test_redefine_remove/tiramisu/multi.py deleted file mode 100644 index 60f71da0d..000000000 --- a/tests/dictionaries/01test_redefine_remove/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10autosave_hidden/__init__.py b/tests/dictionaries/04_0type_param/__init__.py similarity index 100% rename from tests/dictionaries/10autosave_hidden/__init__.py rename to tests/dictionaries/04_0type_param/__init__.py diff --git a/tests/dictionaries/04_0type_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_0type_param/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..10ac1e91d --- /dev/null +++ b/tests/dictionaries/04_0type_param/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +int: + description: A limited number + type: number + params: + min_number: 0 + max_number: 100 diff --git a/tests/dictionaries/04_0type_param/makedict/after.json b/tests/dictionaries/04_0type_param/makedict/after.json new file mode 100644 index 000000000..c13b17de0 --- /dev/null +++ b/tests/dictionaries/04_0type_param/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.int": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_0type_param/makedict/base.json b/tests/dictionaries/04_0type_param/makedict/base.json new file mode 100644 index 000000000..f6f915662 --- /dev/null +++ b/tests/dictionaries/04_0type_param/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.int": null +} diff --git a/tests/dictionaries/04_0type_param/makedict/before.json b/tests/dictionaries/04_0type_param/makedict/before.json new file mode 100644 index 000000000..c13b17de0 --- /dev/null +++ b/tests/dictionaries/04_0type_param/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.int": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_0type_param/makedict/mandatory.json b/tests/dictionaries/04_0type_param/makedict/mandatory.json new file mode 100644 index 000000000..448b0b3c1 --- /dev/null +++ b/tests/dictionaries/04_0type_param/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.int"] \ No newline at end of file diff --git a/tests/dictionaries/04_0type_param/tiramisu/base.py b/tests/dictionaries/04_0type_param/tiramisu/base.py new file mode 100644 index 000000000..07d1f6a81 --- /dev/null +++ b/tests/dictionaries/04_0type_param/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = IntOption(name="int", doc="A limited number", min_number=0, max_number=100, properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_0type_param/tiramisu/multi.py b/tests/dictionaries/04_0type_param/tiramisu/multi.py new file mode 100644 index 000000000..dce03b8ce --- /dev/null +++ b/tests/dictionaries/04_0type_param/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = IntOption(name="int", doc="A limited number", min_number=0, max_number=100, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = IntOption(name="int", doc="A limited number", min_number=0, max_number=100, properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10check_base/__init__.py b/tests/dictionaries/04_1auto_save/__init__.py similarity index 100% rename from tests/dictionaries/10check_base/__init__.py rename to tests/dictionaries/04_1auto_save/__init__.py diff --git a/tests/dictionaries/04_1auto_save/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_1auto_save/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0c770da09 --- /dev/null +++ b/tests/dictionaries/04_1auto_save/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: 1.1 +variable: + description: an auto save variable + auto_save: true + default: "no" diff --git a/tests/dictionaries/15load_autosave/makedict/after.json b/tests/dictionaries/04_1auto_save/makedict/after.json similarity index 100% rename from tests/dictionaries/15load_autosave/makedict/after.json rename to tests/dictionaries/04_1auto_save/makedict/after.json diff --git a/tests/dictionaries/15load_autosave/makedict/base.json b/tests/dictionaries/04_1auto_save/makedict/base.json similarity index 100% rename from tests/dictionaries/15load_autosave/makedict/base.json rename to tests/dictionaries/04_1auto_save/makedict/base.json diff --git a/tests/dictionaries/15load_autosave/makedict/before.json b/tests/dictionaries/04_1auto_save/makedict/before.json similarity index 100% rename from tests/dictionaries/15load_autosave/makedict/before.json rename to tests/dictionaries/04_1auto_save/makedict/before.json diff --git a/tests/dictionaries/01test_redefine_remove/makedict/mandatory.json b/tests/dictionaries/04_1auto_save/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/01test_redefine_remove/makedict/mandatory.json rename to tests/dictionaries/04_1auto_save/makedict/mandatory.json diff --git a/tests/dictionaries/15load_autosave/tiramisu/base.py b/tests/dictionaries/04_1auto_save/tiramisu/base.py similarity index 100% rename from tests/dictionaries/15load_autosave/tiramisu/base.py rename to tests/dictionaries/04_1auto_save/tiramisu/base.py diff --git a/tests/dictionaries/15load_autosave/tiramisu/multi.py b/tests/dictionaries/04_1auto_save/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/15load_autosave/tiramisu/multi.py rename to tests/dictionaries/04_1auto_save/tiramisu/multi.py diff --git a/tests/dictionaries/10check_no_param/__init__.py b/tests/dictionaries/04_1auto_save_and_calculated/__init__.py similarity index 100% rename from tests/dictionaries/10check_no_param/__init__.py rename to tests/dictionaries/04_1auto_save_and_calculated/__init__.py diff --git a/tests/dictionaries/04_1auto_save_and_calculated/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_1auto_save_and_calculated/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..2341063e1 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: 1.1 +var1: "no" # a first variable +var2: + description: a second variable + auto_save: true + default: + type: variable + variable: _.var1 diff --git a/tests/dictionaries/15fill_autosave/makedict/after.json b/tests/dictionaries/04_1auto_save_and_calculated/makedict/after.json similarity index 100% rename from tests/dictionaries/15fill_autosave/makedict/after.json rename to tests/dictionaries/04_1auto_save_and_calculated/makedict/after.json diff --git a/tests/dictionaries/15fill_autosave/makedict/base.json b/tests/dictionaries/04_1auto_save_and_calculated/makedict/base.json similarity index 100% rename from tests/dictionaries/15fill_autosave/makedict/base.json rename to tests/dictionaries/04_1auto_save_and_calculated/makedict/base.json diff --git a/tests/dictionaries/15fill_autosave/makedict/before.json b/tests/dictionaries/04_1auto_save_and_calculated/makedict/before.json similarity index 100% rename from tests/dictionaries/15fill_autosave/makedict/before.json rename to tests/dictionaries/04_1auto_save_and_calculated/makedict/before.json diff --git a/tests/dictionaries/10autosave_hidden/makedict/mandatory.json b/tests/dictionaries/04_1auto_save_and_calculated/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10autosave_hidden/makedict/mandatory.json rename to tests/dictionaries/04_1auto_save_and_calculated/makedict/mandatory.json diff --git a/tests/dictionaries/15fill_autosave/tiramisu/base.py b/tests/dictionaries/04_1auto_save_and_calculated/tiramisu/base.py similarity index 100% rename from tests/dictionaries/15fill_autosave/tiramisu/base.py rename to tests/dictionaries/04_1auto_save_and_calculated/tiramisu/base.py diff --git a/tests/dictionaries/15fill_autosave/tiramisu/multi.py b/tests/dictionaries/04_1auto_save_and_calculated/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/15fill_autosave/tiramisu/multi.py rename to tests/dictionaries/04_1auto_save_and_calculated/tiramisu/multi.py diff --git a/tests/dictionaries/10check_optional/__init__.py b/tests/dictionaries/04_1auto_save_and_calculated_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10check_optional/__init__.py rename to tests/dictionaries/04_1auto_save_and_calculated_hidden/__init__.py diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_1auto_save_and_calculated_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6751b2ed6 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,17 @@ +--- +version: '1.1' +var1: "no" # a first variable +var2: + description: a second variable + auto_save: true + hidden: + type: jinja + jinja: | + {% if _.var1 == "yes" %} + _.var1 is yes + {% endif %} + description: only if the variable var1 has value "yes" + default: + type: jinja + jinja: 'yes' + description: the value is always yes diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/after.json b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/after.json new file mode 100644 index 000000000..d468b2968 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "forced", + "value": "yes" + } +} diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/base.json b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/base.json new file mode 100644 index 000000000..81b1c83e2 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "yes" +} diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/before.json b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/before.json new file mode 100644 index 000000000..afb36a7c4 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10check_base/makedict/mandatory.json b/tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_base/makedict/mandatory.json rename to tests/dictionaries/04_1auto_save_and_calculated_hidden/makedict/mandatory.json diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/base.py b/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/base.py new file mode 100644 index 000000000..63054b3db --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "yes" +dict_env['hidden_rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +dict_env['frozen_rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +option_2 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +option_3 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/multi.py b/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/multi.py new file mode 100644 index 000000000..8e801ac5b --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_calculated_hidden/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "yes" +dict_env['hidden_1.rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +dict_env['default_2.rougail.var2'] = "yes" +dict_env['hidden_2.rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var2'] = "{% if rougail.var1 == \"yes\" %}\nrougail.var1 is yes\n{% endif %}\n" +option_3 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +option_4 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +option_8 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_7)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10check_valid_differ/__init__.py b/tests/dictionaries/04_1auto_save_and_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_differ/__init__.py rename to tests/dictionaries/04_1auto_save_and_hidden/__init__.py diff --git a/tests/dictionaries/04_1auto_save_and_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_1auto_save_and_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..8790271ab --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +var: + description: autosave variable + auto_save: true + hidden: true + default: 'yes' diff --git a/tests/dictionaries/04_1auto_save_and_hidden/makedict/after.json b/tests/dictionaries/04_1auto_save_and_hidden/makedict/after.json new file mode 100644 index 000000000..c1f643b0c --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "forced", + "value": "yes" + } +} diff --git a/tests/dictionaries/04_1auto_save_and_hidden/makedict/base.json b/tests/dictionaries/04_1auto_save_and_hidden/makedict/base.json new file mode 100644 index 000000000..cf418b6d1 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "yes" +} diff --git a/tests/dictionaries/04_1auto_save_and_hidden/makedict/before.json b/tests/dictionaries/04_1auto_save_and_hidden/makedict/before.json new file mode 100644 index 000000000..e745e1f1a --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10check_no_param/makedict/mandatory.json b/tests/dictionaries/04_1auto_save_and_hidden/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_no_param/makedict/mandatory.json rename to tests/dictionaries/04_1auto_save_and_hidden/makedict/mandatory.json diff --git a/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/base.py b/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/base.py new file mode 100644 index 000000000..4991a0e48 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="autosave variable", default="yes", properties=frozenset({"basic", "force_store_value", "frozen", "hidden", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/multi.py b/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/multi.py new file mode 100644 index 000000000..f1eb10737 --- /dev/null +++ b/tests/dictionaries/04_1auto_save_and_hidden/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="autosave variable", default="yes", properties=frozenset({"basic", "force_store_value", "frozen", "hidden", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = StrOption(name="var", doc="autosave variable", default="yes", properties=frozenset({"basic", "force_store_value", "frozen", "hidden", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10check_valid_differ_add/__init__.py b/tests/dictionaries/04_5disabled_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_differ_add/__init__.py rename to tests/dictionaries/04_5disabled_calculation/__init__.py diff --git a/tests/dictionaries/04_5disabled_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5disabled_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c369c8fa7 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,21 @@ +--- +version: '1.1' +condition: "no" # a conditional variable +variable1: + description: a first variable + disabled: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is egal to "yes" +variable2: + description: a second variable + disabled: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is egal to "yes" diff --git a/tests/dictionaries/04_5disabled_calculation/makedict/after.json b/tests/dictionaries/04_5disabled_calculation/makedict/after.json new file mode 100644 index 000000000..63761fb72 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.variable1": { + "owner": "default", + "value": null + }, + "rougail.variable2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5disabled_calculation/makedict/base.json b/tests/dictionaries/04_5disabled_calculation/makedict/base.json new file mode 100644 index 000000000..a5a53303f --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.variable1": null, + "rougail.variable2": null +} diff --git a/tests/dictionaries/04_5disabled_calculation/makedict/before.json b/tests/dictionaries/04_5disabled_calculation/makedict/before.json new file mode 100644 index 000000000..63761fb72 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.variable1": { + "owner": "default", + "value": null + }, + "rougail.variable2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5disabled_calculation/makedict/mandatory.json b/tests/dictionaries/04_5disabled_calculation/makedict/mandatory.json new file mode 100644 index 000000000..62552d034 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.variable1", "rougail.variable2"] \ No newline at end of file diff --git a/tests/dictionaries/04_5disabled_calculation/tiramisu/base.py b/tests/dictionaries/04_5disabled_calculation/tiramisu/base.py new file mode 100644 index 000000000..44400807c --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_rougail.variable1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['disabled_rougail.variable2'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a conditional variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="variable1", doc="a first variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_4 = StrOption(name="variable2", doc="a second variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5disabled_calculation/tiramisu/multi.py b/tests/dictionaries/04_5disabled_calculation/tiramisu/multi.py new file mode 100644 index 000000000..4fabcb159 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_1.rougail.variable1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['disabled_1.rougail.variable2'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['disabled_2.rougail.variable1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['disabled_2.rougail.variable2'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a conditional variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="variable1", doc="a first variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="variable2", doc="a second variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="condition", doc="a conditional variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="variable1", doc="a first variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="variable2", doc="a second variable", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_valid_differ_removecheck/__init__.py b/tests/dictionaries/04_5disabled_calculation_default/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_differ_removecheck/__init__.py rename to tests/dictionaries/04_5disabled_calculation_default/__init__.py diff --git a/tests/dictionaries/04_5disabled_calculation_default/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5disabled_calculation_default/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7c32bf060 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/dictionaries/rougail/00-base.yml @@ -0,0 +1,31 @@ +--- +version: '1.1' +condition: "no" # a condition +var1: + description: a first variable + disabled: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ _.condition }} + description: the value of condition +var2: + description: a second variable + disabled: + type: jinja + jinja: | + {% if rougail.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ rougail.condition }} + description: the value of condition diff --git a/tests/dictionaries/04_5disabled_calculation_default/makedict/after.json b/tests/dictionaries/04_5disabled_calculation_default/makedict/after.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/04_5disabled_calculation_default/makedict/base.json b/tests/dictionaries/04_5disabled_calculation_default/makedict/base.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5disabled_calculation_default/makedict/before.json b/tests/dictionaries/04_5disabled_calculation_default/makedict/before.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10check_optional/makedict/mandatory.json b/tests/dictionaries/04_5disabled_calculation_default/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_optional/makedict/mandatory.json rename to tests/dictionaries/04_5disabled_calculation_default/makedict/mandatory.json diff --git a/tests/dictionaries/04_5disabled_calculation_default/tiramisu/base.py b/tests/dictionaries/04_5disabled_calculation_default/tiramisu/base.py new file mode 100644 index 000000000..bc8e771f8 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var1'] = "{{ _.condition }}\n" +dict_env['disabled_rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['disabled_rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_4 = 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), 'rougail.condition': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5disabled_calculation_default/tiramisu/multi.py b/tests/dictionaries/04_5disabled_calculation_default/tiramisu/multi.py new file mode 100644 index 000000000..e78a01f80 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_default/tiramisu/multi.py @@ -0,0 +1,26 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var1'] = "{{ _.condition }}\n" +dict_env['disabled_1.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_1.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['disabled_1.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var1'] = "{{ _.condition }}\n" +dict_env['disabled_2.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['disabled_2.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)})), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_valid_in_network/__init__.py b/tests/dictionaries/04_5disabled_calculation_optional/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_in_network/__init__.py rename to tests/dictionaries/04_5disabled_calculation_optional/__init__.py diff --git a/tests/dictionaries/04_5disabled_calculation_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5disabled_calculation_optional/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0a0f219fe --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/dictionaries/rougail/00-base.yml @@ -0,0 +1,35 @@ +--- +version: '1.1' +condition: "no" # a condition +var1: + description: a first variable + hidden: + type: jinja + jinja: | + {% if unknown is not defined %} + unknown is undefined + {% elif unknown == "no" %} + unknown is no + {% endif %} + params: + unknown: + type: variable + variable: _.unknown + optional: true + description: calculation from an unknown variable +var2: + description: a second variable + hidden: + type: jinja + jinja: | + {% if condition is not defined %} + condition is undefined + {% elif condition == "no" %} + condition is no + {% endif %} + params: + condition: + type: variable + variable: _.condition + optional: true + description: calculation from an condition variable diff --git a/tests/dictionaries/04_5disabled_calculation_optional/makedict/after.json b/tests/dictionaries/04_5disabled_calculation_optional/makedict/after.json new file mode 100644 index 000000000..af8d2a34f --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5disabled_calculation_optional/makedict/base.json b/tests/dictionaries/04_5disabled_calculation_optional/makedict/base.json new file mode 100644 index 000000000..d9e772ec7 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": null, + "rougail.var2": null +} diff --git a/tests/dictionaries/04_5disabled_calculation_optional/makedict/before.json b/tests/dictionaries/04_5disabled_calculation_optional/makedict/before.json new file mode 100644 index 000000000..af8d2a34f --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": null + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5disabled_calculation_optional/makedict/mandatory.json b/tests/dictionaries/04_5disabled_calculation_optional/makedict/mandatory.json new file mode 100644 index 000000000..8c67ac5f8 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var1", "rougail.var2"] \ No newline at end of file diff --git a/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/base.py b/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/base.py new file mode 100644 index 000000000..e7016b654 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['frozen_rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['hidden_rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +dict_env['frozen_rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +option_4 = StrOption(name="var2", doc="a second variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/multi.py b/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/multi.py new file mode 100644 index 000000000..6de28e27d --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_optional/tiramisu/multi.py @@ -0,0 +1,26 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_1.rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['frozen_1.rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['hidden_1.rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +dict_env['frozen_1.rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +dict_env['hidden_2.rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['frozen_2.rougail.var1'] = "{% if unknown is not defined %}\nunknown is undefined\n{% elif unknown == \"no\" %}\nunknown is no\n{% endif %}\nparams:\n unknown:\n type: variable\n variable: _.unknown\n optional: true\n" +dict_env['hidden_2.rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +dict_env['frozen_2.rougail.var2'] = "{% if condition is not defined %}\ncondition is undefined\n{% elif condition == \"no\" %}\ncondition is no\n{% endif %}\nparams:\n condition:\n type: variable\n variable: _.condition\n optional: true\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a first variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="var2", doc="a second variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var1", doc="a first variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="var2", doc="a second variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_valid_in_network_cidr/__init__.py b/tests/dictionaries/04_5disabled_calculation_variable/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_in_network_cidr/__init__.py rename to tests/dictionaries/04_5disabled_calculation_variable/__init__.py diff --git a/tests/dictionaries/04_5disabled_calculation_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5disabled_calculation_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..cbe4c0ab6 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +condition: false # a condition +variable: + description: a variable + disabled: + type: variable + variable: _.condition diff --git a/tests/dictionaries/10disabled_with_variable2/makedict/after.json b/tests/dictionaries/04_5disabled_calculation_variable/makedict/after.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable2/makedict/after.json rename to tests/dictionaries/04_5disabled_calculation_variable/makedict/after.json diff --git a/tests/dictionaries/10disabled_with_variable2/makedict/base.json b/tests/dictionaries/04_5disabled_calculation_variable/makedict/base.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable2/makedict/base.json rename to tests/dictionaries/04_5disabled_calculation_variable/makedict/base.json diff --git a/tests/dictionaries/10disabled_with_variable2/makedict/before.json b/tests/dictionaries/04_5disabled_calculation_variable/makedict/before.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable2/makedict/before.json rename to tests/dictionaries/04_5disabled_calculation_variable/makedict/before.json diff --git a/tests/dictionaries/04_5disabled_calculation_variable/makedict/mandatory.json b/tests/dictionaries/04_5disabled_calculation_variable/makedict/mandatory.json new file mode 100644 index 000000000..bdc34fddd --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.variable"] \ No newline at end of file diff --git a/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/base.py b/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/base.py new file mode 100644 index 000000000..1b646970b --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="condition", doc="a condition", default=False, properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_2))), help_function=func['variable_to_property'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/multi.py b/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/multi.py new file mode 100644 index 000000000..eeafb45b2 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="condition", doc="a condition", default=False, properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_3))), help_function=func['variable_to_property'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = BoolOption(name="condition", doc="a condition", default=False, properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_7))), help_function=func['variable_to_property'])})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10check_valid_ipnetmask/__init__.py b/tests/dictionaries/04_5disabled_calculation_variable2/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_ipnetmask/__init__.py rename to tests/dictionaries/04_5disabled_calculation_variable2/__init__.py diff --git a/tests/dictionaries/04_5disabled_calculation_variable2/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5disabled_calculation_variable2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..9ece4a961 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable2/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +condition: true # a condition +variable: + description: a variable + disabled: + type: variable + variable: _.condition diff --git a/tests/dictionaries/10disabled_with_variable/makedict/after.json b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/after.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable/makedict/after.json rename to tests/dictionaries/04_5disabled_calculation_variable2/makedict/after.json diff --git a/tests/dictionaries/10disabled_with_variable/makedict/base.json b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/base.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable/makedict/base.json rename to tests/dictionaries/04_5disabled_calculation_variable2/makedict/base.json diff --git a/tests/dictionaries/10disabled_with_variable/makedict/before.json b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/before.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable/makedict/before.json rename to tests/dictionaries/04_5disabled_calculation_variable2/makedict/before.json diff --git a/tests/dictionaries/10check_valid_differ/makedict/mandatory.json b/tests/dictionaries/04_5disabled_calculation_variable2/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_valid_differ/makedict/mandatory.json rename to tests/dictionaries/04_5disabled_calculation_variable2/makedict/mandatory.json diff --git a/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/base.py b/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/base.py new file mode 100644 index 000000000..28e0e2544 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_2))), help_function=func['variable_to_property'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/multi.py b/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/multi.py new file mode 100644 index 000000000..3857d01b8 --- /dev/null +++ b/tests/dictionaries/04_5disabled_calculation_variable2/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_3))), help_function=func['variable_to_property'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_7))), help_function=func['variable_to_property'])})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10check_valid_jinja/__init__.py b/tests/dictionaries/04_5hidden_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10check_valid_jinja/__init__.py rename to tests/dictionaries/04_5hidden_calculation/__init__.py diff --git a/tests/dictionaries/04_5hidden_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5hidden_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5d4b822f1 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,23 @@ +--- +version: '1.1' +condition: 'no' # the condition +var1: + description: a first variable + default: "no" + hidden: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes +var2: + description: a second variable + default: "no" + hidden: + type: jinja + jinja: | + {% if rougail.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes diff --git a/tests/dictionaries/04_5hidden_calculation/makedict/after.json b/tests/dictionaries/04_5hidden_calculation/makedict/after.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/04_5hidden_calculation/makedict/base.json b/tests/dictionaries/04_5hidden_calculation/makedict/base.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5hidden_calculation/makedict/before.json b/tests/dictionaries/04_5hidden_calculation/makedict/before.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10check_valid_differ_add/makedict/mandatory.json b/tests/dictionaries/04_5hidden_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_valid_differ_add/makedict/mandatory.json rename to tests/dictionaries/04_5hidden_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/04_5hidden_calculation/tiramisu/base.py b/tests/dictionaries/04_5hidden_calculation/tiramisu/base.py new file mode 100644 index 000000000..4e2a24f2d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="the condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_4 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5hidden_calculation/tiramisu/multi.py b/tests/dictionaries/04_5hidden_calculation/tiramisu/multi.py new file mode 100644 index 000000000..23ada7a3a --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation/tiramisu/multi.py @@ -0,0 +1,26 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_1.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_1.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_2.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_2.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="the condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="condition", doc="the condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_variable_relative/__init__.py b/tests/dictionaries/04_5hidden_calculation2/__init__.py similarity index 100% rename from tests/dictionaries/10check_variable_relative/__init__.py rename to tests/dictionaries/04_5hidden_calculation2/__init__.py diff --git a/tests/dictionaries/04_5hidden_calculation2/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5hidden_calculation2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..da9a0af20 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/dictionaries/rougail/00-base.yml @@ -0,0 +1,31 @@ +--- +version: '1.1' +condition: "no" # a condition +var1: + description: a first variable + hidden: + type: jinja + jinja: | + {% if _.condition != "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ _.condition }} + description: the value of condition +var2: + description: a second variable + hidden: + type: jinja + jinja: | + {% if rougail.condition != "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ rougail.condition }} + description: the value of condition diff --git a/tests/dictionaries/04_5hidden_calculation2/makedict/after.json b/tests/dictionaries/04_5hidden_calculation2/makedict/after.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/04_5hidden_calculation2/makedict/base.json b/tests/dictionaries/04_5hidden_calculation2/makedict/base.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5hidden_calculation2/makedict/before.json b/tests/dictionaries/04_5hidden_calculation2/makedict/before.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10check_valid_differ_removecheck/makedict/mandatory.json b/tests/dictionaries/04_5hidden_calculation2/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_valid_differ_removecheck/makedict/mandatory.json rename to tests/dictionaries/04_5hidden_calculation2/makedict/mandatory.json diff --git a/tests/dictionaries/04_5hidden_calculation2/tiramisu/base.py b/tests/dictionaries/04_5hidden_calculation2/tiramisu/base.py new file mode 100644 index 000000000..e6e3d97e0 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/tiramisu/base.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_4 = 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), 'rougail.condition': ParamOption(option_2)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5hidden_calculation2/tiramisu/multi.py b/tests/dictionaries/04_5hidden_calculation2/tiramisu/multi.py new file mode 100644 index 000000000..54efb369e --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation2/tiramisu/multi.py @@ -0,0 +1,30 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_1.rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_1.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_1.rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_2.rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var1'] = "{% if _.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_2.rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var2'] = "{% if rougail.condition != \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10disabled_with_variable/__init__.py b/tests/dictionaries/04_5hidden_calculation_default_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10disabled_with_variable/__init__.py rename to tests/dictionaries/04_5hidden_calculation_default_calculation/__init__.py diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5hidden_calculation_default_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..d074f5c20 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,31 @@ +--- +version: '1.1' +condition: "no" # a condition +var1: + description: a first variable + hidden: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ _.condition }} + description: returns the condition value +var2: + description: a second variable + hidden: + type: jinja + jinja: | + {% if rougail.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes + default: + type: jinja + jinja: | + {{ rougail.condition }} + description: returns the condition value diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/after.json b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/after.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/base.json b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/base.json new file mode 100644 index 000000000..b6e64931b --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition": "no", + "rougail.var1": "no", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/before.json b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/before.json new file mode 100644 index 000000000..dabe6959d --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10check_valid_jinja/makedict/mandatory.json b/tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10check_valid_jinja/makedict/mandatory.json rename to tests/dictionaries/04_5hidden_calculation_default_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/base.py b/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/base.py new file mode 100644 index 000000000..c5ee32f4f --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/base.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_4 = 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), 'rougail.condition': ParamOption(option_2)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/multi.py b/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/multi.py new file mode 100644 index 000000000..ed2911ff8 --- /dev/null +++ b/tests/dictionaries/04_5hidden_calculation_default_calculation/tiramisu/multi.py @@ -0,0 +1,30 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_1.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_1.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_1.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_1.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var1'] = "{{ _.condition }}\n" +dict_env['hidden_2.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var1'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['default_2.rougail.var2'] = "{{ rougail.condition }}\n" +dict_env['hidden_2.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.var2'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var1", doc="a first variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +option_10 = StrOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)})), properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10disabled_with_variable2/__init__.py b/tests/dictionaries/04_5validators/__init__.py similarity index 100% rename from tests/dictionaries/10disabled_with_variable2/__init__.py rename to tests/dictionaries/04_5validators/__init__.py diff --git a/tests/dictionaries/04_5validators/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5validators/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..332fadd8c --- /dev/null +++ b/tests/dictionaries/04_5validators/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +int: + description: A number + type: number + validators: + - type: jinja + jinja: | + {% if _.int > 100 %} + value is too high + {% endif %} + description: the max value is 100 diff --git a/tests/dictionaries/04_5validators/makedict/after.json b/tests/dictionaries/04_5validators/makedict/after.json new file mode 100644 index 000000000..c13b17de0 --- /dev/null +++ b/tests/dictionaries/04_5validators/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.int": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators/makedict/base.json b/tests/dictionaries/04_5validators/makedict/base.json new file mode 100644 index 000000000..f6f915662 --- /dev/null +++ b/tests/dictionaries/04_5validators/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.int": null +} diff --git a/tests/dictionaries/04_5validators/makedict/before.json b/tests/dictionaries/04_5validators/makedict/before.json new file mode 100644 index 000000000..c13b17de0 --- /dev/null +++ b/tests/dictionaries/04_5validators/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.int": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators/makedict/mandatory.json b/tests/dictionaries/04_5validators/makedict/mandatory.json new file mode 100644 index 000000000..448b0b3c1 --- /dev/null +++ b/tests/dictionaries/04_5validators/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.int"] \ No newline at end of file diff --git a/tests/dictionaries/04_5validators/tiramisu/base.py b/tests/dictionaries/04_5validators/tiramisu/base.py new file mode 100644 index 000000000..7f70069d7 --- /dev/null +++ b/tests/dictionaries/04_5validators/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.int'] = "{% if _.int > 100 %}\nvalue is too high\n{% endif %}\n" +option_2 = IntOption(name="int", doc="A number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators/tiramisu/multi.py b/tests/dictionaries/04_5validators/tiramisu/multi.py new file mode 100644 index 000000000..f79e4ebe2 --- /dev/null +++ b/tests/dictionaries/04_5validators/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.int'] = "{% if _.int > 100 %}\nvalue is too high\n{% endif %}\n" +dict_env['validators_2.rougail.int'] = "{% if _.int > 100 %}\nvalue is too high\n{% endif %}\n" +option_3 = IntOption(name="int", doc="A number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = IntOption(name="int", doc="A number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10disabled_with_variable_relative/__init__.py b/tests/dictionaries/04_5validators_differ/__init__.py similarity index 100% rename from tests/dictionaries/10disabled_with_variable_relative/__init__.py rename to tests/dictionaries/04_5validators_differ/__init__.py diff --git a/tests/dictionaries/04_5validators_differ/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5validators_differ/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..358f631bb --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +var1: + description: a first variable + type: string + default: oui + validators: + - type: jinja + jinja: | + {% if _.var1 == _.var2 %} + var1 must be different than var2 + {% endif %} + description: var1 must be different than var2 +var2: "no" # A second variable diff --git a/tests/dictionaries/04_5validators_differ/makedict/after.json b/tests/dictionaries/04_5validators_differ/makedict/after.json new file mode 100644 index 000000000..5446dd7b1 --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "oui" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/04_5validators_differ/makedict/base.json b/tests/dictionaries/04_5validators_differ/makedict/base.json new file mode 100644 index 000000000..204ef25f6 --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "oui", + "rougail.var2": "no" +} diff --git a/tests/dictionaries/04_5validators_differ/makedict/before.json b/tests/dictionaries/04_5validators_differ/makedict/before.json new file mode 100644 index 000000000..5446dd7b1 --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "oui" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10disabled_with_variable/makedict/mandatory.json b/tests/dictionaries/04_5validators_differ/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable/makedict/mandatory.json rename to tests/dictionaries/04_5validators_differ/makedict/mandatory.json diff --git a/tests/dictionaries/04_5validators_differ/tiramisu/base.py b/tests/dictionaries/04_5validators_differ/tiramisu/base.py new file mode 100644 index 000000000..fce69cacc --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.var1'] = "{% if _.var1 == _.var2 %}\nvar1 must be different than var2\n{% endif %}\n" +option_3 = StrOption(name="var2", doc="A second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_2 = StrOption(name="var1", doc="a first variable", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var1': ParamSelfOption(whole=False), '_.var2': ParamOption(option_3)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators_differ/tiramisu/multi.py b/tests/dictionaries/04_5validators_differ/tiramisu/multi.py new file mode 100644 index 000000000..65e208a9b --- /dev/null +++ b/tests/dictionaries/04_5validators_differ/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.var1'] = "{% if _.var1 == _.var2 %}\nvar1 must be different than var2\n{% endif %}\n" +dict_env['validators_2.rougail.var1'] = "{% if _.var1 == _.var2 %}\nvar1 must be different than var2\n{% endif %}\n" +option_4 = StrOption(name="var2", doc="A second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var1", doc="a first variable", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var1': ParamSelfOption(whole=False), '_.var2': ParamOption(option_4)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var2", doc="A second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var1", doc="a first variable", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var1': ParamSelfOption(whole=False), '_.var2': ParamOption(option_8)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10fill/__init__.py b/tests/dictionaries/04_5validators_in_network/__init__.py similarity index 100% rename from tests/dictionaries/10fill/__init__.py rename to tests/dictionaries/04_5validators_in_network/__init__.py diff --git a/tests/dictionaries/04_5validators_in_network/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5validators_in_network/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..76aa7e5c8 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/dictionaries/rougail/00-base.yml @@ -0,0 +1,18 @@ +--- +version: '1.1' +network_address_eth0: + description: Network address + type: network +netmask_address_eth0: + description: Network address + type: netmask +ip_address: + description: an IP + type: ip + validators: + - type: jinja + jinja: | + {% if not _.ip_address | valid_in_network(_.network_address_eth0, _.netmask_address_eth0) %} + {{ _.ip_address }} is not in network {{ _.network_address_eth0 }}/{{ _.netmask_address_eth0 }} + {% endif %} + description: check if IP in the previous network diff --git a/tests/dictionaries/04_5validators_in_network/makedict/after.json b/tests/dictionaries/04_5validators_in_network/makedict/after.json new file mode 100644 index 000000000..702e638fe --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.netmask_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.ip_address": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_in_network/makedict/base.json b/tests/dictionaries/04_5validators_in_network/makedict/base.json new file mode 100644 index 000000000..13d99539b --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.network_address_eth0": null, + "rougail.netmask_address_eth0": null, + "rougail.ip_address": null +} diff --git a/tests/dictionaries/04_5validators_in_network/makedict/before.json b/tests/dictionaries/04_5validators_in_network/makedict/before.json new file mode 100644 index 000000000..702e638fe --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.netmask_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.ip_address": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_in_network/makedict/mandatory.json b/tests/dictionaries/04_5validators_in_network/makedict/mandatory.json new file mode 100644 index 000000000..f0e80034a --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.network_address_eth0", "rougail.netmask_address_eth0", "rougail.ip_address"] \ No newline at end of file diff --git a/tests/dictionaries/04_5validators_in_network/tiramisu/base.py b/tests/dictionaries/04_5validators_in_network/tiramisu/base.py new file mode 100644 index 000000000..423be17b4 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0, _.netmask_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}/{{ _.netmask_address_eth0 }}\n{% endif %}\n" +option_2 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_3 = NetmaskOption(name="netmask_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_4 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.netmask_address_eth0': ParamOption(option_3), '_.network_address_eth0': ParamOption(option_2)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators_in_network/tiramisu/multi.py b/tests/dictionaries/04_5validators_in_network/tiramisu/multi.py new file mode 100644 index 000000000..ad9856784 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0, _.netmask_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}/{{ _.netmask_address_eth0 }}\n{% endif %}\n" +dict_env['validators_2.rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0, _.netmask_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}/{{ _.netmask_address_eth0 }}\n{% endif %}\n" +option_3 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_4 = NetmaskOption(name="netmask_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_5 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.netmask_address_eth0': ParamOption(option_4), '_.network_address_eth0': ParamOption(option_3)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_9 = NetmaskOption(name="netmask_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_10 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.netmask_address_eth0': ParamOption(option_9), '_.network_address_eth0': ParamOption(option_8)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10fill_optional/__init__.py b/tests/dictionaries/04_5validators_in_network_cidr/__init__.py similarity index 100% rename from tests/dictionaries/10fill_optional/__init__.py rename to tests/dictionaries/04_5validators_in_network_cidr/__init__.py diff --git a/tests/dictionaries/04_5validators_in_network_cidr/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5validators_in_network_cidr/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..443d5215d --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/dictionaries/rougail/00-base.yml @@ -0,0 +1,15 @@ +--- +version: '1.1' +network_address_eth0: + description: Network address + type: cidr +ip_address: + description: an IP + type: ip + validators: + - type: jinja + jinja: | + {% if not _.ip_address | valid_in_network(_.network_address_eth0) %} + {{ _.ip_address }} is not in network {{ _.network_address_eth0 }} + {% endif %} + description: this IP must be in network diff --git a/tests/dictionaries/04_5validators_in_network_cidr/makedict/after.json b/tests/dictionaries/04_5validators_in_network_cidr/makedict/after.json new file mode 100644 index 000000000..ce33853c2 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.ip_address": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_in_network_cidr/makedict/base.json b/tests/dictionaries/04_5validators_in_network_cidr/makedict/base.json new file mode 100644 index 000000000..a2384ff96 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.network_address_eth0": null, + "rougail.ip_address": null +} diff --git a/tests/dictionaries/04_5validators_in_network_cidr/makedict/before.json b/tests/dictionaries/04_5validators_in_network_cidr/makedict/before.json new file mode 100644 index 000000000..ce33853c2 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.ip_address": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_in_network_cidr/makedict/mandatory.json b/tests/dictionaries/04_5validators_in_network_cidr/makedict/mandatory.json new file mode 100644 index 000000000..fba53c449 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.network_address_eth0", "rougail.ip_address"] \ No newline at end of file diff --git a/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/base.py b/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/base.py new file mode 100644 index 000000000..157131e24 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}\n{% endif %}\n" +option_2 = IPOption(name="network_address_eth0", doc="Network address", cidr=True, properties=frozenset({"basic", "mandatory"})) +option_3 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_2)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/multi.py b/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/multi.py new file mode 100644 index 000000000..61ed09278 --- /dev/null +++ b/tests/dictionaries/04_5validators_in_network_cidr/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}\n{% endif %}\n" +dict_env['validators_2.rougail.ip_address'] = "{% if not _.ip_address | valid_in_network(_.network_address_eth0) %}\n{{ _.ip_address }} is not in network {{ _.network_address_eth0 }}\n{% endif %}\n" +option_3 = IPOption(name="network_address_eth0", doc="Network address", cidr=True, properties=frozenset({"basic", "mandatory"})) +option_4 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_3)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = IPOption(name="network_address_eth0", doc="Network address", cidr=True, properties=frozenset({"basic", "mandatory"})) +option_8 = IPOption(name="ip_address", doc="an IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.ip_address"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.ip_address': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_7)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10fill_quote/__init__.py b/tests/dictionaries/04_5validators_ipnetmask/__init__.py similarity index 100% rename from tests/dictionaries/10fill_quote/__init__.py rename to tests/dictionaries/04_5validators_ipnetmask/__init__.py diff --git a/tests/dictionaries/04_5validators_ipnetmask/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_5validators_ipnetmask/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..156c0582b --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/dictionaries/rougail/00-base.yml @@ -0,0 +1,15 @@ +--- +version: '1.1' +network_address_eth0: + description: Network address + type: network +netmask_address_eth0: + description: Netmask address + type: netmask + validators: + - type: jinja + jinja: | + {% if not _.netmask_address_eth0 | valid_in_network(_.network_address_eth0) %} + {{ _.netmask_address_eth0 }} is not a netmask for network {{ _.network_address_eth0 }} + {% endif %} + description: this mask is possible for the network diff --git a/tests/dictionaries/04_5validators_ipnetmask/makedict/after.json b/tests/dictionaries/04_5validators_ipnetmask/makedict/after.json new file mode 100644 index 000000000..5d0a339e1 --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.netmask_address_eth0": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_ipnetmask/makedict/base.json b/tests/dictionaries/04_5validators_ipnetmask/makedict/base.json new file mode 100644 index 000000000..c3268f778 --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.network_address_eth0": null, + "rougail.netmask_address_eth0": null +} diff --git a/tests/dictionaries/04_5validators_ipnetmask/makedict/before.json b/tests/dictionaries/04_5validators_ipnetmask/makedict/before.json new file mode 100644 index 000000000..5d0a339e1 --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.network_address_eth0": { + "owner": "default", + "value": null + }, + "rougail.netmask_address_eth0": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/04_5validators_ipnetmask/makedict/mandatory.json b/tests/dictionaries/04_5validators_ipnetmask/makedict/mandatory.json new file mode 100644 index 000000000..6487ac2bc --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.network_address_eth0", "rougail.netmask_address_eth0"] \ No newline at end of file diff --git a/tests/dictionaries/04_5validators_ipnetmask/tiramisu/base.py b/tests/dictionaries/04_5validators_ipnetmask/tiramisu/base.py new file mode 100644 index 000000000..94cd19736 --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.netmask_address_eth0'] = "{% if not _.netmask_address_eth0 | valid_in_network(_.network_address_eth0) %}\n{{ _.netmask_address_eth0 }} is not a netmask for network {{ _.network_address_eth0 }}\n{% endif %}\n" +option_2 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_3 = NetmaskOption(name="netmask_address_eth0", doc="Netmask address", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.netmask_address_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.netmask_address_eth0': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_2)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_5validators_ipnetmask/tiramisu/multi.py b/tests/dictionaries/04_5validators_ipnetmask/tiramisu/multi.py new file mode 100644 index 000000000..910f2554d --- /dev/null +++ b/tests/dictionaries/04_5validators_ipnetmask/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.netmask_address_eth0'] = "{% if not _.netmask_address_eth0 | valid_in_network(_.network_address_eth0) %}\n{{ _.netmask_address_eth0 }} is not a netmask for network {{ _.network_address_eth0 }}\n{% endif %}\n" +dict_env['validators_2.rougail.netmask_address_eth0'] = "{% if not _.netmask_address_eth0 | valid_in_network(_.network_address_eth0) %}\n{{ _.netmask_address_eth0 }} is not a netmask for network {{ _.network_address_eth0 }}\n{% endif %}\n" +option_3 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_4 = NetmaskOption(name="netmask_address_eth0", doc="Netmask address", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.netmask_address_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.netmask_address_eth0': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_3)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = NetworkOption(name="network_address_eth0", doc="Network address", properties=frozenset({"basic", "mandatory"})) +option_8 = NetmaskOption(name="netmask_address_eth0", doc="Netmask address", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.netmask_address_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.netmask_address_eth0': ParamSelfOption(whole=False), '_.network_address_eth0': ParamOption(option_7)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10fill_target_information/__init__.py b/tests/dictionaries/04_7validators_variable_optional/__init__.py similarity index 100% rename from tests/dictionaries/10fill_target_information/__init__.py rename to tests/dictionaries/04_7validators_variable_optional/__init__.py diff --git a/tests/dictionaries/04_7validators_variable_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/04_7validators_variable_optional/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..289b30bc2 --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/dictionaries/rougail/00-base.yml @@ -0,0 +1,30 @@ +--- +version: '1.1' +general: # a family + int: + description: a first number + type: number + validators: + - type: jinja + jinja: | + {% if _.int == int2 %} + int and int2 must be different + {% endif %} + params: + int2: + type: variable + variable: _.int2 + optional: true + description: int and int2 must be different + - type: jinja + jinja: | + {% if _.int == int3 %} + int and int3 must be different + {% endif %} + params: + int3: + type: variable + variable: _.int3 + optional: true + description: int and int3 must be different + int2: 1 # a second number diff --git a/tests/dictionaries/04_7validators_variable_optional/makedict/after.json b/tests/dictionaries/04_7validators_variable_optional/makedict/after.json new file mode 100644 index 000000000..78a98c4ab --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.general.int": { + "owner": "default", + "value": null + }, + "rougail.general.int2": { + "owner": "default", + "value": 1 + } +} diff --git a/tests/dictionaries/04_7validators_variable_optional/makedict/base.json b/tests/dictionaries/04_7validators_variable_optional/makedict/base.json new file mode 100644 index 000000000..3cc39015e --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.general.int": null, + "rougail.general.int2": 1 +} diff --git a/tests/dictionaries/04_7validators_variable_optional/makedict/before.json b/tests/dictionaries/04_7validators_variable_optional/makedict/before.json new file mode 100644 index 000000000..78a98c4ab --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.general.int": { + "owner": "default", + "value": null + }, + "rougail.general.int2": { + "owner": "default", + "value": 1 + } +} diff --git a/tests/dictionaries/04_7validators_variable_optional/makedict/mandatory.json b/tests/dictionaries/04_7validators_variable_optional/makedict/mandatory.json new file mode 100644 index 000000000..42ac51a7f --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.general.int"] \ No newline at end of file diff --git a/tests/dictionaries/04_7validators_variable_optional/tiramisu/base.py b/tests/dictionaries/04_7validators_variable_optional/tiramisu/base.py new file mode 100644 index 000000000..232525edd --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.general.int'] = "{% if _.int == int2 %}\nint and int2 must be different\n{% endif %}\n" +dict_env['validators_rougail.general.int_0'] = "{% if _.int == int3 %}\nint and int3 must be different\n{% endif %}\n" +option_4 = IntOption(name="int2", doc="a second number", default=1, properties=frozenset({"mandatory", "standard"})) +option_3 = IntOption(name="int", doc="a first number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'int2': ParamOption(option_4), '_.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="general", doc="a family", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/04_7validators_variable_optional/tiramisu/multi.py b/tests/dictionaries/04_7validators_variable_optional/tiramisu/multi.py new file mode 100644 index 000000000..fdec4138e --- /dev/null +++ b/tests/dictionaries/04_7validators_variable_optional/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.general.int'] = "{% if _.int == int2 %}\nint and int2 must be different\n{% endif %}\n" +dict_env['validators_1.rougail.general.int_0'] = "{% if _.int == int3 %}\nint and int3 must be different\n{% endif %}\n" +dict_env['validators_2.rougail.general.int'] = "{% if _.int == int2 %}\nint and int2 must be different\n{% endif %}\n" +dict_env['validators_2.rougail.general.int_0'] = "{% if _.int == int3 %}\nint and int3 must be different\n{% endif %}\n" +option_5 = IntOption(name="int2", doc="a second number", default=1, properties=frozenset({"mandatory", "standard"})) +option_4 = IntOption(name="int", doc="a first number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'int2': ParamOption(option_5), '_.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = OptionDescription(name="general", doc="a family", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = IntOption(name="int2", doc="a second number", default=1, properties=frozenset({"mandatory", "standard"})) +option_9 = IntOption(name="int", doc="a first number", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'int2': ParamOption(option_10), '_.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.int': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) +optiondescription_8 = OptionDescription(name="general", doc="a family", children=[option_9, option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10fill_target_optional/__init__.py b/tests/dictionaries/05_0multi_not_uniq/__init__.py similarity index 100% rename from tests/dictionaries/10fill_target_optional/__init__.py rename to tests/dictionaries/05_0multi_not_uniq/__init__.py diff --git a/tests/dictionaries/05_0multi_not_uniq/dictionaries/rougail/00-base.yml b/tests/dictionaries/05_0multi_not_uniq/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6581fdfb9 --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +var1: + description: a variable + unique: false + default: + - non diff --git a/tests/dictionaries/05_0multi_not_uniq/makedict/after.json b/tests/dictionaries/05_0multi_not_uniq/makedict/after.json new file mode 100644 index 000000000..0e9c2c5ba --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/makedict/after.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + "non" + ] + } +} diff --git a/tests/dictionaries/05_0multi_not_uniq/makedict/base.json b/tests/dictionaries/05_0multi_not_uniq/makedict/base.json new file mode 100644 index 000000000..01a632646 --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": [ + "non" + ] +} diff --git a/tests/dictionaries/05_0multi_not_uniq/makedict/before.json b/tests/dictionaries/05_0multi_not_uniq/makedict/before.json new file mode 100644 index 000000000..0e9c2c5ba --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/makedict/before.json @@ -0,0 +1,8 @@ +{ + "rougail.var1": { + "owner": "default", + "value": [ + "non" + ] + } +} diff --git a/tests/dictionaries/10disabled_with_variable2/makedict/mandatory.json b/tests/dictionaries/05_0multi_not_uniq/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable2/makedict/mandatory.json rename to tests/dictionaries/05_0multi_not_uniq/makedict/mandatory.json diff --git a/tests/dictionaries/05_0multi_not_uniq/tiramisu/base.py b/tests/dictionaries/05_0multi_not_uniq/tiramisu/base.py new file mode 100644 index 000000000..5b72b84c6 --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "notunique", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/05_0multi_not_uniq/tiramisu/multi.py b/tests/dictionaries/05_0multi_not_uniq/tiramisu/multi.py new file mode 100644 index 000000000..8b41fe89d --- /dev/null +++ b/tests/dictionaries/05_0multi_not_uniq/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "notunique", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="var1", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "notunique", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/__init__.py b/tests/dictionaries/05_0multi_uniq/__init__.py similarity index 100% rename from tests/dictionaries/10frozenifin_unknown_valid_enum_number/__init__.py rename to tests/dictionaries/05_0multi_uniq/__init__.py diff --git a/tests/dictionaries/05_0multi_uniq/dictionaries/rougail/00-base.yml b/tests/dictionaries/05_0multi_uniq/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f4f964d94 --- /dev/null +++ b/tests/dictionaries/05_0multi_uniq/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +variable: + description: a variable + unique: true + default: + - non diff --git a/tests/dictionaries/01base_multi/makedict/after.json b/tests/dictionaries/05_0multi_uniq/makedict/after.json similarity index 100% rename from tests/dictionaries/01base_multi/makedict/after.json rename to tests/dictionaries/05_0multi_uniq/makedict/after.json diff --git a/tests/dictionaries/01base_multi/makedict/base.json b/tests/dictionaries/05_0multi_uniq/makedict/base.json similarity index 100% rename from tests/dictionaries/01base_multi/makedict/base.json rename to tests/dictionaries/05_0multi_uniq/makedict/base.json diff --git a/tests/dictionaries/01base_multi/makedict/before.json b/tests/dictionaries/05_0multi_uniq/makedict/before.json similarity index 100% rename from tests/dictionaries/01base_multi/makedict/before.json rename to tests/dictionaries/05_0multi_uniq/makedict/before.json diff --git a/tests/dictionaries/10disabled_with_variable_relative/makedict/mandatory.json b/tests/dictionaries/05_0multi_uniq/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10disabled_with_variable_relative/makedict/mandatory.json rename to tests/dictionaries/05_0multi_uniq/makedict/mandatory.json diff --git a/tests/dictionaries/01base_multi_uniq/tiramisu/base.py b/tests/dictionaries/05_0multi_uniq/tiramisu/base.py similarity index 100% rename from tests/dictionaries/01base_multi_uniq/tiramisu/base.py rename to tests/dictionaries/05_0multi_uniq/tiramisu/base.py diff --git a/tests/dictionaries/01base_multi_uniq/tiramisu/multi.py b/tests/dictionaries/05_0multi_uniq/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/01base_multi_uniq/tiramisu/multi.py rename to tests/dictionaries/05_0multi_uniq/tiramisu/multi.py diff --git a/tests/dictionaries/10autosave_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/10autosave_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index 6a71c09ac..000000000 --- a/tests/dictionaries/10autosave_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ -server_deployed: - type: boolean -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - autosavevar: - type: string - description: autosave variable - hidden: true - auto_save: true - default: - type: jinja - jinja: '{{ "oui" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10autosave_hidden/makedict/after.json b/tests/dictionaries/10autosave_hidden/makedict/after.json deleted file mode 100644 index 8319f7adb..000000000 --- a/tests/dictionaries/10autosave_hidden/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.server_deployed": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.autosavevar": { - "owner": "forced", - "value": "oui" - } -} diff --git a/tests/dictionaries/10autosave_hidden/makedict/base.json b/tests/dictionaries/10autosave_hidden/makedict/base.json deleted file mode 100644 index 7e87c0831..000000000 --- a/tests/dictionaries/10autosave_hidden/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.server_deployed": true, - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.autosavevar": "oui" -} diff --git a/tests/dictionaries/10autosave_hidden/makedict/before.json b/tests/dictionaries/10autosave_hidden/makedict/before.json deleted file mode 100644 index 8f22388a2..000000000 --- a/tests/dictionaries/10autosave_hidden/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.server_deployed": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.autosavevar": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10autosave_hidden/tiramisu/base.py b/tests/dictionaries/10autosave_hidden/tiramisu/base.py deleted file mode 100644 index 0291982dd..000000000 --- a/tests/dictionaries/10autosave_hidden/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -option_2 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", "frozen", "hidden"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10autosave_hidden/tiramisu/multi.py b/tests/dictionaries/10autosave_hidden/tiramisu/multi.py deleted file mode 100644 index 61fa0870a..000000000 --- a/tests/dictionaries/10autosave_hidden/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -dict_env['default_2.rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -option_3 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", "frozen", "hidden"})) -optiondescription_4 = OptionDescription(name="general", doc="général", children=[option_5, option_6], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", "frozen", "hidden"})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11, option_12], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10check_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 93556cede..000000000 --- a/tests/dictionaries/10check_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: b - int: - type: number - description: No change - params: - min_number: 0 - max_number: 100 - mandatory: false diff --git a/tests/dictionaries/10check_base/makedict/after.json b/tests/dictionaries/10check_base/makedict/after.json deleted file mode 100644 index 8f6bb3c13..000000000 --- a/tests/dictionaries/10check_base/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_base/makedict/base.json b/tests/dictionaries/10check_base/makedict/base.json deleted file mode 100644 index 46bb5ef46..000000000 --- a/tests/dictionaries/10check_base/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "b", - "rougail.general.int": null -} diff --git a/tests/dictionaries/10check_base/makedict/before.json b/tests/dictionaries/10check_base/makedict/before.json deleted file mode 100644 index 8f6bb3c13..000000000 --- a/tests/dictionaries/10check_base/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_base/tiramisu/base.py b/tests/dictionaries/10check_base/tiramisu/base.py deleted file mode 100644 index 3104f5cb0..000000000 --- a/tests/dictionaries/10check_base/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_4 = IntOption(name="int", doc="No change", min_number=0, max_number=100, properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_base/tiramisu/multi.py b/tests/dictionaries/10check_base/tiramisu/multi.py deleted file mode 100644 index 6bf5d39ee..000000000 --- a/tests/dictionaries/10check_base/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_5 = IntOption(name="int", doc="No change", min_number=0, max_number=100, properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_10 = IntOption(name="int", doc="No change", min_number=0, max_number=100, properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_no_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_no_param/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1d2eec8d5..000000000 --- a/tests/dictionaries/10check_no_param/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: b - int: - type: number - description: No change - validators: - - type: jinja - jinja: '{{ rougail.general.int | valid_lower }}' - mandatory: false diff --git a/tests/dictionaries/10check_no_param/makedict/after.json b/tests/dictionaries/10check_no_param/makedict/after.json deleted file mode 100644 index 8f6bb3c13..000000000 --- a/tests/dictionaries/10check_no_param/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_no_param/makedict/base.json b/tests/dictionaries/10check_no_param/makedict/base.json deleted file mode 100644 index 46bb5ef46..000000000 --- a/tests/dictionaries/10check_no_param/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "b", - "rougail.general.int": null -} diff --git a/tests/dictionaries/10check_no_param/makedict/before.json b/tests/dictionaries/10check_no_param/makedict/before.json deleted file mode 100644 index 8f6bb3c13..000000000 --- a/tests/dictionaries/10check_no_param/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_no_param/tiramisu/base.py b/tests/dictionaries/10check_no_param/tiramisu/base.py deleted file mode 100644 index 062a82ed3..000000000 --- a/tests/dictionaries/10check_no_param/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.int'] = "{{ rougail.general.int | valid_lower }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_4 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_no_param/tiramisu/multi.py b/tests/dictionaries/10check_no_param/tiramisu/multi.py deleted file mode 100644 index b4e2c3e03..000000000 --- a/tests/dictionaries/10check_no_param/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.int'] = "{{ rougail.general.int | valid_lower }}" -dict_env['validators_2.rougail.general.int'] = "{{ rougail.general.int | valid_lower }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_5 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_10 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_optional/dictionaries/rougail/00-base.yml deleted file mode 100644 index 23371eb9f..000000000 --- a/tests/dictionaries/10check_optional/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: b - int: - type: number - description: No change - validators: - - type: jinja - jinja: '{{ rougail.general.int | valid_differ(rougail.general.int2) }}' - params: - rougail.general.int2: - type: variable - variable: rougail.general.int2 - optional: true - - type: jinja - jinja: '{{ rougail.general.int | valid_differ(__int3) }}' - params: - __int3: - type: variable - variable: rougail.general.int3 - optional: true - mandatory: false - int2: - type: number - description: No change - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10check_optional/makedict/after.json b/tests/dictionaries/10check_optional/makedict/after.json deleted file mode 100644 index 2645e635e..000000000 --- a/tests/dictionaries/10check_optional/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - }, - "rougail.general.int2": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_optional/makedict/base.json b/tests/dictionaries/10check_optional/makedict/base.json deleted file mode 100644 index 20ba7242c..000000000 --- a/tests/dictionaries/10check_optional/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "b", - "rougail.general.int": null, - "rougail.general.int2": null -} diff --git a/tests/dictionaries/10check_optional/makedict/before.json b/tests/dictionaries/10check_optional/makedict/before.json deleted file mode 100644 index 2645e635e..000000000 --- a/tests/dictionaries/10check_optional/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - }, - "rougail.general.int": { - "owner": "default", - "value": null - }, - "rougail.general.int2": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_optional/tiramisu/base.py b/tests/dictionaries/10check_optional/tiramisu/base.py deleted file mode 100644 index 413fa36a1..000000000 --- a/tests/dictionaries/10check_optional/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.int'] = "{{ rougail.general.int | valid_differ(rougail.general.int2) }}" -dict_env['validators_rougail.general.int_0'] = "{{ rougail.general.int | valid_differ(__int3) }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_5 = IntOption(name="int2", doc="No change", properties=frozenset({"standard"})) -option_4 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int2': ParamOption(option_5), 'rougail.general.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_optional/tiramisu/multi.py b/tests/dictionaries/10check_optional/tiramisu/multi.py deleted file mode 100644 index 2656aaf6f..000000000 --- a/tests/dictionaries/10check_optional/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.int'] = "{{ rougail.general.int | valid_differ(rougail.general.int2) }}" -dict_env['validators_1.rougail.general.int_0'] = "{{ rougail.general.int | valid_differ(__int3) }}" -dict_env['validators_2.rougail.general.int'] = "{{ rougail.general.int | valid_differ(rougail.general.int2) }}" -dict_env['validators_2.rougail.general.int_0'] = "{{ rougail.general.int | valid_differ(__int3) }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_6 = IntOption(name="int2", doc="No change", properties=frozenset({"standard"})) -option_5 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int2': ParamOption(option_6), 'rougail.general.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="b", properties=frozenset({"mandatory", "standard"})) -option_12 = IntOption(name="int2", doc="No change", properties=frozenset({"standard"})) -option_11 = IntOption(name="int", doc="No change", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.int"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int2': ParamOption(option_12), 'rougail.general.int': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.int_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.int': ParamSelfOption(whole=False)}))], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10check_valid_differ/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_differ/dictionaries/rougail/00-base.yml deleted file mode 100644 index e1e723960..000000000 --- a/tests/dictionaries/10check_valid_differ/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - validators: - - type: jinja - jinja: | - {{ rougail.general.mode_conteneur_actif | valid_differ(rougail.general.mode_conteneur_actif1) }} - mode_conteneur_actif1: - type: string - description: No change - default: non diff --git a/tests/dictionaries/10check_valid_differ/makedict/after.json b/tests/dictionaries/10check_valid_differ/makedict/after.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/10check_valid_differ/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10check_valid_differ/makedict/base.json b/tests/dictionaries/10check_valid_differ/makedict/base.json deleted file mode 100644 index a13f65aab..000000000 --- a/tests/dictionaries/10check_valid_differ/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/10check_valid_differ/makedict/before.json b/tests/dictionaries/10check_valid_differ/makedict/before.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/10check_valid_differ/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10check_valid_differ/tiramisu/base.py b/tests/dictionaries/10check_valid_differ/tiramisu/base.py deleted file mode 100644 index 0facf369d..000000000 --- a/tests/dictionaries/10check_valid_differ/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif | valid_differ(rougail.general.mode_conteneur_actif1) }}\n" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_differ/tiramisu/multi.py b/tests/dictionaries/10check_valid_differ/tiramisu/multi.py deleted file mode 100644 index 51d2a0862..000000000 --- a/tests/dictionaries/10check_valid_differ/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif | valid_differ(rougail.general.mode_conteneur_actif1) }}\n" -dict_env['validators_2.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif | valid_differ(rougail.general.mode_conteneur_actif1) }}\n" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/00-base.yml deleted file mode 100644 index b0a01db0d..000000000 --- a/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - mode_conteneur_actif1: - type: string - description: No change - default: non - mode_conteneur_actif2: - type: string - description: No change - default: non - mode_conteneur_actif3: - type: string - description: No change - default: oui - validators: - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(rougail.general.mode_conteneur_actif1) - }}' -version: '1.0' diff --git a/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/01-base.yml b/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/01-base.yml deleted file mode 100644 index f94328eae..000000000 --- a/tests/dictionaries/10check_valid_differ_add/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -general: - mode_conteneur_actif3: - redefine: true - validators: - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) - }}' - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) - }}' -version: '1.0' diff --git a/tests/dictionaries/10check_valid_differ_add/makedict/after.json b/tests/dictionaries/10check_valid_differ_add/makedict/after.json deleted file mode 100644 index fa95be872..000000000 --- a/tests/dictionaries/10check_valid_differ_add/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10check_valid_differ_add/makedict/base.json b/tests/dictionaries/10check_valid_differ_add/makedict/base.json deleted file mode 100644 index 69769780f..000000000 --- a/tests/dictionaries/10check_valid_differ_add/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "non", - "rougail.general.mode_conteneur_actif3": "oui" -} diff --git a/tests/dictionaries/10check_valid_differ_add/makedict/before.json b/tests/dictionaries/10check_valid_differ_add/makedict/before.json deleted file mode 100644 index fa95be872..000000000 --- a/tests/dictionaries/10check_valid_differ_add/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10check_valid_differ_add/tiramisu/base.py b/tests/dictionaries/10check_valid_differ_add/tiramisu/base.py deleted file mode 100644 index f2fba624f..000000000 --- a/tests/dictionaries/10check_valid_differ_add/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_differ_add/tiramisu/multi.py b/tests/dictionaries/10check_valid_differ_add/tiramisu/multi.py deleted file mode 100644 index 9d5940f37..000000000 --- a/tests/dictionaries/10check_valid_differ_add/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_1.rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -dict_env['validators_2.rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_2.rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/00-base.yml deleted file mode 100644 index b0a01db0d..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - mode_conteneur_actif1: - type: string - description: No change - default: non - mode_conteneur_actif2: - type: string - description: No change - default: non - mode_conteneur_actif3: - type: string - description: No change - default: oui - validators: - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(rougail.general.mode_conteneur_actif1) - }}' -version: '1.0' diff --git a/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/01-base.yml b/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/01-base.yml deleted file mode 100644 index d543b49dc..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,12 +0,0 @@ -general: - mode_conteneur_actif3: - redefine: true - default: oui - validators: - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) - }}' - - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) - }}' -version: '1.0' diff --git a/tests/dictionaries/10check_valid_differ_removecheck/makedict/after.json b/tests/dictionaries/10check_valid_differ_removecheck/makedict/after.json deleted file mode 100644 index fa95be872..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10check_valid_differ_removecheck/makedict/base.json b/tests/dictionaries/10check_valid_differ_removecheck/makedict/base.json deleted file mode 100644 index 69769780f..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "non", - "rougail.general.mode_conteneur_actif3": "oui" -} diff --git a/tests/dictionaries/10check_valid_differ_removecheck/makedict/before.json b/tests/dictionaries/10check_valid_differ_removecheck/makedict/before.json deleted file mode 100644 index fa95be872..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/base.py b/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/base.py deleted file mode 100644 index f2fba624f..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/multi.py b/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/multi.py deleted file mode 100644 index 9d5940f37..000000000 --- a/tests/dictionaries/10check_valid_differ_removecheck/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_1.rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -dict_env['validators_2.rougail.general.mode_conteneur_actif3'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif1) }}" -dict_env['validators_2.rougail.general.mode_conteneur_actif3_0'] = "{{ rougail.general.mode_conteneur_actif3 | valid_differ(__mode_conteneur_actif2) }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="mode_conteneur_actif3", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)})), Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif3_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10check_valid_in_network/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_in_network/dictionaries/rougail/00-base.yml deleted file mode 100644 index ed8efcd91..000000000 --- a/tests/dictionaries/10check_valid_in_network/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - adresse_ip_eth0: - type: ip - params: - private_only: true - warnings_only: true - description: Adresse IP de la carte - mandatory: true - mode: basic - adresse_netmask_eth0: - type: netmask - description: Masque de sous réseau de la carte - mandatory: true - mode: basic - adresse_ip: - type: ip - params: - private_only: true - warnings_only: true - description: IP - mandatory: true - mode: basic - validators: - - type: jinja - jinja: '{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0, rougail.general.adresse_netmask_eth0) }}' diff --git a/tests/dictionaries/10check_valid_in_network/makedict/after.json b/tests/dictionaries/10check_valid_in_network/makedict/after.json deleted file mode 100644 index 1852a5207..000000000 --- a/tests/dictionaries/10check_valid_in_network/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_netmask_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_ip": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_in_network/makedict/base.json b/tests/dictionaries/10check_valid_in_network/makedict/base.json deleted file mode 100644 index dca555a40..000000000 --- a/tests/dictionaries/10check_valid_in_network/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.adresse_ip_eth0": null, - "rougail.general.adresse_netmask_eth0": null, - "rougail.general.adresse_ip": null -} diff --git a/tests/dictionaries/10check_valid_in_network/makedict/before.json b/tests/dictionaries/10check_valid_in_network/makedict/before.json deleted file mode 100644 index 1852a5207..000000000 --- a/tests/dictionaries/10check_valid_in_network/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_netmask_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_ip": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_in_network/makedict/mandatory.json b/tests/dictionaries/10check_valid_in_network/makedict/mandatory.json deleted file mode 100644 index 6ce56349d..000000000 --- a/tests/dictionaries/10check_valid_in_network/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.adresse_ip_eth0", "rougail.general.adresse_netmask_eth0", "rougail.general.adresse_ip"] \ No newline at end of file diff --git a/tests/dictionaries/10check_valid_in_network/tiramisu/base.py b/tests/dictionaries/10check_valid_in_network/tiramisu/base.py deleted file mode 100644 index 526ac9d81..000000000 --- a/tests/dictionaries/10check_valid_in_network/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0, rougail.general.adresse_netmask_eth0) }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -option_5 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", properties=frozenset({"basic", "mandatory"})) -option_6 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_4), 'rougail.general.adresse_netmask_eth0': ParamOption(option_5)}))], allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_in_network/tiramisu/multi.py b/tests/dictionaries/10check_valid_in_network/tiramisu/multi.py deleted file mode 100644 index 45c4a571d..000000000 --- a/tests/dictionaries/10check_valid_in_network/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0, rougail.general.adresse_netmask_eth0) }}" -dict_env['validators_2.rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0, rougail.general.adresse_netmask_eth0) }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -option_6 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", properties=frozenset({"basic", "mandatory"})) -option_7 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_5), 'rougail.general.adresse_netmask_eth0': ParamOption(option_6)}))], allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_12 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -option_13 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", properties=frozenset({"basic", "mandatory"})) -option_14 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_12), 'rougail.general.adresse_netmask_eth0': ParamOption(option_13)}))], allow_reserved=True, private_only=True, warnings_only=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"basic"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10check_valid_in_network_cidr/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_in_network_cidr/dictionaries/rougail/00-base.yml deleted file mode 100644 index 94fa12914..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - adresse_ip_eth0: - type: cidr - description: Adresse IP de la carte - mandatory: true - mode: basic - adresse_ip: - type: ip - description: IP - mandatory: true - mode: basic - validators: - - type: jinja - jinja: | - {{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0) }} diff --git a/tests/dictionaries/10check_valid_in_network_cidr/makedict/after.json b/tests/dictionaries/10check_valid_in_network_cidr/makedict/after.json deleted file mode 100644 index 46238ef16..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_ip": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_in_network_cidr/makedict/base.json b/tests/dictionaries/10check_valid_in_network_cidr/makedict/base.json deleted file mode 100644 index 814a2f1a5..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.adresse_ip_eth0": null, - "rougail.general.adresse_ip": null -} diff --git a/tests/dictionaries/10check_valid_in_network_cidr/makedict/before.json b/tests/dictionaries/10check_valid_in_network_cidr/makedict/before.json deleted file mode 100644 index 46238ef16..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_ip": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_in_network_cidr/makedict/mandatory.json b/tests/dictionaries/10check_valid_in_network_cidr/makedict/mandatory.json deleted file mode 100644 index 6474feb6d..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.adresse_ip_eth0", "rougail.general.adresse_ip"] \ No newline at end of file diff --git a/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/base.py b/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/base.py deleted file mode 100644 index 7b066f27a..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0) }}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", cidr=True, properties=frozenset({"basic", "mandatory"})) -option_5 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_4)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/multi.py b/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/multi.py deleted file mode 100644 index d9764d993..000000000 --- a/tests/dictionaries/10check_valid_in_network_cidr/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0) }}\n" -dict_env['validators_2.rougail.general.adresse_ip'] = "{{ rougail.general.adresse_ip | valid_in_network(rougail.general.adresse_ip_eth0) }}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", cidr=True, properties=frozenset({"basic", "mandatory"})) -option_6 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_5)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_11 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", cidr=True, properties=frozenset({"basic", "mandatory"})) -option_12 = IPOption(name="adresse_ip", doc="IP", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.adresse_ip"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip': ParamSelfOption(whole=False), 'rougail.general.adresse_ip_eth0': ParamOption(option_11)}))], allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10check_valid_ipnetmask/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_ipnetmask/dictionaries/rougail/00-base.yml deleted file mode 100644 index 333b3be27..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - adresse_ip_eth0: - type: ip - description: Adresse IP de la carte - mandatory: true - mode: basic - adresse_netmask_eth0: - type: netmask - description: Masque de sous réseau de la carte - mandatory: true - mode: basic - validators: - - type: jinja - jinja: '{{ rougail.general.adresse_netmask_eth0 | valid_ipnetmask(rougail.general.adresse_ip_eth0) - }}' diff --git a/tests/dictionaries/10check_valid_ipnetmask/makedict/after.json b/tests/dictionaries/10check_valid_ipnetmask/makedict/after.json deleted file mode 100644 index 7b297e37b..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_netmask_eth0": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_ipnetmask/makedict/base.json b/tests/dictionaries/10check_valid_ipnetmask/makedict/base.json deleted file mode 100644 index 145e74244..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.adresse_ip_eth0": null, - "rougail.general.adresse_netmask_eth0": null -} diff --git a/tests/dictionaries/10check_valid_ipnetmask/makedict/before.json b/tests/dictionaries/10check_valid_ipnetmask/makedict/before.json deleted file mode 100644 index 7b297e37b..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.adresse_ip_eth0": { - "owner": "default", - "value": null - }, - "rougail.general.adresse_netmask_eth0": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_valid_ipnetmask/makedict/mandatory.json b/tests/dictionaries/10check_valid_ipnetmask/makedict/mandatory.json deleted file mode 100644 index 8ccfe05e8..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.adresse_ip_eth0", "rougail.general.adresse_netmask_eth0"] \ No newline at end of file diff --git a/tests/dictionaries/10check_valid_ipnetmask/tiramisu/base.py b/tests/dictionaries/10check_valid_ipnetmask/tiramisu/base.py deleted file mode 100644 index 25baf41c3..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.adresse_netmask_eth0'] = "{{ rougail.general.adresse_netmask_eth0 | valid_ipnetmask(rougail.general.adresse_ip_eth0) }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -option_5 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.adresse_netmask_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip_eth0': ParamOption(option_4), 'rougail.general.adresse_netmask_eth0': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_ipnetmask/tiramisu/multi.py b/tests/dictionaries/10check_valid_ipnetmask/tiramisu/multi.py deleted file mode 100644 index 81fa09f08..000000000 --- a/tests/dictionaries/10check_valid_ipnetmask/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.adresse_netmask_eth0'] = "{{ rougail.general.adresse_netmask_eth0 | valid_ipnetmask(rougail.general.adresse_ip_eth0) }}" -dict_env['validators_2.rougail.general.adresse_netmask_eth0'] = "{{ rougail.general.adresse_netmask_eth0 | valid_ipnetmask(rougail.general.adresse_ip_eth0) }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -option_6 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.adresse_netmask_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip_eth0': ParamOption(option_5), 'rougail.general.adresse_netmask_eth0': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_11 = IPOption(name="adresse_ip_eth0", doc="Adresse IP de la carte", allow_reserved=True, properties=frozenset({"basic", "mandatory"})) -option_12 = NetmaskOption(name="adresse_netmask_eth0", doc="Masque de sous réseau de la carte", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.adresse_netmask_eth0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.adresse_ip_eth0': ParamOption(option_11), 'rougail.general.adresse_netmask_eth0': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10check_valid_jinja/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_valid_jinja/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3b821ee0c..000000000 --- a/tests/dictionaries/10check_valid_jinja/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: oui - validators: - - type: jinja - jinja: | - {% if rougail.general.mode_conteneur_actif == rougail.general.mode_conteneur_actif1 %} - the value must be different than "{{ rougail.general.mode_conteneur_actif}}" - {% endif %} - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/10check_valid_jinja/makedict/after.json b/tests/dictionaries/10check_valid_jinja/makedict/after.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/10check_valid_jinja/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10check_valid_jinja/makedict/base.json b/tests/dictionaries/10check_valid_jinja/makedict/base.json deleted file mode 100644 index a13f65aab..000000000 --- a/tests/dictionaries/10check_valid_jinja/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/10check_valid_jinja/makedict/before.json b/tests/dictionaries/10check_valid_jinja/makedict/before.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/10check_valid_jinja/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10check_valid_jinja/tiramisu/base.py b/tests/dictionaries/10check_valid_jinja/tiramisu/base.py deleted file mode 100644 index b37ee8e1b..000000000 --- a/tests/dictionaries/10check_valid_jinja/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif == rougail.general.mode_conteneur_actif1 %}\nthe value must be different than \"{{ rougail.general.mode_conteneur_actif}}\"\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_valid_jinja/tiramisu/multi.py b/tests/dictionaries/10check_valid_jinja/tiramisu/multi.py deleted file mode 100644 index da9f71f0f..000000000 --- a/tests/dictionaries/10check_valid_jinja/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif == rougail.general.mode_conteneur_actif1 %}\nthe value must be different than \"{{ rougail.general.mode_conteneur_actif}}\"\n{% endif %}\n" -dict_env['validators_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif == rougail.general.mode_conteneur_actif1 %}\nthe value must be different than \"{{ rougail.general.mode_conteneur_actif}}\"\n{% endif %}\n" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamSelfOption(whole=False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)}))], properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10check_variable_relative/dictionaries/rougail/00-base.yml b/tests/dictionaries/10check_variable_relative/dictionaries/rougail/00-base.yml deleted file mode 100644 index 393104284..000000000 --- a/tests/dictionaries/10check_variable_relative/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: '1.1' -general: - var: - type: number - validators: - - type: jinja - jinja: | - {% if _.var > 10 %} - to high - {% endif %} diff --git a/tests/dictionaries/10check_variable_relative/makedict/after.json b/tests/dictionaries/10check_variable_relative/makedict/after.json deleted file mode 100644 index 983a136fe..000000000 --- a/tests/dictionaries/10check_variable_relative/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_variable_relative/makedict/base.json b/tests/dictionaries/10check_variable_relative/makedict/base.json deleted file mode 100644 index 78f30ee1e..000000000 --- a/tests/dictionaries/10check_variable_relative/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.var": null -} diff --git a/tests/dictionaries/10check_variable_relative/makedict/before.json b/tests/dictionaries/10check_variable_relative/makedict/before.json deleted file mode 100644 index 983a136fe..000000000 --- a/tests/dictionaries/10check_variable_relative/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10check_variable_relative/makedict/mandatory.json b/tests/dictionaries/10check_variable_relative/makedict/mandatory.json deleted file mode 100644 index c15f7f7e4..000000000 --- a/tests/dictionaries/10check_variable_relative/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.var"] \ No newline at end of file diff --git a/tests/dictionaries/10check_variable_relative/tiramisu/base.py b/tests/dictionaries/10check_variable_relative/tiramisu/base.py deleted file mode 100644 index 6e9fb7551..000000000 --- a/tests/dictionaries/10check_variable_relative/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_rougail.general.var'] = "{% if _.var > 10 %}\nto high\n{% endif %}\n" -option_3 = IntOption(name="var", doc="var", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.general.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10check_variable_relative/tiramisu/multi.py b/tests/dictionaries/10check_variable_relative/tiramisu/multi.py deleted file mode 100644 index f6da123d4..000000000 --- a/tests/dictionaries/10check_variable_relative/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['validators_1.rougail.general.var'] = "{% if _.var > 10 %}\nto high\n{% endif %}\n" -dict_env['validators_2.rougail.general.var'] = "{% if _.var > 10 %}\nto high\n{% endif %}\n" -option_4 = IntOption(name="var", doc="var", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.general.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = IntOption(name="var", doc="var", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.general.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var': ParamSelfOption(whole=False)}))], properties=frozenset({"basic", "mandatory"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10disabled_with_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/10disabled_with_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index 624d828a0..000000000 --- a/tests/dictionaries/10disabled_with_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: '1.0' -condition: - type: boolean -variable: - disabled: - type: variable - variable: rougail.condition - mandatory: false diff --git a/tests/dictionaries/10disabled_with_variable/tiramisu/base.py b/tests/dictionaries/10disabled_with_variable/tiramisu/base.py deleted file mode 100644 index 7a4d2622a..000000000 --- a/tests/dictionaries/10disabled_with_variable/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_2))), help_function=func['variable_to_property'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10disabled_with_variable/tiramisu/multi.py b/tests/dictionaries/10disabled_with_variable/tiramisu/multi.py deleted file mode 100644 index 09d8ce462..000000000 --- a/tests/dictionaries/10disabled_with_variable/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_3))), help_function=func['variable_to_property'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_7))), help_function=func['variable_to_property'])})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10disabled_with_variable2/dictionaries/rougail/00-base.yml b/tests/dictionaries/10disabled_with_variable2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 5373a0f27..000000000 --- a/tests/dictionaries/10disabled_with_variable2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '1.0' -condition: - type: boolean - default: false -variable: - disabled: - type: variable - variable: rougail.condition - mandatory: false diff --git a/tests/dictionaries/10disabled_with_variable2/tiramisu/base.py b/tests/dictionaries/10disabled_with_variable2/tiramisu/base.py deleted file mode 100644 index 4ab0ce394..000000000 --- a/tests/dictionaries/10disabled_with_variable2/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_2))), help_function=func['variable_to_property'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10disabled_with_variable2/tiramisu/multi.py b/tests/dictionaries/10disabled_with_variable2/tiramisu/multi.py deleted file mode 100644 index f5fd6124a..000000000 --- a/tests/dictionaries/10disabled_with_variable2/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_3))), help_function=func['variable_to_property'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_7))), help_function=func['variable_to_property'])})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10disabled_with_variable_relative/dictionaries/rougail/00-base.yml b/tests/dictionaries/10disabled_with_variable_relative/dictionaries/rougail/00-base.yml deleted file mode 100644 index f1365dd44..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.1' -condition: - type: boolean -variable: - disabled: - type: variable - variable: _.condition - mandatory: false diff --git a/tests/dictionaries/10disabled_with_variable_relative/makedict/after.json b/tests/dictionaries/10disabled_with_variable_relative/makedict/after.json deleted file mode 100644 index 5995efe9d..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/10disabled_with_variable_relative/makedict/base.json b/tests/dictionaries/10disabled_with_variable_relative/makedict/base.json deleted file mode 100644 index 18b52facb..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.condition": true -} diff --git a/tests/dictionaries/10disabled_with_variable_relative/makedict/before.json b/tests/dictionaries/10disabled_with_variable_relative/makedict/before.json deleted file mode 100644 index 5995efe9d..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/10disabled_with_variable_relative/tiramisu/base.py b/tests/dictionaries/10disabled_with_variable_relative/tiramisu/base.py deleted file mode 100644 index 7a4d2622a..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_2))), help_function=func['variable_to_property'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10disabled_with_variable_relative/tiramisu/multi.py b/tests/dictionaries/10disabled_with_variable_relative/tiramisu/multi.py deleted file mode 100644 index 09d8ce462..000000000 --- a/tests/dictionaries/10disabled_with_variable_relative/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_3))), help_function=func['variable_to_property'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="variable", doc="variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("disabled"), ParamOption(option_7))), help_function=func['variable_to_property'])})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10fill/dictionaries/rougail/00-base.yml b/tests/dictionaries/10fill/dictionaries/rougail/00-base.yml deleted file mode 100644 index 99f018a19..000000000 --- a/tests/dictionaries/10fill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: '1.0' -variable: - default: - type: jinja - jinja: '{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }} - - ' - params: - param1: string - param2: 1 - param3: true - param4: null - mandatory: false diff --git a/tests/dictionaries/10fill/tiramisu/base.py b/tests/dictionaries/10fill/tiramisu/base.py deleted file mode 100644 index 93548eb4b..000000000 --- a/tests/dictionaries/10fill/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" -option_2 = StrOption(name="variable", doc="variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10fill/tiramisu/multi.py b/tests/dictionaries/10fill/tiramisu/multi.py deleted file mode 100644 index 4e3663784..000000000 --- a/tests/dictionaries/10fill/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" -dict_env['default_2.rougail.variable'] = "{{ param1 }}_{{ param2 }}_{{ param3 }}_{{ param4 }}\n" -option_3 = StrOption(name="variable", doc="variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = StrOption(name="variable", doc="variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'param1': ParamValue("string"), 'param2': ParamValue(1), 'param3': ParamValue(True), 'param4': ParamValue(None)})), properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10fill_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/10fill_optional/dictionaries/rougail/00-base.yml deleted file mode 100644 index 50722911e..000000000 --- a/tests/dictionaries/10fill_optional/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{% if __mode_conteneur_actif4 is defined %} - {{ __mode_conteneur_actif4 }} - {% elif __mode_conteneur_actif3 is defined %} - {{ __mode_conteneur_actif3 }} - {% else %} - {{ rougail.general.mode_conteneur_actif1 }} - {% endif %} - ' - params: - __mode_conteneur_actif4: - type: variable - variable: rougail.general.mode_conteneur_actif4 - optional: true - __mode_conteneur_actif3: - type: variable - variable: rougail.general.mode_conteneur_actif3 - optional: true - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non diff --git a/tests/dictionaries/10fill_optional/makedict/after.json b/tests/dictionaries/10fill_optional/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/10fill_optional/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10fill_optional/makedict/base.json b/tests/dictionaries/10fill_optional/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/10fill_optional/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/10fill_optional/makedict/before.json b/tests/dictionaries/10fill_optional/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/10fill_optional/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10fill_optional/tiramisu/base.py b/tests/dictionaries/10fill_optional/tiramisu/base.py deleted file mode 100644 index d222a3a75..000000000 --- a/tests/dictionaries/10fill_optional/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %} {{ __mode_conteneur_actif4 }} {% elif __mode_conteneur_actif3 is defined %} {{ __mode_conteneur_actif3 }} {% else %} {{ rougail.general.mode_conteneur_actif1 }} {% endif %} " -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10fill_optional/tiramisu/multi.py b/tests/dictionaries/10fill_optional/tiramisu/multi.py deleted file mode 100644 index 74f39b837..000000000 --- a/tests/dictionaries/10fill_optional/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %} {{ __mode_conteneur_actif4 }} {% elif __mode_conteneur_actif3 is defined %} {{ __mode_conteneur_actif3 }} {% else %} {{ rougail.general.mode_conteneur_actif1 }} {% endif %} " -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %} {{ __mode_conteneur_actif4 }} {% elif __mode_conteneur_actif3 is defined %} {{ __mode_conteneur_actif3 }} {% else %} {{ rougail.general.mode_conteneur_actif1 }} {% endif %} " -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10fill_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/10fill_quote/dictionaries/rougail/00-base.yml deleted file mode 100644 index 424ca94bf..000000000 --- a/tests/dictionaries/10fill_quote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ "quote''" | calc_val }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: - type: jinja - jinja: '{{ "quote\"" | calc_val }}' - mandatory: false - mode_conteneur_actif2: - type: string - description: No change - default: - type: jinja - jinja: '{{ "quote\"''" | calc_val }}' - mandatory: false - mode_conteneur_actif3: - type: string - description: No change - default: - type: jinja - jinja: '{{ "quote\"\\''" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10fill_quote/makedict/after.json b/tests/dictionaries/10fill_quote/makedict/after.json deleted file mode 100644 index f0b262c49..000000000 --- a/tests/dictionaries/10fill_quote/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "quote'" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "quote\"" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "quote\"'" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "quote\"\\'" - } -} diff --git a/tests/dictionaries/10fill_quote/makedict/base.json b/tests/dictionaries/10fill_quote/makedict/base.json deleted file mode 100644 index 478f39eff..000000000 --- a/tests/dictionaries/10fill_quote/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "quote'", - "rougail.general.mode_conteneur_actif1": "quote\"", - "rougail.general.mode_conteneur_actif2": "quote\"'", - "rougail.general.mode_conteneur_actif3": "quote\"\\'" -} diff --git a/tests/dictionaries/10fill_quote/makedict/before.json b/tests/dictionaries/10fill_quote/makedict/before.json deleted file mode 100644 index f0b262c49..000000000 --- a/tests/dictionaries/10fill_quote/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "quote'" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "quote\"" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "quote\"'" - }, - "rougail.general.mode_conteneur_actif3": { - "owner": "default", - "value": "quote\"\\'" - } -} diff --git a/tests/dictionaries/10fill_quote/tiramisu/base.py b/tests/dictionaries/10fill_quote/tiramisu/base.py deleted file mode 100644 index 7ce149ca6..000000000 --- a/tests/dictionaries/10fill_quote/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"quote'\" | calc_val }}" -dict_env['default_rougail.general.mode_conteneur_actif1'] = "{{ \"quote\\\"\" | calc_val }}" -dict_env['default_rougail.general.mode_conteneur_actif2'] = "{{ \"quote\\\"'\" | calc_val }}" -dict_env['default_rougail.general.mode_conteneur_actif3'] = "{{ \"quote\\\"\\\\'\" | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif3", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10fill_quote/tiramisu/multi.py b/tests/dictionaries/10fill_quote/tiramisu/multi.py deleted file mode 100644 index 667facb3c..000000000 --- a/tests/dictionaries/10fill_quote/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"quote'\" | calc_val }}" -dict_env['default_1.rougail.general.mode_conteneur_actif1'] = "{{ \"quote\\\"\" | calc_val }}" -dict_env['default_1.rougail.general.mode_conteneur_actif2'] = "{{ \"quote\\\"'\" | calc_val }}" -dict_env['default_1.rougail.general.mode_conteneur_actif3'] = "{{ \"quote\\\"\\\\'\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"quote'\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif1'] = "{{ \"quote\\\"\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif2'] = "{{ \"quote\\\"'\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif3'] = "{{ \"quote\\\"\\\\'\" | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif1", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif3", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10fill_target_information/dictionaries/rougail/00-base.yml b/tests/dictionaries/10fill_target_information/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8f3d8af70..000000000 --- a/tests/dictionaries/10fill_target_information/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ __information.rougail.general.mode_conteneur_actif.test_information - | calc_val }}' - params: - __information.rougail.general.mode_conteneur_actif.test_information: - type: information - information: test_information - variable: rougail.general.mode_conteneur_actif - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10fill_target_information/informations.json b/tests/dictionaries/10fill_target_information/informations.json deleted file mode 100644 index 5f62f349f..000000000 --- a/tests/dictionaries/10fill_target_information/informations.json +++ /dev/null @@ -1 +0,0 @@ -{"rougail.general.mode_conteneur_actif": "value"} diff --git a/tests/dictionaries/10fill_target_information/tiramisu/base.py b/tests/dictionaries/10fill_target_information/tiramisu/base.py deleted file mode 100644 index dc65d83e4..000000000 --- a/tests/dictionaries/10fill_target_information/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ __information.rougail.general.mode_conteneur_actif.test_information | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__information.rougail.general.mode_conteneur_actif.test_information': ParamSelfInformation("test_information", None)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10fill_target_information/tiramisu/multi.py b/tests/dictionaries/10fill_target_information/tiramisu/multi.py deleted file mode 100644 index ca7e76111..000000000 --- a/tests/dictionaries/10fill_target_information/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ __information.rougail.general.mode_conteneur_actif.test_information | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ __information.rougail.general.mode_conteneur_actif.test_information | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__information.rougail.general.mode_conteneur_actif.test_information': ParamSelfInformation("test_information", None)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__information.rougail.general.mode_conteneur_actif.test_information': ParamSelfInformation("test_information", None)})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10fill_target_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/10fill_target_optional/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8d14352b8..000000000 --- a/tests/dictionaries/10fill_target_optional/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/10fill_target_optional/makedict/after.json b/tests/dictionaries/10fill_target_optional/makedict/after.json deleted file mode 100644 index 45961373b..000000000 --- a/tests/dictionaries/10fill_target_optional/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10fill_target_optional/makedict/base.json b/tests/dictionaries/10fill_target_optional/makedict/base.json deleted file mode 100644 index 6cbc4d6bc..000000000 --- a/tests/dictionaries/10fill_target_optional/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/10fill_target_optional/makedict/before.json b/tests/dictionaries/10fill_target_optional/makedict/before.json deleted file mode 100644 index 45961373b..000000000 --- a/tests/dictionaries/10fill_target_optional/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10fill_target_optional/tiramisu/base.py b/tests/dictionaries/10fill_target_optional/tiramisu/base.py deleted file mode 100644 index ff4322bf3..000000000 --- a/tests/dictionaries/10fill_target_optional/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10fill_target_optional/tiramisu/multi.py b/tests/dictionaries/10fill_target_optional/tiramisu/multi.py deleted file mode 100644 index 200d11e21..000000000 --- a/tests/dictionaries/10fill_target_optional/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/dictionaries/rougail/00-base.yml deleted file mode 100644 index a7203086f..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -version: '1.0' -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: enumvar - help: bla bla bla - default: 1 - choices: - - 1 - - 2 - - 3 - test_variable: - type: number - description: test variable - mandatory: false - hidden: - type: jinja - jinja: | - {% if rougail.enumfam.enumvar == "4" %} - rougail.enumfam.enumvar is 4 - {% endif %} diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/after.json b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/after.json deleted file mode 100644 index 5094f0087..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 1 - }, - "rougail.enumfam.test_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/base.json b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/base.json deleted file mode 100644 index 7a9ad41bc..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": 1, - "rougail.enumfam.test_variable": null -} diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/before.json b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/before.json deleted file mode 100644 index 5094f0087..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 1 - }, - "rougail.enumfam.test_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/base.py b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/base.py deleted file mode 100644 index 12b4444e1..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -dict_env['frozen_rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -option_6 = IntOption(name="test_variable", doc="test variable", properties=frozenset({"advanced", "force_default_on_freeze", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_5)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5, option_6], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/multi.py b/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/multi.py deleted file mode 100644 index 268e8c5a1..000000000 --- a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -dict_env['frozen_1.rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -dict_env['hidden_2.rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -dict_env['frozen_2.rougail.enumfam.test_variable'] = "{% if rougail.enumfam.enumvar == \"4\" %}\nrougail.enumfam.enumvar is 4\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -option_7 = IntOption(name="test_variable", doc="test variable", properties=frozenset({"advanced", "force_default_on_freeze", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_6)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_6)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6, option_7], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11], properties=frozenset({"advanced"})) -option_13 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -option_14 = IntOption(name="test_variable", doc="test variable", properties=frozenset({"advanced", "force_default_on_freeze", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_13)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.enumfam.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.enumfam.enumvar': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_12 = OptionDescription(name="enumfam", doc="enumfam", children=[option_13, option_14], properties=frozenset({"advanced"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10, optiondescription_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10integer_jinja/dictionaries/rougail/00-base.yml b/tests/dictionaries/10integer_jinja/dictionaries/rougail/00-base.yml deleted file mode 100644 index 62b7b16bf..000000000 --- a/tests/dictionaries/10integer_jinja/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -version: '1.0' -my_variable: - type: choice - default: 9 - choices: - type: jinja - jinja: |+ - {% for item in trange(0, 10) %} - {{ item }} - {%- endfor %} - return_type: number diff --git a/tests/dictionaries/10integer_jinja/makedict/after.json b/tests/dictionaries/10integer_jinja/makedict/after.json deleted file mode 100644 index cda872476..000000000 --- a/tests/dictionaries/10integer_jinja/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": 9 - } -} diff --git a/tests/dictionaries/10integer_jinja/makedict/base.json b/tests/dictionaries/10integer_jinja/makedict/base.json deleted file mode 100644 index 98cd70ec1..000000000 --- a/tests/dictionaries/10integer_jinja/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.my_variable": 9 -} diff --git a/tests/dictionaries/10integer_jinja/makedict/before.json b/tests/dictionaries/10integer_jinja/makedict/before.json deleted file mode 100644 index cda872476..000000000 --- a/tests/dictionaries/10integer_jinja/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_variable": { - "owner": "default", - "value": 9 - } -} diff --git a/tests/dictionaries/10integer_jinja/tiramisu/base.py b/tests/dictionaries/10integer_jinja/tiramisu/base.py deleted file mode 100644 index 8d3b4dae9..000000000 --- a/tests/dictionaries/10integer_jinja/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['choices_rougail.my_variable'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" -option_2 = ChoiceOption(name="my_variable", doc="my_variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_rougail.my_variable"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10integer_jinja/tiramisu/multi.py b/tests/dictionaries/10integer_jinja/tiramisu/multi.py deleted file mode 100644 index 752b2b446..000000000 --- a/tests/dictionaries/10integer_jinja/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['choices_1.rougail.my_variable'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" -dict_env['choices_2.rougail.my_variable'] = "{% for item in trange(0, 10) %}\n{{ item }}\n{%- endfor %}\n" -option_3 = ChoiceOption(name="my_variable", doc="my_variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_1.rougail.my_variable"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = ChoiceOption(name="my_variable", doc="my_variable", values=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("choices_2.rougail.my_variable"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(True)})), default=9, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_append/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_append/dictionaries/rougail/00-base.yml deleted file mode 100644 index e49af841d..000000000 --- a/tests/dictionaries/10leadership_append/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false diff --git a/tests/dictionaries/10leadership_append/dictionaries/rougail/01-base.yml b/tests/dictionaries/10leadership_append/dictionaries/rougail/01-base.yml deleted file mode 100644 index 45340dd16..000000000 --- a/tests/dictionaries/10leadership_append/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: '1.0' -general1: - leader: - follower3: - type: string - description: follower3 - mandatory: false diff --git a/tests/dictionaries/10leadership_append/makedict/after.json b/tests/dictionaries/10leadership_append/makedict/after.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10leadership_append/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append/makedict/base.json b/tests/dictionaries/10leadership_append/makedict/base.json deleted file mode 100644 index 14aaf55f0..000000000 --- a/tests/dictionaries/10leadership_append/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_append/makedict/before.json b/tests/dictionaries/10leadership_append/makedict/before.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10leadership_append/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append/tiramisu/base.py b/tests/dictionaries/10leadership_append/tiramisu/base.py deleted file mode 100644 index a427be76c..000000000 --- a/tests/dictionaries/10leadership_append/tiramisu/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_append/tiramisu/multi.py b/tests/dictionaries/10leadership_append/tiramisu/multi.py deleted file mode 100644 index 543fd837a..000000000 --- a/tests/dictionaries/10leadership_append/tiramisu/multi.py +++ /dev/null @@ -1,32 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -option_10 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="general", children=[option_14], properties=frozenset({"standard"})) -option_17 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_18 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_19 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_18)})), properties=frozenset({"standard"})) -option_20 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_16 = Leadership(name="leader", doc="leader", children=[option_17, option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="general1", doc="general1", children=[optiondescription_16], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index f0bdbc328..000000000 --- a/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - hidden: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false diff --git a/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/01-base.yml b/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/01-base.yml deleted file mode 100644 index 45340dd16..000000000 --- a/tests/dictionaries/10leadership_append_hidden/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: '1.0' -general1: - leader: - follower3: - type: string - description: follower3 - mandatory: false diff --git a/tests/dictionaries/10leadership_append_hidden/makedict/after.json b/tests/dictionaries/10leadership_append_hidden/makedict/after.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10leadership_append_hidden/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append_hidden/makedict/base.json b/tests/dictionaries/10leadership_append_hidden/makedict/base.json deleted file mode 100644 index 14aaf55f0..000000000 --- a/tests/dictionaries/10leadership_append_hidden/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_append_hidden/makedict/before.json b/tests/dictionaries/10leadership_append_hidden/makedict/before.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10leadership_append_hidden/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append_hidden/tiramisu/base.py b/tests/dictionaries/10leadership_append_hidden/tiramisu/base.py deleted file mode 100644 index 60d621944..000000000 --- a/tests/dictionaries/10leadership_append_hidden/tiramisu/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_9 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8, option_9], properties=frozenset({"hidden", "standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_append_hidden/tiramisu/multi.py b/tests/dictionaries/10leadership_append_hidden/tiramisu/multi.py deleted file mode 100644 index e671f9fd7..000000000 --- a/tests/dictionaries/10leadership_append_hidden/tiramisu/multi.py +++ /dev/null @@ -1,32 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_10 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9, option_10], properties=frozenset({"hidden", "standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="general", children=[option_14], properties=frozenset({"standard"})) -option_17 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_18 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_19 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_18)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_20 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_16 = Leadership(name="leader", doc="leader", children=[option_17, option_18, option_19, option_20], properties=frozenset({"hidden", "standard"})) -optiondescription_15 = OptionDescription(name="general1", doc="general1", children=[optiondescription_16], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/10leadership_append_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_append_name/dictionaries/rougail/00-base.yml deleted file mode 100644 index 60435ab05..000000000 --- a/tests/dictionaries/10leadership_append_name/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leadership: - description: leadership - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leadership.follower1 | calc_val }}' - mandatory: false diff --git a/tests/dictionaries/10leadership_append_name/dictionaries/rougail/01-base.yml b/tests/dictionaries/10leadership_append_name/dictionaries/rougail/01-base.yml deleted file mode 100644 index bdaf532d7..000000000 --- a/tests/dictionaries/10leadership_append_name/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: '1.0' -general1: - leadership: - follower3: - type: string - description: follower3 - mandatory: false diff --git a/tests/dictionaries/10leadership_append_name/makedict/after.json b/tests/dictionaries/10leadership_append_name/makedict/after.json deleted file mode 100644 index c6fc9aeae..000000000 --- a/tests/dictionaries/10leadership_append_name/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leadership.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append_name/makedict/base.json b/tests/dictionaries/10leadership_append_name/makedict/base.json deleted file mode 100644 index 1b3a3e8e2..000000000 --- a/tests/dictionaries/10leadership_append_name/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leadership.leader": [] -} diff --git a/tests/dictionaries/10leadership_append_name/makedict/before.json b/tests/dictionaries/10leadership_append_name/makedict/before.json deleted file mode 100644 index c6fc9aeae..000000000 --- a/tests/dictionaries/10leadership_append_name/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leadership.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_append_name/tiramisu/base.py b/tests/dictionaries/10leadership_append_name/tiramisu/base.py deleted file mode 100644 index 7bdd543b7..000000000 --- a/tests/dictionaries/10leadership_append_name/tiramisu/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leadership.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leadership.follower2'] = "{{ rougail.general1.leadership.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leadership.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leadership.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leadership.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leadership", doc="leadership", children=[option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_append_name/tiramisu/multi.py b/tests/dictionaries/10leadership_append_name/tiramisu/multi.py deleted file mode 100644 index bf87e8e9a..000000000 --- a/tests/dictionaries/10leadership_append_name/tiramisu/multi.py +++ /dev/null @@ -1,32 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leadership.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leadership.follower2'] = "{{ rougail.general1.leadership.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leadership.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leadership.follower2'] = "{{ rougail.general1.leadership.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leadership.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leadership.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leadership.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -option_10 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leadership", doc="leadership", children=[option_7, option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="general", children=[option_14], properties=frozenset({"standard"})) -option_17 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_18 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leadership.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_19 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leadership.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leadership.follower1': ParamOption(option_18)})), properties=frozenset({"standard"})) -option_20 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"standard"})) -optiondescription_16 = Leadership(name="leadership", doc="leadership", children=[option_17, option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="general1", doc="general1", children=[optiondescription_16], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/10leadership_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3bfa5e1b8..000000000 --- a/tests/dictionaries/10leadership_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,38 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - hidden: true - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - hidden: true - default: - type: jinja - jinja: '{{ rougail.general.leader.follower1 | calc_val }}' - mandatory: false - follower3: - type: string - description: follower3 - hidden: true - default: - type: jinja - jinja: '{{ rougail.general.leader.leader | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_auto/makedict/after.json b/tests/dictionaries/10leadership_auto/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_auto/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_auto/makedict/base.json b/tests/dictionaries/10leadership_auto/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/10leadership_auto/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_auto/makedict/before.json b/tests/dictionaries/10leadership_auto/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_auto/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_auto/tiramisu/base.py b/tests/dictionaries/10leadership_auto/tiramisu/base.py deleted file mode 100644 index d0570be19..000000000 --- a/tests/dictionaries/10leadership_auto/tiramisu/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -dict_env['default_rougail.general.leader.follower3'] = "{{ rougail.general.leader.leader | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_6)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_8 = StrOption(name="follower3", doc="follower3", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_auto/tiramisu/multi.py b/tests/dictionaries/10leadership_auto/tiramisu/multi.py deleted file mode 100644 index f18f1ef7e..000000000 --- a/tests/dictionaries/10leadership_auto/tiramisu/multi.py +++ /dev/null @@ -1,32 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -dict_env['default_1.rougail.general.leader.follower3'] = "{{ rougail.general.leader.leader | calc_val }}" -dict_env['default_2.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general.leader.follower3'] = "{{ rougail.general.leader.leader | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_7)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_9 = StrOption(name="follower3", doc="follower3", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_6)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_15 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_16 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_17 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_16)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_18 = StrOption(name="follower3", doc="follower3", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_15)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_14 = Leadership(name="leader", doc="leader", children=[option_15, option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10leadership_auto_index/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_auto_index/dictionaries/rougail/00-base.yml deleted file mode 100644 index e4e4b1f90..000000000 --- a/tests/dictionaries/10leadership_auto_index/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '1.0' -leader: - description: leader - type: leadership - leader: - multi: true - default: - - a - - b - - c - follower1: - type: number - default: - type: index - mandatory: false diff --git a/tests/dictionaries/10leadership_auto_index/tiramisu/base.py b/tests/dictionaries/10leadership_auto_index/tiramisu/base.py deleted file mode 100644 index 1e42d84bc..000000000 --- a/tests/dictionaries/10leadership_auto_index/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"standard"})) -optiondescription_2 = Leadership(name="leader", doc="leader", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_auto_index/tiramisu/multi.py b/tests/dictionaries/10leadership_auto_index/tiramisu/multi.py deleted file mode 100644 index 56ab54544..000000000 --- a/tests/dictionaries/10leadership_auto_index/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"standard"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"standard"})) -optiondescription_8 = Leadership(name="leader", doc="leader", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10leadership_auto_index_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_auto_index_param/dictionaries/rougail/00-base.yml deleted file mode 100644 index 7e81089a6..000000000 --- a/tests/dictionaries/10leadership_auto_index_param/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -version: '1.0' -leader: - description: leader - type: leadership - leader: - multi: true - default: - - a - - b - - c - follower1: - type: number - default: - type: jinja - jinja: '{{ __index }}' - params: - __index: - type: index - mandatory: false diff --git a/tests/dictionaries/10leadership_auto_index_param/tiramisu/base.py b/tests/dictionaries/10leadership_auto_index_param/tiramisu/base.py deleted file mode 100644 index 3cf4d7bf7..000000000 --- a/tests/dictionaries/10leadership_auto_index_param/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.leader.follower1'] = "{{ __index }}" -option_3 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), '__index': ParamIndex()})), properties=frozenset({"standard"})) -optiondescription_2 = Leadership(name="leader", doc="leader", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_auto_index_param/tiramisu/multi.py b/tests/dictionaries/10leadership_auto_index_param/tiramisu/multi.py deleted file mode 100644 index 31b40b006..000000000 --- a/tests/dictionaries/10leadership_auto_index_param/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.leader.follower1'] = "{{ __index }}" -dict_env['default_2.rougail.leader.follower1'] = "{{ __index }}" -option_4 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), '__index': ParamIndex()})), properties=frozenset({"standard"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="leader", doc="leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = IntOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), '__index': ParamIndex()})), properties=frozenset({"standard"})) -optiondescription_8 = Leadership(name="leader", doc="leader", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10leadership_autoleader/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_autoleader/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3636d3133..000000000 --- a/tests/dictionaries/10leadership_autoleader/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - hidden: true - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - hidden: true - default: - type: jinja - jinja: '{{ rougail.general.leader.leader | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_autoleader/makedict/after.json b/tests/dictionaries/10leadership_autoleader/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_autoleader/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_autoleader/makedict/base.json b/tests/dictionaries/10leadership_autoleader/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/10leadership_autoleader/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_autoleader/makedict/before.json b/tests/dictionaries/10leadership_autoleader/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_autoleader/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_autoleader/tiramisu/base.py b/tests/dictionaries/10leadership_autoleader/tiramisu/base.py deleted file mode 100644 index 0a6051356..000000000 --- a/tests/dictionaries/10leadership_autoleader/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general.leader.follower2'] = "{{ rougail.general.leader.leader | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_autoleader/tiramisu/multi.py b/tests/dictionaries/10leadership_autoleader/tiramisu/multi.py deleted file mode 100644 index f072597c4..000000000 --- a/tests/dictionaries/10leadership_autoleader/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general.leader.follower2'] = "{{ rougail.general.leader.leader | calc_val }}" -dict_env['default_2.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general.leader.follower2'] = "{{ rougail.general.leader.leader | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_6)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.leader': ParamOption(option_14)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10leadership_autoleader_expert/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_autoleader_expert/dictionaries/rougail/00-base.yml deleted file mode 100644 index 552cc5ae5..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.0' -leadermode: - leader: - type: leadership - leader: - multi: true - mode: advanced - default: - - valfill - mandatory: false - follower1: - mandatory: false - follower2: - mandatory: false diff --git a/tests/dictionaries/10leadership_autoleader_expert/makedict/after.json b/tests/dictionaries/10leadership_autoleader_expert/makedict/after.json deleted file mode 100644 index 620f2e4ba..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [ - "valfill" - ] - }, - "rougail.leadermode.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - null - ] - }, - "rougail.leadermode.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - null - ] - } -} diff --git a/tests/dictionaries/10leadership_autoleader_expert/makedict/base.json b/tests/dictionaries/10leadership_autoleader_expert/makedict/base.json deleted file mode 100644 index 4af4d0a83..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.leadermode.leader.leader": [ - { - "rougail.leadermode.leader.leader": "valfill", - "rougail.leadermode.leader.follower1": null, - "rougail.leadermode.leader.follower2": null - } - ] -} diff --git a/tests/dictionaries/10leadership_autoleader_expert/makedict/before.json b/tests/dictionaries/10leadership_autoleader_expert/makedict/before.json deleted file mode 100644 index 620f2e4ba..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [ - "valfill" - ] - }, - "rougail.leadermode.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - null - ] - }, - "rougail.leadermode.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - null - ] - } -} diff --git a/tests/dictionaries/10leadership_autoleader_expert/tiramisu/base.py b/tests/dictionaries/10leadership_autoleader_expert/tiramisu/base.py deleted file mode 100644 index 84ab90a35..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="leader", doc="leader", multi=True, default=["valfill"], properties=frozenset({"advanced"})) -option_5 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"advanced"})) -option_6 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"advanced"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5, option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_autoleader_expert/tiramisu/multi.py b/tests/dictionaries/10leadership_autoleader_expert/tiramisu/multi.py deleted file mode 100644 index 002441389..000000000 --- a/tests/dictionaries/10leadership_autoleader_expert/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="leader", doc="leader", multi=True, default=["valfill"], properties=frozenset({"advanced"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"advanced"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"advanced"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"advanced"})) -optiondescription_3 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_4], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_12 = StrOption(name="leader", doc="leader", multi=True, default=["valfill"], properties=frozenset({"advanced"})) -option_13 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"advanced"})) -option_14 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"advanced"})) -optiondescription_11 = Leadership(name="leader", doc="leader", children=[option_12, option_13, option_14], properties=frozenset({"advanced"})) -optiondescription_10 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10leadership_autosaveexpert/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_autosaveexpert/dictionaries/rougail/00-base.yml deleted file mode 100644 index dc215fb0d..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - mode: advanced - default: - type: jinja - jinja: '{{ rougail.general.leader.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_autosaveexpert/makedict/after.json b/tests/dictionaries/10leadership_autosaveexpert/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_autosaveexpert/makedict/base.json b/tests/dictionaries/10leadership_autosaveexpert/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_autosaveexpert/makedict/before.json b/tests/dictionaries/10leadership_autosaveexpert/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_autosaveexpert/tiramisu/base.py b/tests/dictionaries/10leadership_autosaveexpert/tiramisu/base.py deleted file mode 100644 index df44d0c40..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_6)})), properties=frozenset({"advanced"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_autosaveexpert/tiramisu/multi.py b/tests/dictionaries/10leadership_autosaveexpert/tiramisu/multi.py deleted file mode 100644 index 9ef1b0711..000000000 --- a/tests/dictionaries/10leadership_autosaveexpert/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_7)})), properties=frozenset({"advanced"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_15)})), properties=frozenset({"advanced"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10leadership_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_empty/dictionaries/rougail/00-base.yml deleted file mode 100644 index 92fffabf7..000000000 --- a/tests/dictionaries/10leadership_empty/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -version: '1.0' -empty_leader: - type: leadership diff --git a/tests/dictionaries/10leadership_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index ff358c002..000000000 --- a/tests/dictionaries/10leadership_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,34 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -leadermode: - leader: - description: leader - hidden: true - type: leadership - leader: - type: string - description: leader - multi: true - default: - type: jinja - jinja: '{% for var in calc_list() %} - - {{ var }} - - {% endfor %} - - ' - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_hidden/makedict/after.json b/tests/dictionaries/10leadership_hidden/makedict/after.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_hidden/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_hidden/makedict/base.json b/tests/dictionaries/10leadership_hidden/makedict/base.json deleted file mode 100644 index fe8a1c7ae..000000000 --- a/tests/dictionaries/10leadership_hidden/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.leadermode.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_hidden/makedict/before.json b/tests/dictionaries/10leadership_hidden/makedict/before.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_hidden/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_hidden/tiramisu/base.py b/tests/dictionaries/10leadership_hidden/tiramisu/base.py deleted file mode 100644 index 0ea2d975b..000000000 --- a/tests/dictionaries/10leadership_hidden/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"hidden", "standard"})) -optiondescription_4 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_hidden/tiramisu/multi.py b/tests/dictionaries/10leadership_hidden/tiramisu/multi.py deleted file mode 100644 index c4be5404e..000000000 --- a/tests/dictionaries/10leadership_hidden/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -dict_env['default_2.rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"hidden", "standard"})) -optiondescription_5 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"advanced"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"hidden", "standard"})) -optiondescription_14 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10leadership_leader_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_leader_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index 10a2cb2c9..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,34 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -leadermode: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - hidden: true - default: - type: jinja - jinja: '{% for var in calc_list() %} - - {{ var }} - - {% endfor %} - - ' - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_leader_hidden/makedict/after.json b/tests/dictionaries/10leadership_leader_hidden/makedict/after.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden/makedict/base.json b/tests/dictionaries/10leadership_leader_hidden/makedict/base.json deleted file mode 100644 index fe8a1c7ae..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.leadermode.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_leader_hidden/makedict/before.json b/tests/dictionaries/10leadership_leader_hidden/makedict/before.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden/tiramisu/base.py b/tests/dictionaries/10leadership_leader_hidden/tiramisu/base.py deleted file mode 100644 index 0ea2d975b..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"hidden", "standard"})) -optiondescription_4 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_leader_hidden/tiramisu/multi.py b/tests/dictionaries/10leadership_leader_hidden/tiramisu/multi.py deleted file mode 100644 index c4be5404e..000000000 --- a/tests/dictionaries/10leadership_leader_hidden/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -dict_env['default_2.rougail.leadermode.leader.leader'] = "{% for var in calc_list() %}\n{{ var }}\n{% endfor %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"hidden", "standard"})) -optiondescription_5 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"advanced"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "frozen", "standard"})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"hidden", "standard"})) -optiondescription_14 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_leader_hidden_if_in/dictionaries/rougail/00-base.yml deleted file mode 100644 index 83e9bb469..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: '1.0' -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -leadermode: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - hidden: - type: jinja - jinja: '{% if rougail.general.mode_conteneur_actif == "non" %} - - rougail.general.mode_conteneur_actif is non - - {% endif %} - - ' - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/after.json b/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/after.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/base.json b/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/base.json deleted file mode 100644 index fe8a1c7ae..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.leadermode.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/before.json b/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/before.json deleted file mode 100644 index a06c87b44..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/base.py b/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/base.py deleted file mode 100644 index 21891d08f..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/base.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_rougail.leadermode.leader.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_rougail.leadermode.leader.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/multi.py b/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/multi.py deleted file mode 100644 index 81f0743fc..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in/tiramisu/multi.py +++ /dev/null @@ -1,34 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_1.rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_1.rougail.leadermode.leader.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_1.rougail.leadermode.leader.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_1.rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.leader.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.leader.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_2.rougail.leadermode.leader.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"advanced"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.leadermode.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_14 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_leader_hidden_if_in_name/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3b9208719..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: '1.0' -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -leadermode: - other: - description: other - type: leadership - leader: - type: string - description: leader - multi: true - hidden: - type: jinja - jinja: '{% if rougail.general.mode_conteneur_actif == "non" %} - - rougail.general.mode_conteneur_actif is non - - {% endif %} - - ' - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/after.json b/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/after.json deleted file mode 100644 index 8b4b57426..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.other.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/base.json b/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/base.json deleted file mode 100644 index ba697460c..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.leadermode.other.leader": [] -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/before.json b/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/before.json deleted file mode 100644 index 8b4b57426..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.leadermode.other.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/base.py b/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/base.py deleted file mode 100644 index b482f26c8..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/base.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_rougail.leadermode.other.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_rougail.leadermode.other.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.other.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leadermode.other.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = Leadership(name="other", doc="other", children=[option_6, option_7, option_8], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/multi.py b/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/multi.py deleted file mode 100644 index e7ba9cf8a..000000000 --- a/tests/dictionaries/10leadership_leader_hidden_if_in_name/tiramisu/multi.py +++ /dev/null @@ -1,34 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_1.rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_1.rougail.leadermode.other.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_1.rougail.leadermode.other.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_1.rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.other.follower1'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['frozen_2.rougail.leadermode.other.follower2'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -dict_env['hidden_2.rougail.leadermode.other.leader'] = "{% if rougail.general.mode_conteneur_actif == \"non\" %}\nrougail.general.mode_conteneur_actif is non\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.other.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leadermode.other.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_6 = Leadership(name="other", doc="other", children=[option_7, option_8, option_9], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"advanced"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.other.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leadermode.other.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_15 = Leadership(name="other", doc="other", children=[option_16, option_17, option_18], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.leadermode.other.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_14 = OptionDescription(name="leadermode", doc="leadermode", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10leadership_leadermandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_leadermandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 49a7cd90d..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,28 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: true - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general.leader.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_leadermandatory/makedict/after.json b/tests/dictionaries/10leadership_leadermandatory/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leadermandatory/makedict/base.json b/tests/dictionaries/10leadership_leadermandatory/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10leadership_leadermandatory/makedict/before.json b/tests/dictionaries/10leadership_leadermandatory/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_leadermandatory/makedict/mandatory.json b/tests/dictionaries/10leadership_leadermandatory/makedict/mandatory.json deleted file mode 100644 index e402e2ebd..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/10leadership_leadermandatory/tiramisu/base.py b/tests/dictionaries/10leadership_leadermandatory/tiramisu/base.py deleted file mode 100644 index 646264204..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_6)})), properties=frozenset({"standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_leadermandatory/tiramisu/multi.py b/tests/dictionaries/10leadership_leadermandatory/tiramisu/multi.py deleted file mode 100644 index 85cc2aadc..000000000 --- a/tests/dictionaries/10leadership_leadermandatory/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general.leader.follower2'] = "{{ rougail.general.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"basic"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.leader.follower1': ParamOption(option_15)})), properties=frozenset({"standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"basic"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"basic"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"basic"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_mandatoryfollower/dictionaries/rougail/00-base.yml deleted file mode 100644 index b19b501bf..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -version: '1.0' -general: - description: général - mode_conteneur_actif: - description: No change - hidden: true - default: oui - nut_monitor_netmask: - description: Masque de l'IP du réseau de l'esclave - type: leadership - nut_monitor_netmask: - type: netmask - description: Masque de l'IP du réseau de l'esclave - multi: true - mandatory: false - nut_monitor_host: - type: network - description: Adresse IP du réseau de l'esclave - mandatory: true diff --git a/tests/dictionaries/10leadership_mandatoryfollower/makedict/after.json b/tests/dictionaries/10leadership_mandatoryfollower/makedict/after.json deleted file mode 100644 index df73b8790..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower/makedict/base.json b/tests/dictionaries/10leadership_mandatoryfollower/makedict/base.json deleted file mode 100644 index af7d636d7..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": [] -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower/makedict/before.json b/tests/dictionaries/10leadership_mandatoryfollower/makedict/before.json deleted file mode 100644 index df73b8790..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/base.py b/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/base.py deleted file mode 100644 index d2c47c9cf..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_6 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_4 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_5, option_6], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/multi.py b/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/multi.py deleted file mode 100644 index de4692dfb..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_7 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_5 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_6, option_7], properties=frozenset({"basic"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, optiondescription_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_13 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_14 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, properties=frozenset({"basic", "mandatory"})) -optiondescription_12 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_13, option_14], properties=frozenset({"basic"})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11, optiondescription_12], properties=frozenset({"basic"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_mandatoryfollower_value/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8af90dcc5..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: oui - nut_monitor_netmask: - description: Masque de l'IP du réseau de l'esclave - type: leadership - nut_monitor_netmask: - type: netmask - description: Masque de l'IP du réseau de l'esclave - multi: true - mandatory: false - nut_monitor_host: - type: network - description: Adresse IP du réseau de l'esclave - mandatory: true - default: 192.168.0.0 -version: '1.0' diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/after.json b/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/after.json deleted file mode 100644 index df73b8790..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/base.json b/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/base.json deleted file mode 100644 index af7d636d7..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": [] -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/before.json b/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/before.json deleted file mode 100644 index df73b8790..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.nut_monitor_netmask.nut_monitor_netmask": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/base.py b/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/base.py deleted file mode 100644 index 1cb8c504e..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_6 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, default_multi="192.168.0.0", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/multi.py b/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/multi.py deleted file mode 100644 index 0aac3bac0..000000000 --- a/tests/dictionaries/10leadership_mandatoryfollower_value/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_7 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, default_multi="192.168.0.0", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_13 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True, properties=frozenset({"standard"})) -option_14 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, default_multi="192.168.0.0", properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_13, option_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10leadership_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/10leadership_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 18a1b420b..000000000 --- a/tests/dictionaries/10leadership_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,45 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false - leader1: - description: leader - type: leadership - leader1: - type: string - description: leader - multi: true - mandatory: false - follower11: - type: string - description: follower1 - mandatory: false - follower21: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10leadership_multi/makedict/after.json b/tests/dictionaries/10leadership_multi/makedict/after.json deleted file mode 100644 index 0b42b7958..000000000 --- a/tests/dictionaries/10leadership_multi/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - }, - "rougail.general1.leader1.leader1": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_multi/makedict/base.json b/tests/dictionaries/10leadership_multi/makedict/base.json deleted file mode 100644 index 53442331b..000000000 --- a/tests/dictionaries/10leadership_multi/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [], - "rougail.general1.leader1.leader1": [] -} diff --git a/tests/dictionaries/10leadership_multi/makedict/before.json b/tests/dictionaries/10leadership_multi/makedict/before.json deleted file mode 100644 index 0b42b7958..000000000 --- a/tests/dictionaries/10leadership_multi/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - }, - "rougail.general1.leader1.leader1": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10leadership_multi/tiramisu/base.py b/tests/dictionaries/10leadership_multi/tiramisu/base.py deleted file mode 100644 index ea802b789..000000000 --- a/tests/dictionaries/10leadership_multi/tiramisu/base.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -option_10 = StrOption(name="leader1", doc="leader", multi=True, properties=frozenset({"standard"})) -option_11 = StrOption(name="follower11", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_12 = StrOption(name="follower21", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_9 = Leadership(name="leader1", doc="leader", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5, optiondescription_9], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10leadership_multi/tiramisu/multi.py b/tests/dictionaries/10leadership_multi/tiramisu/multi.py deleted file mode 100644 index fe3a27634..000000000 --- a/tests/dictionaries/10leadership_multi/tiramisu/multi.py +++ /dev/null @@ -1,38 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -option_11 = StrOption(name="leader1", doc="leader", multi=True, properties=frozenset({"standard"})) -option_12 = StrOption(name="follower11", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_13 = StrOption(name="follower21", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_10 = Leadership(name="leader1", doc="leader", children=[option_11, option_12, option_13], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6, optiondescription_10], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_17 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_16 = OptionDescription(name="general", doc="general", children=[option_17], properties=frozenset({"standard"})) -option_20 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_21 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_22 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_21)})), properties=frozenset({"standard"})) -optiondescription_19 = Leadership(name="leader", doc="leader", children=[option_20, option_21, option_22], properties=frozenset({"standard"})) -option_24 = StrOption(name="leader1", doc="leader", multi=True, properties=frozenset({"standard"})) -option_25 = StrOption(name="follower11", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_26 = StrOption(name="follower21", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_23 = Leadership(name="leader1", doc="leader", children=[option_24, option_25, option_26], properties=frozenset({"standard"})) -optiondescription_18 = OptionDescription(name="general1", doc="general1", children=[optiondescription_19, optiondescription_23], properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_16, optiondescription_18], properties=frozenset({"standard"})) -optiondescription_14 = OptionDescription(name="2", doc="2", children=[optiondescription_15], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_14]) diff --git a/tests/dictionaries/10load_disabled_if_in/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in/dictionaries/rougail/00-base.yml deleted file mode 100644 index 4bd1f5b9b..000000000 --- a/tests/dictionaries/10load_disabled_if_in/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in/makedict/after.json b/tests/dictionaries/10load_disabled_if_in/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in/makedict/base.json b/tests/dictionaries/10load_disabled_if_in/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_disabled_if_in/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabled_if_in/makedict/before.json b/tests/dictionaries/10load_disabled_if_in/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in/tiramisu/base.py deleted file mode 100644 index 41aff1568..000000000 --- a/tests/dictionaries/10load_disabled_if_in/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in/tiramisu/multi.py deleted file mode 100644 index 7ed610b76..000000000 --- a/tests/dictionaries/10load_disabled_if_in/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_fill/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_fill/dictionaries/rougail/00-base.yml deleted file mode 100644 index de6d28a70..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: '1.0' -general: - condition: - type: string - default: 'no' - variable1: - type: string - disabled: - type: jinja - jinja: '{% if rougail.general.condition == "no" %} - - rougail.general.condition is "no" - - {% endif %} - - ' - mandatory: false - variable2: - type: string - default: - type: variable - variable: rougail.general.variable1 - propertyerror: false - mandatory: false diff --git a/tests/dictionaries/10load_disabled_if_in_fill/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_fill/makedict/after.json deleted file mode 100644 index b022f1f23..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.variable2": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_fill/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_fill/makedict/base.json deleted file mode 100644 index 60b5bb4c8..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "no", - "rougail.general.variable2": null -} diff --git a/tests/dictionaries/10load_disabled_if_in_fill/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_fill/makedict/before.json deleted file mode 100644 index b022f1f23..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.variable2": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/base.py deleted file mode 100644 index 5626e3f95..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.variable1'] = "{% if rougail.general.condition == \"no\" %}\nrougail.general.condition is \"no\"\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="condition", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="variable1", doc="variable1", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="variable2", doc="variable2", default=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/multi.py deleted file mode 100644 index 07ae8f851..000000000 --- a/tests/dictionaries/10load_disabled_if_in_fill/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.variable1'] = "{% if rougail.general.condition == \"no\" %}\nrougail.general.condition is \"no\"\n{% endif %}\n" -dict_env['disabled_2.rougail.general.variable1'] = "{% if rougail.general.condition == \"no\" %}\nrougail.general.condition is \"no\"\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="condition", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="variable1", doc="variable1", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="variable2", doc="variable2", default=Calculation(func['calc_value'], Params((ParamOption(option_5, notraisepropertyerror=True)))), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="condition", default="no", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="variable1", doc="variable1", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.variable1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="variable2", doc="variable2", default=Calculation(func['calc_value'], Params((ParamOption(option_11, notraisepropertyerror=True)))), properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_list_optional/dictionaries/rougail/00-base.yml deleted file mode 100644 index 5b42c2211..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ -condition: - type: boolean -version: '1.0' diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/after.json deleted file mode 100644 index 5995efe9d..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/base.json deleted file mode 100644 index 18b52facb..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.condition": true -} diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/before.json deleted file mode 100644 index 5995efe9d..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/base.py deleted file mode 100644 index 57c91cc8d..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/multi.py deleted file mode 100644 index 256a802a2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_list_optional/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param/dictionaries/rougail/00-base.yml deleted file mode 100644 index 55d2cc958..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" or rougail.general.condition == "maybe" %} - it's disabled - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" or rougail.general.condition == "maybe" %} - it's disabled - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/base.py deleted file mode 100644 index 04fc8a58a..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/multi.py deleted file mode 100644 index a977282b5..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0142d8a14..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'no' - condition2: - type: string - description: No change - default: 'no' - test_variable: - type: string - description: No change - hidden: true - default: 'no' - disabled: - type: jinja - jinja: | - {% if rougail.general.condition2 == "yes" or rougail.general.condition2 == "maybe" %} - it's disabled - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/after.json deleted file mode 100644 index f98da6da4..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - }, - "rougail.general.test_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/base.json deleted file mode 100644 index 0f93b1817..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "no", - "rougail.general.condition2": "no", - "rougail.general.test_variable": "no" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/before.json deleted file mode 100644 index f98da6da4..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - }, - "rougail.general.test_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/base.py deleted file mode 100644 index 7d2a290ea..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/multi.py deleted file mode 100644 index 4752be9ea..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param2/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param3/dictionaries/rougail/00-base.yml deleted file mode 100644 index 188cad50b..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'no' - condition2: - type: string - description: No change - default: 'no' - test_variable: - type: string - description: No change - hidden: true - default: 'no' - disabled: - type: jinja - jinja: | - {% if rougail.general.condition != "yes" and rougail.general.condition != "maybe" %} - it' disabled - {% elif rougail.general.condition2 == "yes" or rougail.general.condition2 == "maybe" %} - it' disabled 2 - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/after.json deleted file mode 100644 index d2bc050f8..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/base.json deleted file mode 100644 index 72536b58c..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "no", - "rougail.general.condition2": "no" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/before.json deleted file mode 100644 index d2bc050f8..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/base.py deleted file mode 100644 index 32ebc00a1..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit' disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit' disabled 2\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/multi.py deleted file mode 100644 index aa379f882..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param3/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit' disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit' disabled 2\n{% endif %}\n" -dict_env['disabled_2.rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit' disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit' disabled 2\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.condition2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.condition2': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param4/dictionaries/rougail/00-base.yml deleted file mode 100644 index c967582e1..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'yes' - condition2: - type: string - description: No change - default: 'no' - test_variable: - type: string - description: No change - hidden: true - default: 'no' - disabled: - type: jinja - jinja: | - {% if rougail.general.condition != "yes" and rougail.general.condition != "maybe" %} - it's disabled - {% elif rougail.general.condition2 == "yes" or rougail.general.condition2 == "maybe" %} - it's disabled 2 - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/after.json deleted file mode 100644 index a614c3a6b..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "yes" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - }, - "rougail.general.test_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/base.json deleted file mode 100644 index e7f9b23f3..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "yes", - "rougail.general.condition2": "no", - "rougail.general.test_variable": "no" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/before.json deleted file mode 100644 index a614c3a6b..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "yes" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "no" - }, - "rougail.general.test_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/base.py deleted file mode 100644 index 522fd61cd..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit's disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled 2\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/multi.py deleted file mode 100644 index 033300b5a..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param4/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit's disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled 2\n{% endif %}\n" -dict_env['disabled_2.rougail.general.test_variable'] = "{% if rougail.general.condition != \"yes\" and rougail.general.condition != \"maybe\" %}\nit's disabled\n{% elif rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled 2\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.condition2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="condition2", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.condition2': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param5/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2d5a2c174..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'yes' - condition2: - type: string - description: No change - default: 'yes' - test_variable: - type: string - description: No change - hidden: true - default: 'no' - disabled: - type: jinja - jinja: | - {% if rougail.general.condition2 == "yes" or rougail.general.condition2 == "maybe" %} - it's disabled - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/after.json deleted file mode 100644 index 460e704b2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "yes" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/base.json deleted file mode 100644 index 93ee1cb37..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "yes", - "rougail.general.condition2": "yes" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/before.json deleted file mode 100644 index 460e704b2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "yes" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/base.py deleted file mode 100644 index a207a0bd8..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/multi.py deleted file mode 100644 index 0ab0855ce..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param5/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param6/dictionaries/rougail/00-base.yml deleted file mode 100644 index 18b4dec8c..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'no' - condition2: - type: string - description: No change - default: 'yes' - test_variable: - type: string - description: No change - hidden: true - default: 'no' - disabled: - type: jinja - jinja: | - {% if rougail.general.condition2 == "yes" or rougail.general.condition2 == "maybe" %} - it's disabled - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/after.json deleted file mode 100644 index 5afbc208b..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/base.json deleted file mode 100644 index a385aafd3..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "no", - "rougail.general.condition2": "yes" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/before.json deleted file mode 100644 index 5afbc208b..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.condition2": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/base.py deleted file mode 100644 index f1705df6e..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/multi.py deleted file mode 100644 index 82c415a1d..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param6/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.test_variable'] = "{% if rougail.general.condition2 == \"yes\" or rougail.general.condition2 == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="condition2", doc="No change", default="yes", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.test_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition2': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/dictionaries/rougail/00-base.yml deleted file mode 100644 index 80a4c45a7..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: oui - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" or rougail.general.condition == "maybe" %} - it's disabled - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" or rougail.general.condition == "maybe" %} - it's disabled - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/after.json deleted file mode 100644 index 84fd776c0..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/base.json deleted file mode 100644 index 0af6817e3..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.condition": "oui" -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/before.json deleted file mode 100644 index 84fd776c0..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/base.py deleted file mode 100644 index 8eac0d9e3..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/multi.py deleted file mode 100644 index a0ab7cdad..000000000 --- a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" or rougail.general.condition == \"maybe\" %}\nit's disabled\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_none/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_none/dictionaries/rougail/00-base.yml deleted file mode 100644 index 6990fe4b4..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if not rougail.general.condition %} - if not rougail.general.condition - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if not rougail.general.condition %} - if not rougail.general.condition - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_none/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_none/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_none/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_none/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabled_if_in_none/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_none/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_none/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_none/tiramisu/base.py deleted file mode 100644 index d1b0a0f2e..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_none/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_none/tiramisu/multi.py deleted file mode 100644 index 387183157..000000000 --- a/tests/dictionaries/10load_disabled_if_in_none/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if not rougail.general.condition %}\nif not rougail.general.condition\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_twice/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_twice/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8029a552d..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -version: '1.0' -my_var1: - default: 'no' -my_var2: - default: 'no' - disabled: - type: jinja - params: - my_var1: - type: variable - variable: rougail.my_var1 - propertyerror: false - jinja: | - {% if my_var1 is not defined %} - my_var1 is undefined! - {% elif my_var1 == "no" %} - my_var1 is no - {% endif %} -my_var3: - default: 'no' - disabled: - params: - my_var2: - type: variable - variable: rougail.my_var2 - propertyerror: false - type: jinja - jinja: | - {% if my_var2 is not defined %} - my_var2 is undefined! - {% elif my_var2 == "no" %} - my_var2 is no - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_twice/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_twice/makedict/after.json deleted file mode 100644 index 41b04961e..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_var1": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_twice/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_twice/makedict/base.json deleted file mode 100644 index 1978f1f42..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.my_var1": "no" -} diff --git a/tests/dictionaries/10load_disabled_if_in_twice/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_twice/makedict/before.json deleted file mode 100644 index 41b04961e..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.my_var1": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/base.py deleted file mode 100644 index 78a1c4d34..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.my_var2'] = "{% if my_var1 is not defined %}\nmy_var1 is undefined!\n{% elif my_var1 == \"no\" %}\nmy_var1 is no\n{% endif %}\n" -dict_env['disabled_rougail.my_var3'] = "{% if my_var2 is not defined %}\nmy_var2 is undefined!\n{% elif my_var2 == \"no\" %}\nmy_var2 is no\n{% endif %}\n" -option_2 = StrOption(name="my_var1", doc="my_var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="my_var2", doc="my_var2", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.my_var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var1': ParamOption(option_2, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -option_4 = StrOption(name="my_var3", doc="my_var3", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.my_var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var2': ParamOption(option_3, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/multi.py deleted file mode 100644 index a1294f852..000000000 --- a/tests/dictionaries/10load_disabled_if_in_twice/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.my_var2'] = "{% if my_var1 is not defined %}\nmy_var1 is undefined!\n{% elif my_var1 == \"no\" %}\nmy_var1 is no\n{% endif %}\n" -dict_env['disabled_1.rougail.my_var3'] = "{% if my_var2 is not defined %}\nmy_var2 is undefined!\n{% elif my_var2 == \"no\" %}\nmy_var2 is no\n{% endif %}\n" -dict_env['disabled_2.rougail.my_var2'] = "{% if my_var1 is not defined %}\nmy_var1 is undefined!\n{% elif my_var1 == \"no\" %}\nmy_var1 is no\n{% endif %}\n" -dict_env['disabled_2.rougail.my_var3'] = "{% if my_var2 is not defined %}\nmy_var2 is undefined!\n{% elif my_var2 == \"no\" %}\nmy_var2 is no\n{% endif %}\n" -option_3 = StrOption(name="my_var1", doc="my_var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="my_var2", doc="my_var2", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.my_var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var1': ParamOption(option_3, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="my_var3", doc="my_var3", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.my_var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var2': ParamOption(option_4, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="my_var1", doc="my_var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="my_var2", doc="my_var2", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.my_var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var1': ParamOption(option_8, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -option_10 = StrOption(name="my_var3", doc="my_var3", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.my_var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'my_var2': ParamOption(option_9, notraisepropertyerror=True)}), help_function=func['jinja_to_property_help'])})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index d3ee25dea..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: choice - description: No change - default: tous - choices: - - tous - - authentifié - - aucun - mode_conteneur_actif: - type: string - description: No change - default: tous - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == rougail.general.mode_conteneur_actif %} - rougail.general.condition == rougail.general.mode_conteneur_actif - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_variable/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_variable/makedict/after.json deleted file mode 100644 index 685d00af2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "tous" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_variable/makedict/base.json deleted file mode 100644 index 7ae932839..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "tous", - "rougail.general.mode_conteneur_actif": "tous" -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_variable/makedict/before.json deleted file mode 100644 index 685d00af2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "tous" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/base.py deleted file mode 100644 index 251b4bd96..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -option_3 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/multi.py deleted file mode 100644 index 09727bbe2..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -option_4 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_in_variable2/dictionaries/rougail/00-base.yml deleted file mode 100644 index f4dba7779..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: choice - description: No change - default: tous - choices: - - tous - - authentifié - - aucun - mode_conteneur_actif: - type: string - description: No change - default: aucun - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == rougail.general.mode_conteneur_actif %} - rougail.general.condition == rougail.general.mode_conteneur_actif - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/after.json b/tests/dictionaries/10load_disabled_if_in_variable2/makedict/after.json deleted file mode 100644 index 60ac96630..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "aucun" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/base.json b/tests/dictionaries/10load_disabled_if_in_variable2/makedict/base.json deleted file mode 100644 index 450218a74..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "tous", - "rougail.general.mode_conteneur_actif": "aucun", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/before.json b/tests/dictionaries/10load_disabled_if_in_variable2/makedict/before.json deleted file mode 100644 index 60ac96630..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "aucun" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/base.py deleted file mode 100644 index d5eb6ebea..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -option_3 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="aucun", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/multi.py deleted file mode 100644 index 289d38e08..000000000 --- a/tests/dictionaries/10load_disabled_if_in_variable2/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nrougail.general.condition == rougail.general.mode_conteneur_actif\n{% endif %}\n" -option_4 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="aucun", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="aucun", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_not_in_fallback/dictionaries/rougail/00-base.yml deleted file mode 100644 index f135c3e16..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: 'no' - disable_variable: - type: string - description: No change - default: 'no' - disabled: - type: jinja - params: - unknown: - type: 'variable' - variable: rougail.general.unknown - optional: true - jinja: | - {% if unknown is defined and unknown != "no" %} - unknown is defined ! - {% endif %} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/after.json b/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/after.json deleted file mode 100644 index 4b3727059..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.disable_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/base.json b/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/base.json deleted file mode 100644 index 83bab05bc..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "no", - "rougail.general.disable_variable": "no" -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/before.json b/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/before.json deleted file mode 100644 index 4b3727059..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "no" - }, - "rougail.general.disable_variable": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/mandatory.json b/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/base.py deleted file mode 100644 index 1b2337283..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.disable_variable'] = "{% if unknown is defined and unknown != \"no\" %}\nunknown is defined !\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="disable_variable", doc="No change", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.disable_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/multi.py deleted file mode 100644 index d4d8ff13b..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.disable_variable'] = "{% if unknown is defined and unknown != \"no\" %}\nunknown is defined !\n{% endif %}\n" -dict_env['disabled_2.rougail.general.disable_variable'] = "{% if unknown is defined and unknown != \"no\" %}\nunknown is defined !\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="disable_variable", doc="No change", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.disable_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="condition", doc="No change", default="no", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="disable_variable", doc="No change", default="no", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.disable_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/dictionaries/rougail/00-base.yml deleted file mode 100644 index 46e648f6e..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - params: - activer_client_ldap: - type: variable - variable: rougail.general.activer_client_ldap - optional: true - jinja: | - {% if activer_client_ldap is not defined %} - activer_client_ldap is undefined - {% elif activer_client_ldap == "non" %} - false - {% else %} - activer_client_ldap is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: true diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/after.json b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/after.json deleted file mode 100644 index 3ecfa6616..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/base.json b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/base.json deleted file mode 100644 index c2441e806..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.condition": "non" -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/before.json b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/before.json deleted file mode 100644 index 3ecfa6616..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/mandatory.json b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/base.py b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/base.py deleted file mode 100644 index 58ead17fd..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nfalse\n{% else %}\nactiver_client_ldap is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/multi.py b/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/multi.py deleted file mode 100644 index 96b81b5c9..000000000 --- a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nfalse\n{% else %}\nactiver_client_ldap is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nfalse\n{% else %}\nactiver_client_ldap is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_fallback/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabledifin_fallback/dictionaries/rougail/00-base.yml deleted file mode 100644 index 7971cfc7e..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - params: - activer_client_ldap: - type: variable - variable: rougail.general.activer_client_ldap - optional: true - jinja: | - {% if activer_client_ldap is not defined %} - activer_client_ldap is undefined - {% elif activer_client_ldap == "non" %} - activer_client_ldap is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_disabledifin_fallback/makedict/after.json b/tests/dictionaries/10load_disabledifin_fallback/makedict/after.json deleted file mode 100644 index c0cfea302..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_fallback/makedict/base.json b/tests/dictionaries/10load_disabledifin_fallback/makedict/base.json deleted file mode 100644 index afb429c09..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabledifin_fallback/makedict/before.json b/tests/dictionaries/10load_disabledifin_fallback/makedict/before.json deleted file mode 100644 index c0cfea302..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_fallback/makedict/mandatory.json b/tests/dictionaries/10load_disabledifin_fallback/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_disabledifin_fallback/tiramisu/base.py b/tests/dictionaries/10load_disabledifin_fallback/tiramisu/base.py deleted file mode 100644 index 2732a6500..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nactiver_client_ldap is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabledifin_fallback/tiramisu/multi.py b/tests/dictionaries/10load_disabledifin_fallback/tiramisu/multi.py deleted file mode 100644 index fa8d89065..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nactiver_client_ldap is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is not defined %}\nactiver_client_ldap is undefined\n{% elif activer_client_ldap == \"non\" %}\nactiver_client_ldap is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabledifin_fallback_force/dictionaries/rougail/00-base.yml deleted file mode 100644 index 66364286a..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - params: - activer_client_ldap: - type: variable - variable: rougail.general.activer_client_ldap - optional: true - jinja: | - {% if activer_client_ldap is defined and activer_client_ldap == "non" %} - activer_client_ldap is non - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/after.json b/tests/dictionaries/10load_disabledifin_fallback_force/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/base.json b/tests/dictionaries/10load_disabledifin_fallback_force/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/before.json b/tests/dictionaries/10load_disabledifin_fallback_force/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/mandatory.json b/tests/dictionaries/10load_disabledifin_fallback_force/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/base.py b/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/base.py deleted file mode 100644 index fbf2669d7..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is defined and activer_client_ldap == \"non\" %}\nactiver_client_ldap is non\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/multi.py b/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/multi.py deleted file mode 100644 index 65f02359e..000000000 --- a/tests/dictionaries/10load_disabledifin_fallback_force/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is defined and activer_client_ldap == \"non\" %}\nactiver_client_ldap is non\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if activer_client_ldap is defined and activer_client_ldap == \"non\" %}\nactiver_client_ldap is non\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_disabledifin_whithouttype/dictionaries/rougail/00-base.yml deleted file mode 100644 index ab36d7a06..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition == "oui" - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - rougail.general.condition == "oui" - {% endif %} diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/after.json b/tests/dictionaries/10load_disabledifin_whithouttype/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/base.json b/tests/dictionaries/10load_disabledifin_whithouttype/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/before.json b/tests/dictionaries/10load_disabledifin_whithouttype/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/mandatory.json b/tests/dictionaries/10load_disabledifin_whithouttype/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/base.py b/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/base.py deleted file mode 100644 index 809dfcb38..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/multi.py b/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/multi.py deleted file mode 100644 index 875820eef..000000000 --- a/tests/dictionaries/10load_disabledifin_whithouttype/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\nrougail.general.condition == \"oui\"\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifin/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_frozenifin/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1112cea9b..000000000 --- a/tests/dictionaries/10load_frozenifin/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_frozenifin/makedict/after.json b/tests/dictionaries/10load_frozenifin/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifin/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin/makedict/base.json b/tests/dictionaries/10load_frozenifin/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_frozenifin/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_frozenifin/makedict/before.json b/tests/dictionaries/10load_frozenifin/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifin/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin/makedict/mandatory.json b/tests/dictionaries/10load_frozenifin/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_frozenifin/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_frozenifin/tiramisu/base.py b/tests/dictionaries/10load_frozenifin/tiramisu/base.py deleted file mode 100644 index 6ea8b2c5b..000000000 --- a/tests/dictionaries/10load_frozenifin/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_frozenifin/tiramisu/multi.py b/tests/dictionaries/10load_frozenifin/tiramisu/multi.py deleted file mode 100644 index 10c3a2a11..000000000 --- a/tests/dictionaries/10load_frozenifin/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifin_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_frozenifin_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index ebc276bff..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,35 +0,0 @@ -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ "non" | calc_val }}' - hidden: - type: jinja - jinja: '{% if rougail.general.condition == "oui" %} - - condition is oui - - {% endif %} - - ' - mandatory: false - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: '{% if rougail.general.condition == "oui" %} - - condition is oui - - {% endif %} - - ' diff --git a/tests/dictionaries/10load_frozenifin_auto/makedict/after.json b/tests/dictionaries/10load_frozenifin_auto/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_auto/makedict/base.json b/tests/dictionaries/10load_frozenifin_auto/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_frozenifin_auto/makedict/before.json b/tests/dictionaries/10load_frozenifin_auto/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_auto/makedict/mandatory.json b/tests/dictionaries/10load_frozenifin_auto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_frozenifin_auto/tiramisu/base.py b/tests/dictionaries/10load_frozenifin_auto/tiramisu/base.py deleted file mode 100644 index c25f31e25..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"non\" | calc_val }}" -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_frozenifin_auto/tiramisu/multi.py b/tests/dictionaries/10load_frozenifin_auto/tiramisu/multi.py deleted file mode 100644 index 56ba33fcf..000000000 --- a/tests/dictionaries/10load_frozenifin_auto/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | calc_val }}" -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | calc_val }}" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifin_multiparam/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_frozenifin_multiparam/dictionaries/rougail/00-base.yml deleted file mode 100644 index cef1b8113..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: choice - description: No change - default: tous - choices: - - tous - - authentifié - - aucun - mode_conteneur_actif: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "tous" or rougail.general.condition == "authentifié" %} - it's hidden - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "tous" or rougail.general.condition == "authentifié" %} - it's hidden - {% endif %} diff --git a/tests/dictionaries/10load_frozenifin_multiparam/makedict/after.json b/tests/dictionaries/10load_frozenifin_multiparam/makedict/after.json deleted file mode 100644 index 8647ce6a2..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_multiparam/makedict/base.json b/tests/dictionaries/10load_frozenifin_multiparam/makedict/base.json deleted file mode 100644 index 13a9e66cd..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "tous", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_frozenifin_multiparam/makedict/before.json b/tests/dictionaries/10load_frozenifin_multiparam/makedict/before.json deleted file mode 100644 index 8647ce6a2..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_multiparam/makedict/mandatory.json b/tests/dictionaries/10load_frozenifin_multiparam/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/base.py b/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/base.py deleted file mode 100644 index 88ad74204..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -option_3 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/multi.py b/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/multi.py deleted file mode 100644 index 1bde69878..000000000 --- a/tests/dictionaries/10load_frozenifin_multiparam/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"tous\" or rougail.general.condition == \"authentifié\" %}\nit's hidden\n{% endif %}\n" -option_4 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifin_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_frozenifin_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index 66dde4410..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: choice - description: No change - default: tous - choices: - - tous - - authentifié - - aucun - mode_conteneur_actif: - type: string - description: No change - default: tous - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == rougail.general.mode_conteneur_actif %} - it's hidden - {% endif %} diff --git a/tests/dictionaries/10load_frozenifin_variable/makedict/after.json b/tests/dictionaries/10load_frozenifin_variable/makedict/after.json deleted file mode 100644 index 1f7f53ed4..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_variable/makedict/base.json b/tests/dictionaries/10load_frozenifin_variable/makedict/base.json deleted file mode 100644 index 5b7d5b3a1..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "tous", - "rougail.general.mode_conteneur_actif": "tous", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_frozenifin_variable/makedict/before.json b/tests/dictionaries/10load_frozenifin_variable/makedict/before.json deleted file mode 100644 index 1f7f53ed4..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "tous" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifin_variable/makedict/mandatory.json b/tests/dictionaries/10load_frozenifin_variable/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_frozenifin_variable/tiramisu/base.py b/tests/dictionaries/10load_frozenifin_variable/tiramisu/base.py deleted file mode 100644 index ad97a6451..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -option_3 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_frozenifin_variable/tiramisu/multi.py b/tests/dictionaries/10load_frozenifin_variable/tiramisu/multi.py deleted file mode 100644 index 9b0979dde..000000000 --- a/tests/dictionaries/10load_frozenifin_variable/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == rougail.general.mode_conteneur_actif %}\nit's hidden\n{% endif %}\n" -option_4 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = ChoiceOption(name="condition", doc="No change", values=("tous", "authentifié", "aucun"), default="tous", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="tous", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifnotin/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_frozenifnotin/dictionaries/rougail/00-base.yml deleted file mode 100644 index 382cbc2ed..000000000 --- a/tests/dictionaries/10load_frozenifnotin/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition != "oui" %} - it's hidden - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition != "oui" %} - it's hidden - {% endif %} diff --git a/tests/dictionaries/10load_frozenifnotin/makedict/after.json b/tests/dictionaries/10load_frozenifnotin/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifnotin/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifnotin/makedict/base.json b/tests/dictionaries/10load_frozenifnotin/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_frozenifnotin/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_frozenifnotin/makedict/before.json b/tests/dictionaries/10load_frozenifnotin/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_frozenifnotin/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_frozenifnotin/makedict/mandatory.json b/tests/dictionaries/10load_frozenifnotin/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_frozenifnotin/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_frozenifnotin/tiramisu/base.py b/tests/dictionaries/10load_frozenifnotin/tiramisu/base.py deleted file mode 100644 index 28e0851e7..000000000 --- a/tests/dictionaries/10load_frozenifnotin/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_frozenifnotin/tiramisu/multi.py b/tests/dictionaries/10load_frozenifnotin/tiramisu/multi.py deleted file mode 100644 index 077191b69..000000000 --- a/tests/dictionaries/10load_frozenifnotin/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition != \"oui\" %}\nit's hidden\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_hidden_if_empty_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_hidden_if_empty_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 77fe590ae..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -version: '1.0' -general: - description: Général - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} -general2: - description: Général2 - type: family - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_hidden_if_empty_family/makedict/after.json b/tests/dictionaries/10load_hidden_if_empty_family/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_hidden_if_empty_family/makedict/base.json b/tests/dictionaries/10load_hidden_if_empty_family/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_hidden_if_empty_family/makedict/before.json b/tests/dictionaries/10load_hidden_if_empty_family/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_hidden_if_empty_family/makedict/mandatory.json b/tests/dictionaries/10load_hidden_if_empty_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/base.py b/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/base.py deleted file mode 100644 index 752741186..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="Général", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/multi.py b/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/multi.py deleted file mode 100644 index 8c7a16d14..000000000 --- a/tests/dictionaries/10load_hidden_if_empty_family/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="Général", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_11)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_11)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="general", doc="Général", children=[option_11, option_12, option_13], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10load_hidden_if_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_hidden_if_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 745c18db6..000000000 --- a/tests/dictionaries/10load_hidden_if_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -version: '1.0' -general: - description: Général - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} -general2: - description: Général2 - mode_conteneur_actif3: - type: string - description: No change - hidden: true - default: non - hidden: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_hidden_if_family/makedict/after.json b/tests/dictionaries/10load_hidden_if_family/makedict/after.json deleted file mode 100644 index 72ccdddc8..000000000 --- a/tests/dictionaries/10load_hidden_if_family/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_hidden_if_family/makedict/base.json b/tests/dictionaries/10load_hidden_if_family/makedict/base.json deleted file mode 100644 index 14d8f8051..000000000 --- a/tests/dictionaries/10load_hidden_if_family/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non", - "rougail.general2.mode_conteneur_actif3": "non" -} diff --git a/tests/dictionaries/10load_hidden_if_family/makedict/before.json b/tests/dictionaries/10load_hidden_if_family/makedict/before.json deleted file mode 100644 index 72ccdddc8..000000000 --- a/tests/dictionaries/10load_hidden_if_family/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_hidden_if_family/makedict/mandatory.json b/tests/dictionaries/10load_hidden_if_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_hidden_if_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_hidden_if_family/tiramisu/base.py b/tests/dictionaries/10load_hidden_if_family/tiramisu/base.py deleted file mode 100644 index 4549aab74..000000000 --- a/tests/dictionaries/10load_hidden_if_family/tiramisu/base.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_rougail.general2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="Général", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="general2", doc="Général2", children=[option_7], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_hidden_if_family/tiramisu/multi.py b/tests/dictionaries/10load_hidden_if_family/tiramisu/multi.py deleted file mode 100644 index e21976509..000000000 --- a/tests/dictionaries/10load_hidden_if_family/tiramisu/multi.py +++ /dev/null @@ -1,34 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_1.rougail.general2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['hidden_2.rougail.general2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="Général", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general2", doc="Général2", children=[option_8], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -option_14 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -optiondescription_11 = OptionDescription(name="general", doc="Général", children=[option_12, option_13, option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_15 = OptionDescription(name="general2", doc="Général2", children=[option_16], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10load_hidden_if_family2/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_hidden_if_family2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 4051a9a46..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: '1.0' -condition1: - type: boolean - default: false -condition2: - type: boolean - default: false -general: - hidden: - type: jinja - jinja: '{% if not rougail.condition1 %} - - condition1 is no - - {% endif %} - - ' - my_variable: - hidden: true - mandatory: false diff --git a/tests/dictionaries/10load_hidden_if_family2/makedict/after.json b/tests/dictionaries/10load_hidden_if_family2/makedict/after.json deleted file mode 100644 index 71754cfa0..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.condition1": { - "owner": "default", - "value": false - }, - "rougail.condition2": { - "owner": "default", - "value": false - }, - "rougail.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_hidden_if_family2/makedict/base.json b/tests/dictionaries/10load_hidden_if_family2/makedict/base.json deleted file mode 100644 index 8e864d0c5..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.condition1": false, - "rougail.condition2": false, - "rougail.general.my_variable": null -} diff --git a/tests/dictionaries/10load_hidden_if_family2/makedict/before.json b/tests/dictionaries/10load_hidden_if_family2/makedict/before.json deleted file mode 100644 index 71754cfa0..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.condition1": { - "owner": "default", - "value": false - }, - "rougail.condition2": { - "owner": "default", - "value": false - }, - "rougail.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_hidden_if_family2/makedict/mandatory.json b/tests/dictionaries/10load_hidden_if_family2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_hidden_if_family2/tiramisu/base.py b/tests/dictionaries/10load_hidden_if_family2/tiramisu/base.py deleted file mode 100644 index 6d96ac4d9..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -option_2 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_3 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_4 = OptionDescription(name="general", doc="general", children=[option_5], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_hidden_if_family2/tiramisu/multi.py b/tests/dictionaries/10load_hidden_if_family2/tiramisu/multi.py deleted file mode 100644 index 6a039355f..000000000 --- a/tests/dictionaries/10load_hidden_if_family2/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -dict_env['hidden_2.rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -option_3 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_4 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_10 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, option_10, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_hidden_if_family3/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_hidden_if_family3/dictionaries/rougail/00-base.yml deleted file mode 100644 index a4564a7b0..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: '1.0' -condition1: - type: boolean - default: false -condition2: - type: boolean - default: false -general: - hidden: - type: jinja - jinja: '{% if not rougail.condition1 %} - - condition1 is no - - {% endif %} - - ' - my_variable: - hidden: - type: jinja - jinja: '{% if rougail.condition2 %} - - condition is yes - - {% endif %} - - ' - mandatory: false diff --git a/tests/dictionaries/10load_hidden_if_family3/makedict/after.json b/tests/dictionaries/10load_hidden_if_family3/makedict/after.json deleted file mode 100644 index 71754cfa0..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.condition1": { - "owner": "default", - "value": false - }, - "rougail.condition2": { - "owner": "default", - "value": false - }, - "rougail.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_hidden_if_family3/makedict/base.json b/tests/dictionaries/10load_hidden_if_family3/makedict/base.json deleted file mode 100644 index 8e864d0c5..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.condition1": false, - "rougail.condition2": false, - "rougail.general.my_variable": null -} diff --git a/tests/dictionaries/10load_hidden_if_family3/makedict/before.json b/tests/dictionaries/10load_hidden_if_family3/makedict/before.json deleted file mode 100644 index 71754cfa0..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.condition1": { - "owner": "default", - "value": false - }, - "rougail.condition2": { - "owner": "default", - "value": false - }, - "rougail.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_hidden_if_family3/makedict/mandatory.json b/tests/dictionaries/10load_hidden_if_family3/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_hidden_if_family3/tiramisu/base.py b/tests/dictionaries/10load_hidden_if_family3/tiramisu/base.py deleted file mode 100644 index 8e6d905f8..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_rougail.general.my_variable'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['frozen_rougail.general.my_variable'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -dict_env['frozen_rougail.general.my_variable_0'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['hidden_rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -option_2 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_3 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.my_variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="general", doc="general", children=[option_5], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_hidden_if_family3/tiramisu/multi.py b/tests/dictionaries/10load_hidden_if_family3/tiramisu/multi.py deleted file mode 100644 index 89521cb88..000000000 --- a/tests/dictionaries/10load_hidden_if_family3/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['hidden_1.rougail.general.my_variable'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['frozen_1.rougail.general.my_variable'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -dict_env['frozen_1.rougail.general.my_variable_0'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['hidden_1.rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -dict_env['hidden_2.rougail.general.my_variable'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['frozen_2.rougail.general.my_variable'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -dict_env['frozen_2.rougail.general.my_variable_0'] = "{% if rougail.condition2 %}\ncondition is yes\n{% endif %}\n" -dict_env['hidden_2.rougail.general'] = "{% if not rougail.condition1 %}\ncondition1 is no\n{% endif %}\n" -option_3 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_4 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.my_variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="general", doc="general", children=[option_6], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = BoolOption(name="condition1", doc="condition1", default=False, properties=frozenset({"mandatory", "standard"})) -option_10 = BoolOption(name="condition2", doc="condition2", default=False, properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"force_default_on_freeze", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.my_variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_9)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.my_variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, option_10, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0c8a2fe12..000000000 --- a/tests/dictionaries/10load_leadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership/makedict/after.json b/tests/dictionaries/10load_leadership/makedict/after.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership/makedict/base.json b/tests/dictionaries/10load_leadership/makedict/base.json deleted file mode 100644 index 14aaf55f0..000000000 --- a/tests/dictionaries/10load_leadership/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [] -} diff --git a/tests/dictionaries/10load_leadership/makedict/before.json b/tests/dictionaries/10load_leadership/makedict/before.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership/makedict/mandatory.json b/tests/dictionaries/10load_leadership/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership/tiramisu/base.py b/tests/dictionaries/10load_leadership/tiramisu/base.py deleted file mode 100644 index ed2077590..000000000 --- a/tests/dictionaries/10load_leadership/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership/tiramisu/multi.py b/tests/dictionaries/10load_leadership/tiramisu/multi.py deleted file mode 100644 index 63bc34eeb..000000000 --- a/tests/dictionaries/10load_leadership/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_17)})), properties=frozenset({"standard"})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_14 = OptionDescription(name="general1", doc="general1", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10load_leadership_default_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_default_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index b72146dda..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: leader - multi: true - default: - - non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: value - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership_default_multi/makedict/after.json b/tests/dictionaries/10load_leadership_default_multi/makedict/after.json deleted file mode 100644 index 613679936..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/makedict/after.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_default_multi/makedict/base.json b/tests/dictionaries/10load_leadership_default_multi/makedict/base.json deleted file mode 100644 index 0b5a23e59..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ], - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10load_leadership_default_multi/makedict/before.json b/tests/dictionaries/10load_leadership_default_multi/makedict/before.json deleted file mode 100644 index 613679936..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/makedict/before.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_default_multi/makedict/mandatory.json b/tests/dictionaries/10load_leadership_default_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_default_multi/tiramisu/base.py b/tests/dictionaries/10load_leadership_default_multi/tiramisu/base.py deleted file mode 100644 index 3d2bb2493..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_default_multi/tiramisu/multi.py b/tests/dictionaries/10load_leadership_default_multi/tiramisu/multi.py deleted file mode 100644 index 096b2e50b..000000000 --- a/tests/dictionaries/10load_leadership_default_multi/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_default_multi_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index ed2a89954..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: '1.1' -general: - leader: - type: leadership - leader: - mandatory: false - follower1: - default: value - follower2: - mandatory: false diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/after.json b/tests/dictionaries/10load_leadership_default_multi_auto/makedict/after.json deleted file mode 100644 index fe99b1e57..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/base.json b/tests/dictionaries/10load_leadership_default_multi_auto/makedict/base.json deleted file mode 100644 index 265e8efd4..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/before.json b/tests/dictionaries/10load_leadership_default_multi_auto/makedict/before.json deleted file mode 100644 index fe99b1e57..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/mandatory.json b/tests/dictionaries/10load_leadership_default_multi_auto/makedict/mandatory.json deleted file mode 100644 index fe51488c7..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/base.py b/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/base.py deleted file mode 100644 index 2ce140485..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_5 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/multi.py b/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/multi.py deleted file mode 100644 index ffed23007..000000000 --- a/tests/dictionaries/10load_leadership_default_multi_auto/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[optiondescription_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_13 = StrOption(name="follower1", doc="follower1", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_11 = Leadership(name="leader", doc="leader", children=[option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10load_leadership_default_submulti/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_default_submulti/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9b3d2c6b7..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: leader - multi: true - default: - - non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - default: - - leader - follower1: - type: string - description: follower1 - multi: true - default: - - value - follower2: - type: string - description: follower2 - multi: true - default: - - value1 - - value2 diff --git a/tests/dictionaries/10load_leadership_default_submulti/makedict/after.json b/tests/dictionaries/10load_leadership_default_submulti/makedict/after.json deleted file mode 100644 index 980be29ff..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/makedict/after.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "leader" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - [ - "value" - ] - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - [ - "value1", - "value2" - ] - ] - } -} diff --git a/tests/dictionaries/10load_leadership_default_submulti/makedict/base.json b/tests/dictionaries/10load_leadership_default_submulti/makedict/base.json deleted file mode 100644 index a73433842..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/makedict/base.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ], - "rougail.general.leader.leader": [ - { - "rougail.general.leader.leader": "leader", - "rougail.general.leader.follower1": [ - "value" - ], - "rougail.general.leader.follower2": [ - "value1", - "value2" - ] - } - ] -} diff --git a/tests/dictionaries/10load_leadership_default_submulti/makedict/before.json b/tests/dictionaries/10load_leadership_default_submulti/makedict/before.json deleted file mode 100644 index 980be29ff..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/makedict/before.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "leader" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - [ - "value" - ] - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - [ - "value1", - "value2" - ] - ] - } -} diff --git a/tests/dictionaries/10load_leadership_default_submulti/makedict/mandatory.json b/tests/dictionaries/10load_leadership_default_submulti/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_default_submulti/tiramisu/base.py b/tests/dictionaries/10load_leadership_default_submulti/tiramisu/base.py deleted file mode 100644 index 636aad463..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_default_submulti/tiramisu/multi.py b/tests/dictionaries/10load_leadership_default_submulti/tiramisu/multi.py deleted file mode 100644 index 9cfc91f93..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_default_submulti_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index 139bc9a87..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.1' -general: - leader: - type: leadership - leader: - default: - - leader - follower1: - default: - - value - follower2: - default: - - value1 - - value2 diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/after.json b/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/after.json deleted file mode 100644 index 67600412d..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/after.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "leader" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - [ - "value" - ] - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - [ - "value1", - "value2" - ] - ] - } -} diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/base.json b/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/base.json deleted file mode 100644 index 5082c8ff0..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/base.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.leader.leader": [ - { - "rougail.general.leader.leader": "leader", - "rougail.general.leader.follower1": [ - "value" - ], - "rougail.general.leader.follower2": [ - "value1", - "value2" - ] - } - ] -} diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/before.json b/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/before.json deleted file mode 100644 index 67600412d..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/before.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "leader" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - [ - "value" - ] - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - [ - "value1", - "value2" - ] - ] - } -} diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/mandatory.json b/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/base.py b/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/base.py deleted file mode 100644 index eff87f775..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/multi.py b/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/multi.py deleted file mode 100644 index 0cd780497..000000000 --- a/tests/dictionaries/10load_leadership_default_submulti_auto/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[optiondescription_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="leader", doc="leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = StrOption(name="follower1", doc="follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_14 = StrOption(name="follower2", doc="follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = Leadership(name="leader", doc="leader", children=[option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_defaultmulti_leader/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1ec3f1dab..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: leader - multi: true - default: - - non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - default: - - value - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/after.json b/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/after.json deleted file mode 100644 index 79cbbbfb8..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/after.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "value" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - null - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - null - ] - } -} diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/base.json b/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/base.json deleted file mode 100644 index b923902dc..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ], - "rougail.general.leader.leader": [ - { - "rougail.general.leader.leader": "value", - "rougail.general.leader.follower1": null, - "rougail.general.leader.follower2": null - } - ] -} diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/before.json b/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/before.json deleted file mode 100644 index 79cbbbfb8..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/before.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "value" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "default" - ], - "value": [ - null - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default" - ], - "value": [ - null - ] - } -} diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/mandatory.json b/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/base.py b/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/base.py deleted file mode 100644 index f7b3b90de..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, default=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/multi.py b/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/multi.py deleted file mode 100644 index 38677519c..000000000 --- a/tests/dictionaries/10load_leadership_defaultmulti_leader/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, default=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="leader", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, default=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10load_leadership_description/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_description/dictionaries/rougail/00-base.yml deleted file mode 100644 index 700c665c5..000000000 --- a/tests/dictionaries/10load_leadership_description/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: other description - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership_description/makedict/after.json b/tests/dictionaries/10load_leadership_description/makedict/after.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership_description/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_description/makedict/base.json b/tests/dictionaries/10load_leadership_description/makedict/base.json deleted file mode 100644 index 14aaf55f0..000000000 --- a/tests/dictionaries/10load_leadership_description/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [] -} diff --git a/tests/dictionaries/10load_leadership_description/makedict/before.json b/tests/dictionaries/10load_leadership_description/makedict/before.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership_description/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_description/makedict/mandatory.json b/tests/dictionaries/10load_leadership_description/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_description/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_description/tiramisu/base.py b/tests/dictionaries/10load_leadership_description/tiramisu/base.py deleted file mode 100644 index dc43965c8..000000000 --- a/tests/dictionaries/10load_leadership_description/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="other description", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_description/tiramisu/multi.py b/tests/dictionaries/10load_leadership_description/tiramisu/multi.py deleted file mode 100644 index bce035e8c..000000000 --- a/tests/dictionaries/10load_leadership_description/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="other description", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.leader.follower1': ParamOption(option_17)})), properties=frozenset({"standard"})) -optiondescription_15 = Leadership(name="leader", doc="other description", children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_14 = OptionDescription(name="general1", doc="general1", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10load_leadership_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_name/dictionaries/rougail/00-base.yml deleted file mode 100644 index 7ddf0453e..000000000 --- a/tests/dictionaries/10load_leadership_name/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - other_name: - description: other_name - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - default: - type: jinja - jinja: '{{ rougail.general1.other_name.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership_name/makedict/after.json b/tests/dictionaries/10load_leadership_name/makedict/after.json deleted file mode 100644 index 9a3e9d32a..000000000 --- a/tests/dictionaries/10load_leadership_name/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.other_name.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_name/makedict/base.json b/tests/dictionaries/10load_leadership_name/makedict/base.json deleted file mode 100644 index 0f5932d12..000000000 --- a/tests/dictionaries/10load_leadership_name/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.other_name.leader": [] -} diff --git a/tests/dictionaries/10load_leadership_name/makedict/before.json b/tests/dictionaries/10load_leadership_name/makedict/before.json deleted file mode 100644 index 9a3e9d32a..000000000 --- a/tests/dictionaries/10load_leadership_name/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.other_name.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_name/makedict/mandatory.json b/tests/dictionaries/10load_leadership_name/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_name/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_name/tiramisu/base.py b/tests/dictionaries/10load_leadership_name/tiramisu/base.py deleted file mode 100644 index 640cb7c31..000000000 --- a/tests/dictionaries/10load_leadership_name/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.other_name.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.other_name.follower2'] = "{{ rougail.general1.other_name.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.other_name.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.other_name.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.other_name.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="other_name", doc="other_name", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_name/tiramisu/multi.py b/tests/dictionaries/10load_leadership_name/tiramisu/multi.py deleted file mode 100644 index 383d19375..000000000 --- a/tests/dictionaries/10load_leadership_name/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.other_name.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.other_name.follower2'] = "{{ rougail.general1.other_name.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.other_name.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.other_name.follower2'] = "{{ rougail.general1.other_name.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.other_name.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.other_name.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.other_name.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="other_name", doc="other_name", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.other_name.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.other_name.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general1.other_name.follower1': ParamOption(option_17)})), properties=frozenset({"standard"})) -optiondescription_15 = Leadership(name="other_name", doc="other_name", children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_14 = OptionDescription(name="general1", doc="general1", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10load_leadership_submulti/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_leadership_submulti/dictionaries/rougail/00-base.yml deleted file mode 100644 index 157d558eb..000000000 --- a/tests/dictionaries/10load_leadership_submulti/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - multi: true - default: - type: jinja - jinja: '{{ rougail.general1.leader.follower1 | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10load_leadership_submulti/makedict/after.json b/tests/dictionaries/10load_leadership_submulti/makedict/after.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership_submulti/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_submulti/makedict/base.json b/tests/dictionaries/10load_leadership_submulti/makedict/base.json deleted file mode 100644 index 14aaf55f0..000000000 --- a/tests/dictionaries/10load_leadership_submulti/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [] -} diff --git a/tests/dictionaries/10load_leadership_submulti/makedict/before.json b/tests/dictionaries/10load_leadership_submulti/makedict/before.json deleted file mode 100644 index f7be8deb1..000000000 --- a/tests/dictionaries/10load_leadership_submulti/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10load_leadership_submulti/makedict/mandatory.json b/tests/dictionaries/10load_leadership_submulti/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_leadership_submulti/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_leadership_submulti/tiramisu/base.py b/tests/dictionaries/10load_leadership_submulti/tiramisu/base.py deleted file mode 100644 index a3a309cad..000000000 --- a/tests/dictionaries/10load_leadership_submulti/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=submulti, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general1.leader.follower1': ParamOption(option_7)})), properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general1", doc="general1", children=[optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_leadership_submulti/tiramisu/multi.py b/tests/dictionaries/10load_leadership_submulti/tiramisu/multi.py deleted file mode 100644 index 1126500b1..000000000 --- a/tests/dictionaries/10load_leadership_submulti/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_1.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower1'] = "{{ \"valfill\" | calc_val }}" -dict_env['default_2.rougail.general1.leader.follower2'] = "{{ rougail.general1.leader.follower1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=submulti, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general1.leader.follower1': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="general1", doc="general1", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -option_18 = StrOption(name="follower2", doc="follower2", multi=submulti, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general1.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general1.leader.follower1': ParamOption(option_17)})), properties=frozenset({"standard"})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_14 = OptionDescription(name="general1", doc="general1", children=[optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/10load_mandatory_relative_path/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_mandatory_relative_path/dictionaries/rougail/00-base.yml deleted file mode 100644 index 15624b30f..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -version: '1.1' -general: - condition: - type: boolean - default: true - mode_conteneur_actif: - mandatory: - type: jinja - jinja: | - {% if _.condition == "yes" %} - condition is yes - {% endif %} diff --git a/tests/dictionaries/10load_mandatory_relative_path/makedict/after.json b/tests/dictionaries/10load_mandatory_relative_path/makedict/after.json deleted file mode 100644 index 5d5ce8188..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_mandatory_relative_path/makedict/base.json b/tests/dictionaries/10load_mandatory_relative_path/makedict/base.json deleted file mode 100644 index 4ec5f8013..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": true, - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/10load_mandatory_relative_path/makedict/before.json b/tests/dictionaries/10load_mandatory_relative_path/makedict/before.json deleted file mode 100644 index 5d5ce8188..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_mandatory_relative_path/makedict/mandatory.json b/tests/dictionaries/10load_mandatory_relative_path/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_mandatory_relative_path/tiramisu/base.py b/tests/dictionaries/10load_mandatory_relative_path/tiramisu/base.py deleted file mode 100644 index 4f2ca14e1..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['mandatory_rougail.general.mode_conteneur_actif'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_mandatory_relative_path/tiramisu/multi.py b/tests/dictionaries/10load_mandatory_relative_path/tiramisu/multi.py deleted file mode 100644 index e2e5c283a..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['mandatory_1.rougail.general.mode_conteneur_actif'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" -dict_env['mandatory_2.rougail.general.mode_conteneur_actif'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" -option_4 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_mandatory_relative_path_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index f46661717..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.1' -general: - condition: - type: boolean - default: true - mode_conteneur_actif: - mandatory: - type: variable - variable: _.condition diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/after.json b/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/after.json deleted file mode 100644 index 5d5ce8188..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/base.json b/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/base.json deleted file mode 100644 index 4ec5f8013..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.condition": true, - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/before.json b/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/before.json deleted file mode 100644 index 5d5ce8188..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/mandatory.json b/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/mandatory.json deleted file mode 100644 index 89fb354f2..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.mode_conteneur_actif"] \ No newline at end of file diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/base.py b/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/base.py deleted file mode 100644 index 8ece77a5f..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_3))), help_function=func['variable_to_property'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/multi.py b/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/multi.py deleted file mode 100644 index e2be69fdd..000000000 --- a/tests/dictionaries/10load_mandatory_relative_path_variable/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_4))), help_function=func['variable_to_property'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="mode_conteneur_actif", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_9))), help_function=func['variable_to_property'])})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_mandatoryifin/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_mandatoryifin/dictionaries/rougail/00-base.yml deleted file mode 100644 index dccd1dabc..000000000 --- a/tests/dictionaries/10load_mandatoryifin/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - mandatory: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - mandatory: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/10load_mandatoryifin/makedict/after.json b/tests/dictionaries/10load_mandatoryifin/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_mandatoryifin/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_mandatoryifin/makedict/base.json b/tests/dictionaries/10load_mandatoryifin/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/10load_mandatoryifin/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/10load_mandatoryifin/makedict/before.json b/tests/dictionaries/10load_mandatoryifin/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/10load_mandatoryifin/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/10load_mandatoryifin/makedict/mandatory.json b/tests/dictionaries/10load_mandatoryifin/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_mandatoryifin/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_mandatoryifin/tiramisu/base.py b/tests/dictionaries/10load_mandatoryifin/tiramisu/base.py deleted file mode 100644 index e9bb18316..000000000 --- a/tests/dictionaries/10load_mandatoryifin/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['mandatory_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['mandatory_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_mandatoryifin/tiramisu/multi.py b/tests/dictionaries/10load_mandatoryifin/tiramisu/multi.py deleted file mode 100644 index bd55c12e2..000000000 --- a/tests/dictionaries/10load_mandatoryifin/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['mandatory_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['mandatory_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['mandatory_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['mandatory_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_multivalue/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_multivalue/dictionaries/rougail/00-base.yml deleted file mode 100644 index 641ad2f39..000000000 --- a/tests/dictionaries/10load_multivalue/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - multi: true - default: - - non - - oui -version: '1.0' diff --git a/tests/dictionaries/10load_multivalue/makedict/after.json b/tests/dictionaries/10load_multivalue/makedict/after.json deleted file mode 100644 index 279b934d4..000000000 --- a/tests/dictionaries/10load_multivalue/makedict/after.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non", - "oui" - ] - } -} diff --git a/tests/dictionaries/10load_multivalue/makedict/base.json b/tests/dictionaries/10load_multivalue/makedict/base.json deleted file mode 100644 index d82bd782d..000000000 --- a/tests/dictionaries/10load_multivalue/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non", - "oui" - ] -} diff --git a/tests/dictionaries/10load_multivalue/makedict/before.json b/tests/dictionaries/10load_multivalue/makedict/before.json deleted file mode 100644 index 279b934d4..000000000 --- a/tests/dictionaries/10load_multivalue/makedict/before.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non", - "oui" - ] - } -} diff --git a/tests/dictionaries/10load_multivalue/makedict/mandatory.json b/tests/dictionaries/10load_multivalue/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_multivalue/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_multivalue/tiramisu/base.py b/tests/dictionaries/10load_multivalue/tiramisu/base.py deleted file mode 100644 index 9f75efeff..000000000 --- a/tests/dictionaries/10load_multivalue/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", multi=True, default=["non", "oui"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_multivalue/tiramisu/multi.py b/tests/dictionaries/10load_multivalue/tiramisu/multi.py deleted file mode 100644 index 952fe69f0..000000000 --- a/tests/dictionaries/10load_multivalue/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", multi=True, default=["non", "oui"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", multi=True, default=["non", "oui"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10load_param_relative/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_param_relative/dictionaries/rougail/00-base.yml deleted file mode 100644 index c6f0051fd..000000000 --- a/tests/dictionaries/10load_param_relative/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -version: '1.1' -general: - variable: - relative: - disabled: - type: jinja - params: - variable: - type: variable - variable: _.variable - optional: true - jinja: | - {% if variable is not defined %} - variable is undefined - {% elif variable == "no" %} - variable is no - {% endif %} diff --git a/tests/dictionaries/10load_param_relative/makedict/after.json b/tests/dictionaries/10load_param_relative/makedict/after.json deleted file mode 100644 index 4228b1684..000000000 --- a/tests/dictionaries/10load_param_relative/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.relative": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_param_relative/makedict/base.json b/tests/dictionaries/10load_param_relative/makedict/base.json deleted file mode 100644 index be4555270..000000000 --- a/tests/dictionaries/10load_param_relative/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.variable": null, - "rougail.general.relative": null -} diff --git a/tests/dictionaries/10load_param_relative/makedict/before.json b/tests/dictionaries/10load_param_relative/makedict/before.json deleted file mode 100644 index 4228b1684..000000000 --- a/tests/dictionaries/10load_param_relative/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.relative": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10load_param_relative/makedict/mandatory.json b/tests/dictionaries/10load_param_relative/makedict/mandatory.json deleted file mode 100644 index f52204999..000000000 --- a/tests/dictionaries/10load_param_relative/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.variable", "rougail.general.relative"] \ No newline at end of file diff --git a/tests/dictionaries/10load_param_relative/tiramisu/base.py b/tests/dictionaries/10load_param_relative/tiramisu/base.py deleted file mode 100644 index dae3c00e9..000000000 --- a/tests/dictionaries/10load_param_relative/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_4 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'variable': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_param_relative/tiramisu/multi.py b/tests/dictionaries/10load_param_relative/tiramisu/multi.py deleted file mode 100644 index 738b5f025..000000000 --- a/tests/dictionaries/10load_param_relative/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -dict_env['disabled_2.rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -option_4 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_5 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'variable': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_10 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'variable': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_param_unknown_relative/dictionaries/rougail/00-base.yml b/tests/dictionaries/10load_param_unknown_relative/dictionaries/rougail/00-base.yml deleted file mode 100644 index fbb44f540..000000000 --- a/tests/dictionaries/10load_param_unknown_relative/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -version: '1.0' -general: - relative: - disabled: - type: jinja - params: - variable: - type: variable - variable: _.variable - optional: true - jinja: | - {% if variable is not defined %} - variable is undefined - {% elif variable == "no" %} - variable is no - {% endif %} diff --git a/tests/dictionaries/10load_param_unknown_relative/makedict/mandatory.json b/tests/dictionaries/10load_param_unknown_relative/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10load_param_unknown_relative/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10load_param_unknown_relative/tiramisu/base.py b/tests/dictionaries/10load_param_unknown_relative/tiramisu/base.py deleted file mode 100644 index 5abf15e37..000000000 --- a/tests/dictionaries/10load_param_unknown_relative/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -option_3 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10load_param_unknown_relative/tiramisu/multi.py b/tests/dictionaries/10load_param_unknown_relative/tiramisu/multi.py deleted file mode 100644 index eeb460c7a..000000000 --- a/tests/dictionaries/10load_param_unknown_relative/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -dict_env['disabled_2.rougail.general.relative'] = "{% if variable is not defined %}\nvariable is undefined\n{% elif variable == \"no\" %}\nvariable is no\n{% endif %}\n" -option_4 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = StrOption(name="relative", doc="relative", properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.relative"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)}), help_function=func['jinja_to_property_help'])})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_accent/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_accent/dictionaries/rougail/00-base.yml deleted file mode 100644 index 7f735c082..000000000 --- a/tests/dictionaries/10valid_enum_accent/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - default: c - choices: - - a - - b - - c - - é -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_accent/makedict/after.json b/tests/dictionaries/10valid_enum_accent/makedict/after.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_accent/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_accent/makedict/base.json b/tests/dictionaries/10valid_enum_accent/makedict/base.json deleted file mode 100644 index 58c810c57..000000000 --- a/tests/dictionaries/10valid_enum_accent/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "c" -} diff --git a/tests/dictionaries/10valid_enum_accent/makedict/before.json b/tests/dictionaries/10valid_enum_accent/makedict/before.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_accent/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_accent/makedict/mandatory.json b/tests/dictionaries/10valid_enum_accent/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_accent/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_accent/tiramisu/base.py b/tests/dictionaries/10valid_enum_accent/tiramisu/base.py deleted file mode 100644 index e48ea2d12..000000000 --- a/tests/dictionaries/10valid_enum_accent/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c", "é"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_accent/tiramisu/multi.py b/tests/dictionaries/10valid_enum_accent/tiramisu/multi.py deleted file mode 100644 index 0bb438748..000000000 --- a/tests/dictionaries/10valid_enum_accent/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c", "é"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c", "é"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index ae8b3f188..000000000 --- a/tests/dictionaries/10valid_enum_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.1' -enumvar: - default: c - choices: - - a - - b - - c diff --git a/tests/dictionaries/10valid_enum_auto/makedict/after.json b/tests/dictionaries/10valid_enum_auto/makedict/after.json deleted file mode 100644 index e2192813e..000000000 --- a/tests/dictionaries/10valid_enum_auto/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_auto/makedict/base.json b/tests/dictionaries/10valid_enum_auto/makedict/base.json deleted file mode 100644 index d393289dc..000000000 --- a/tests/dictionaries/10valid_enum_auto/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.enumvar": "c" -} diff --git a/tests/dictionaries/10valid_enum_auto/makedict/before.json b/tests/dictionaries/10valid_enum_auto/makedict/before.json deleted file mode 100644 index e2192813e..000000000 --- a/tests/dictionaries/10valid_enum_auto/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_auto/makedict/mandatory.json b/tests/dictionaries/10valid_enum_auto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_auto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_auto/tiramisu/base.py b/tests/dictionaries/10valid_enum_auto/tiramisu/base.py deleted file mode 100644 index 810589dbe..000000000 --- a/tests/dictionaries/10valid_enum_auto/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c"), default="c", properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_auto/tiramisu/multi.py b/tests/dictionaries/10valid_enum_auto/tiramisu/multi.py deleted file mode 100644 index 332d2dd10..000000000 --- a/tests/dictionaries/10valid_enum_auto/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c"), default="c", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c"), default="c", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10valid_enum_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1883430a3..000000000 --- a/tests/dictionaries/10valid_enum_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - default: c - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_base/makedict/after.json b/tests/dictionaries/10valid_enum_base/makedict/after.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_base/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base/makedict/base.json b/tests/dictionaries/10valid_enum_base/makedict/base.json deleted file mode 100644 index 58c810c57..000000000 --- a/tests/dictionaries/10valid_enum_base/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "c" -} diff --git a/tests/dictionaries/10valid_enum_base/makedict/before.json b/tests/dictionaries/10valid_enum_base/makedict/before.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_base/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base/makedict/mandatory.json b/tests/dictionaries/10valid_enum_base/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_base/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_base/tiramisu/base.py b/tests/dictionaries/10valid_enum_base/tiramisu/base.py deleted file mode 100644 index d213a6889..000000000 --- a/tests/dictionaries/10valid_enum_base/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_base/tiramisu/multi.py b/tests/dictionaries/10valid_enum_base/tiramisu/multi.py deleted file mode 100644 index 70c7d3ca4..000000000 --- a/tests/dictionaries/10valid_enum_base/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_base_no_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 081af1081..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,17 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - mandatory: false - type: choice - default: c - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/after.json b/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/after.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/base.json b/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/base.json deleted file mode 100644 index 58c810c57..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "c" -} diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/before.json b/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/before.json deleted file mode 100644 index d6497f423..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/mandatory.json b/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/base.py b/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/base.py deleted file mode 100644 index a350e0404..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c", None), default="c", properties=frozenset({"advanced"})) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/multi.py b/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/multi.py deleted file mode 100644 index cda122d77..000000000 --- a/tests/dictionaries/10valid_enum_base_no_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c", None), default="c", properties=frozenset({"advanced"})) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="enumvar", values=("a", "b", "c", None), default="c", properties=frozenset({"advanced"})) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/00-base.yml deleted file mode 100644 index 36d491160..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar2: - type: choice - description: multi - default: c - choices: - - a - - b - - c - enumvar: - type: choice - description: multi - help: bla bla bla - default: c - choices: - - a - - b - - c diff --git a/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/01-base.yml deleted file mode 100644 index 9aaac8efa..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.0' -enumfam: - enumvar: - redefine: true - validators: null - default: c - choices: - - a - - c diff --git a/tests/dictionaries/10valid_enum_base_redefine/makedict/after.json b/tests/dictionaries/10valid_enum_base_redefine/makedict/after.json deleted file mode 100644 index bf91d2f76..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar2": { - "owner": "default", - "value": "c" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base_redefine/makedict/base.json b/tests/dictionaries/10valid_enum_base_redefine/makedict/base.json deleted file mode 100644 index 6c0cbe289..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar2": "c", - "rougail.enumfam.enumvar": "c" -} diff --git a/tests/dictionaries/10valid_enum_base_redefine/makedict/before.json b/tests/dictionaries/10valid_enum_base_redefine/makedict/before.json deleted file mode 100644 index bf91d2f76..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar2": { - "owner": "default", - "value": "c" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "c" - } -} diff --git a/tests/dictionaries/10valid_enum_base_redefine/makedict/mandatory.json b/tests/dictionaries/10valid_enum_base_redefine/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_base_redefine/tiramisu/base.py b/tests/dictionaries/10valid_enum_base_redefine/tiramisu/base.py deleted file mode 100644 index 2f4143e63..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar2", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("a", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5, option_6], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_base_redefine/tiramisu/multi.py b/tests/dictionaries/10valid_enum_base_redefine/tiramisu/multi.py deleted file mode 100644 index 3e9fe9045..000000000 --- a/tests/dictionaries/10valid_enum_base_redefine/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar2", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"})) -option_7 = ChoiceOption(name="enumvar", doc="multi", values=("a", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6, option_7], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11], properties=frozenset({"advanced"})) -option_13 = ChoiceOption(name="enumvar2", doc="multi", values=("a", "b", "c"), default="c", properties=frozenset({"advanced", "mandatory"})) -option_14 = ChoiceOption(name="enumvar", doc="multi", values=("a", "c"), default="c", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_12 = OptionDescription(name="enumfam", doc="enumfam", children=[option_13, option_14], properties=frozenset({"advanced"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10, optiondescription_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10valid_enum_leader/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_leader/dictionaries/rougail/00-base.yml deleted file mode 100644 index 770df6010..000000000 --- a/tests/dictionaries/10valid_enum_leader/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,26 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: choice - description: follower1 - default: a - choices: - - a - - b - - c - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_leader/makedict/after.json b/tests/dictionaries/10valid_enum_leader/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10valid_enum_leader/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10valid_enum_leader/makedict/base.json b/tests/dictionaries/10valid_enum_leader/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/10valid_enum_leader/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/10valid_enum_leader/makedict/before.json b/tests/dictionaries/10valid_enum_leader/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/10valid_enum_leader/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/10valid_enum_leader/makedict/mandatory.json b/tests/dictionaries/10valid_enum_leader/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_leader/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_leader/tiramisu/base.py b/tests/dictionaries/10valid_enum_leader/tiramisu/base.py deleted file mode 100644 index ccd28ca2f..000000000 --- a/tests/dictionaries/10valid_enum_leader/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_6 = ChoiceOption(name="follower1", doc="follower1", values=("a", "b", "c"), multi=True, default_multi="a", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_leader/tiramisu/multi.py b/tests/dictionaries/10valid_enum_leader/tiramisu/multi.py deleted file mode 100644 index c1d98499a..000000000 --- a/tests/dictionaries/10valid_enum_leader/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = ChoiceOption(name="follower1", doc="follower1", values=("a", "b", "c"), multi=True, default_multi="a", properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_15 = ChoiceOption(name="follower1", doc="follower1", values=("a", "b", "c"), multi=True, default_multi="a", properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/10valid_enum_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1557bcbad..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - mandatory: true - default: a - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_mandatory/makedict/after.json b/tests/dictionaries/10valid_enum_mandatory/makedict/after.json deleted file mode 100644 index 014517018..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/10valid_enum_mandatory/makedict/base.json b/tests/dictionaries/10valid_enum_mandatory/makedict/base.json deleted file mode 100644 index 41a552862..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "a" -} diff --git a/tests/dictionaries/10valid_enum_mandatory/makedict/before.json b/tests/dictionaries/10valid_enum_mandatory/makedict/before.json deleted file mode 100644 index 014517018..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/10valid_enum_mandatory/makedict/mandatory.json b/tests/dictionaries/10valid_enum_mandatory/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_mandatory/tiramisu/base.py b/tests/dictionaries/10valid_enum_mandatory/tiramisu/base.py deleted file mode 100644 index bee3f4530..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="a", properties=frozenset({"advanced", "mandatory"})) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_mandatory/tiramisu/multi.py b/tests/dictionaries/10valid_enum_mandatory/tiramisu/multi.py deleted file mode 100644 index 91a0d6cf3..000000000 --- a/tests/dictionaries/10valid_enum_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="a", properties=frozenset({"advanced", "mandatory"})) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", "c"), default="a", properties=frozenset({"advanced", "mandatory"})) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index ffe6bce4c..000000000 --- a/tests/dictionaries/10valid_enum_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - multi: - type: choice - description: multi - multi: true - default: - - a - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_multi/makedict/after.json b/tests/dictionaries/10valid_enum_multi/makedict/after.json deleted file mode 100644 index e9b5a8d31..000000000 --- a/tests/dictionaries/10valid_enum_multi/makedict/after.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.multi": { - "owner": "default", - "value": [ - "a" - ] - } -} diff --git a/tests/dictionaries/10valid_enum_multi/makedict/base.json b/tests/dictionaries/10valid_enum_multi/makedict/base.json deleted file mode 100644 index b581c6d98..000000000 --- a/tests/dictionaries/10valid_enum_multi/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.multi": [ - "a" - ] -} diff --git a/tests/dictionaries/10valid_enum_multi/makedict/before.json b/tests/dictionaries/10valid_enum_multi/makedict/before.json deleted file mode 100644 index e9b5a8d31..000000000 --- a/tests/dictionaries/10valid_enum_multi/makedict/before.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.multi": { - "owner": "default", - "value": [ - "a" - ] - } -} diff --git a/tests/dictionaries/10valid_enum_multi/makedict/mandatory.json b/tests/dictionaries/10valid_enum_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_multi/tiramisu/base.py b/tests/dictionaries/10valid_enum_multi/tiramisu/base.py deleted file mode 100644 index e6c29e018..000000000 --- a/tests/dictionaries/10valid_enum_multi/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = ChoiceOption(name="multi", doc="multi", values=("a", "b", "c"), multi=True, default=["a"], default_multi="a", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_multi/tiramisu/multi.py b/tests/dictionaries/10valid_enum_multi/tiramisu/multi.py deleted file mode 100644 index f95be7f33..000000000 --- a/tests/dictionaries/10valid_enum_multi/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = ChoiceOption(name="multi", doc="multi", values=("a", "b", "c"), multi=True, default=["a"], default_multi="a", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="multi", doc="multi", values=("a", "b", "c"), multi=True, default=["a"], default_multi="a", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_none/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_none/dictionaries/rougail/00-base.yml deleted file mode 100644 index d74a5e511..000000000 --- a/tests/dictionaries/10valid_enum_none/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -version: '1.0' -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - mandatory: false - default: b - choices: - - a - - b - - null diff --git a/tests/dictionaries/10valid_enum_none/makedict/after.json b/tests/dictionaries/10valid_enum_none/makedict/after.json deleted file mode 100644 index d65116184..000000000 --- a/tests/dictionaries/10valid_enum_none/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "b" - } -} diff --git a/tests/dictionaries/10valid_enum_none/makedict/base.json b/tests/dictionaries/10valid_enum_none/makedict/base.json deleted file mode 100644 index 07f78c4a1..000000000 --- a/tests/dictionaries/10valid_enum_none/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "b" -} diff --git a/tests/dictionaries/10valid_enum_none/makedict/before.json b/tests/dictionaries/10valid_enum_none/makedict/before.json deleted file mode 100644 index d65116184..000000000 --- a/tests/dictionaries/10valid_enum_none/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "b" - } -} diff --git a/tests/dictionaries/10valid_enum_none/makedict/mandatory.json b/tests/dictionaries/10valid_enum_none/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_none/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_none/tiramisu/base.py b/tests/dictionaries/10valid_enum_none/tiramisu/base.py deleted file mode 100644 index 31c2e2d57..000000000 --- a/tests/dictionaries/10valid_enum_none/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", None), default="b", properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_none/tiramisu/multi.py b/tests/dictionaries/10valid_enum_none/tiramisu/multi.py deleted file mode 100644 index 6828b5fd8..000000000 --- a/tests/dictionaries/10valid_enum_none/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", None), default="b", properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=("a", "b", None), default="b", properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_number/dictionaries/rougail/00-base.yml deleted file mode 100644 index 5097c4c29..000000000 --- a/tests/dictionaries/10valid_enum_number/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: enumvar - help: bla bla bla - default: 1 - choices: - - 1 - - 2 - - 3 -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_number/makedict/after.json b/tests/dictionaries/10valid_enum_number/makedict/after.json deleted file mode 100644 index 9e95f9bc9..000000000 --- a/tests/dictionaries/10valid_enum_number/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 1 - } -} diff --git a/tests/dictionaries/10valid_enum_number/makedict/base.json b/tests/dictionaries/10valid_enum_number/makedict/base.json deleted file mode 100644 index ef9d97580..000000000 --- a/tests/dictionaries/10valid_enum_number/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": 1 -} diff --git a/tests/dictionaries/10valid_enum_number/makedict/before.json b/tests/dictionaries/10valid_enum_number/makedict/before.json deleted file mode 100644 index 9e95f9bc9..000000000 --- a/tests/dictionaries/10valid_enum_number/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 1 - } -} diff --git a/tests/dictionaries/10valid_enum_number/makedict/mandatory.json b/tests/dictionaries/10valid_enum_number/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_number/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_number/tiramisu/base.py b/tests/dictionaries/10valid_enum_number/tiramisu/base.py deleted file mode 100644 index e11135fba..000000000 --- a/tests/dictionaries/10valid_enum_number/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_number/tiramisu/multi.py b/tests/dictionaries/10valid_enum_number/tiramisu/multi.py deleted file mode 100644 index 709a390b3..000000000 --- a/tests/dictionaries/10valid_enum_number/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=1, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_numberdefault/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_numberdefault/dictionaries/rougail/00-base.yml deleted file mode 100644 index 4d2e44c0e..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: enumvar - help: bla bla bla - default: 3 - choices: - - 1 - - 2 - - 3 -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_numberdefault/makedict/after.json b/tests/dictionaries/10valid_enum_numberdefault/makedict/after.json deleted file mode 100644 index 080ba8216..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 3 - } -} diff --git a/tests/dictionaries/10valid_enum_numberdefault/makedict/base.json b/tests/dictionaries/10valid_enum_numberdefault/makedict/base.json deleted file mode 100644 index e8e0dc0f3..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": 3 -} diff --git a/tests/dictionaries/10valid_enum_numberdefault/makedict/before.json b/tests/dictionaries/10valid_enum_numberdefault/makedict/before.json deleted file mode 100644 index 080ba8216..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": 3 - } -} diff --git a/tests/dictionaries/10valid_enum_numberdefault/makedict/mandatory.json b/tests/dictionaries/10valid_enum_numberdefault/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_numberdefault/tiramisu/base.py b/tests/dictionaries/10valid_enum_numberdefault/tiramisu/base.py deleted file mode 100644 index c2a72e59d..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=3, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_numberdefault/tiramisu/multi.py b/tests/dictionaries/10valid_enum_numberdefault/tiramisu/multi.py deleted file mode 100644 index ea7958f92..000000000 --- a/tests/dictionaries/10valid_enum_numberdefault/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=3, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="enumvar", values=(1, 2, 3), default=3, properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_param_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_param_empty/dictionaries/rougail/00-base.yml deleted file mode 100644 index 6dc9a63cb..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -version: '1.0' -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - default: null - mandatory: false - choices: - - null diff --git a/tests/dictionaries/10valid_enum_param_empty/makedict/after.json b/tests/dictionaries/10valid_enum_param_empty/makedict/after.json deleted file mode 100644 index f7fecf93b..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.enumfam.enumvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10valid_enum_param_empty/makedict/base.json b/tests/dictionaries/10valid_enum_param_empty/makedict/base.json deleted file mode 100644 index 09f494be2..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.enumfam.enumvar": null -} diff --git a/tests/dictionaries/10valid_enum_param_empty/makedict/before.json b/tests/dictionaries/10valid_enum_param_empty/makedict/before.json deleted file mode 100644 index f7fecf93b..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.enumfam.enumvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10valid_enum_param_empty/makedict/mandatory.json b/tests/dictionaries/10valid_enum_param_empty/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_param_empty/tiramisu/base.py b/tests/dictionaries/10valid_enum_param_empty/tiramisu/base.py deleted file mode 100644 index fb2ef71ca..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_2 = OptionDescription(name="enumfam", doc="enumfam", children=[option_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_param_empty/tiramisu/multi.py b/tests/dictionaries/10valid_enum_param_empty/tiramisu/multi.py deleted file mode 100644 index feb0fb115..000000000 --- a/tests/dictionaries/10valid_enum_param_empty/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_3 = OptionDescription(name="enumfam", doc="enumfam", children=[option_4], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_8 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_7 = OptionDescription(name="enumfam", doc="enumfam", children=[option_8], properties=frozenset({"advanced"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"advanced"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_param_empty2/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_param_empty2/dictionaries/rougail/00-base.yml deleted file mode 100644 index da36f290f..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,17 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - default: null - mandatory: false - choices: - - null -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_param_empty2/makedict/after.json b/tests/dictionaries/10valid_enum_param_empty2/makedict/after.json deleted file mode 100644 index 4c3ef489d..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10valid_enum_param_empty2/makedict/base.json b/tests/dictionaries/10valid_enum_param_empty2/makedict/base.json deleted file mode 100644 index 53dfede82..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": null -} diff --git a/tests/dictionaries/10valid_enum_param_empty2/makedict/before.json b/tests/dictionaries/10valid_enum_param_empty2/makedict/before.json deleted file mode 100644 index 4c3ef489d..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/10valid_enum_param_empty2/makedict/mandatory.json b/tests/dictionaries/10valid_enum_param_empty2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_param_empty2/tiramisu/base.py b/tests/dictionaries/10valid_enum_param_empty2/tiramisu/base.py deleted file mode 100644 index 6644f18fc..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_param_empty2/tiramisu/multi.py b/tests/dictionaries/10valid_enum_param_empty2/tiramisu/multi.py deleted file mode 100644 index 5cae2bbbc..000000000 --- a/tests/dictionaries/10valid_enum_param_empty2/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=(None,), properties=frozenset({"advanced"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_quote/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_quote/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1f0fa5c0f..000000000 --- a/tests/dictionaries/10valid_enum_quote/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ -general: - mode: advanced - mode_conteneur_actif: - type: string - description: No change - default: non -enumfam: - mode: advanced - enumvar: - type: choice - description: multi - help: bla bla bla - default: quote' - choices: - - quote' - - quote" - - quote"' -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_quote/makedict/after.json b/tests/dictionaries/10valid_enum_quote/makedict/after.json deleted file mode 100644 index 4d231f85a..000000000 --- a/tests/dictionaries/10valid_enum_quote/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "quote'" - } -} diff --git a/tests/dictionaries/10valid_enum_quote/makedict/base.json b/tests/dictionaries/10valid_enum_quote/makedict/base.json deleted file mode 100644 index c63f634db..000000000 --- a/tests/dictionaries/10valid_enum_quote/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.enumfam.enumvar": "quote'" -} diff --git a/tests/dictionaries/10valid_enum_quote/makedict/before.json b/tests/dictionaries/10valid_enum_quote/makedict/before.json deleted file mode 100644 index 4d231f85a..000000000 --- a/tests/dictionaries/10valid_enum_quote/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.enumfam.enumvar": { - "owner": "default", - "value": "quote'" - } -} diff --git a/tests/dictionaries/10valid_enum_quote/makedict/mandatory.json b/tests/dictionaries/10valid_enum_quote/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_quote/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_quote/tiramisu/base.py b/tests/dictionaries/10valid_enum_quote/tiramisu/base.py deleted file mode 100644 index b5b39e2e4..000000000 --- a/tests/dictionaries/10valid_enum_quote/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"advanced"})) -option_5 = ChoiceOption(name="enumvar", doc="multi", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_quote/tiramisu/multi.py b/tests/dictionaries/10valid_enum_quote/tiramisu/multi.py deleted file mode 100644 index 85d2a9208..000000000 --- a/tests/dictionaries/10valid_enum_quote/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"advanced"})) -option_6 = ChoiceOption(name="enumvar", doc="multi", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_5 = OptionDescription(name="enumfam", doc="enumfam", children=[option_6], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"advanced", "mandatory"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"advanced"})) -option_12 = ChoiceOption(name="enumvar", doc="multi", values=("quote'", "quote\"", "quote\"'"), default="quote'", properties=frozenset({"advanced", "mandatory"}), informations={'help': 'bla bla bla'}) -optiondescription_11 = OptionDescription(name="enumfam", doc="enumfam", children=[option_12], properties=frozenset({"advanced"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_value/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_value/dictionaries/rougail/00-base.yml deleted file mode 100644 index 838e7f785..000000000 --- a/tests/dictionaries/10valid_enum_value/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: choice - description: No change - default: b - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/10valid_enum_value/makedict/after.json b/tests/dictionaries/10valid_enum_value/makedict/after.json deleted file mode 100644 index b0f53f2bd..000000000 --- a/tests/dictionaries/10valid_enum_value/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - } -} diff --git a/tests/dictionaries/10valid_enum_value/makedict/base.json b/tests/dictionaries/10valid_enum_value/makedict/base.json deleted file mode 100644 index 9e37bc120..000000000 --- a/tests/dictionaries/10valid_enum_value/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "b" -} diff --git a/tests/dictionaries/10valid_enum_value/makedict/before.json b/tests/dictionaries/10valid_enum_value/makedict/before.json deleted file mode 100644 index b0f53f2bd..000000000 --- a/tests/dictionaries/10valid_enum_value/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "b" - } -} diff --git a/tests/dictionaries/10valid_enum_value/makedict/mandatory.json b/tests/dictionaries/10valid_enum_value/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_value/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_value/tiramisu/base.py b/tests/dictionaries/10valid_enum_value/tiramisu/base.py deleted file mode 100644 index 9edb490de..000000000 --- a/tests/dictionaries/10valid_enum_value/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = ChoiceOption(name="mode_conteneur_actif", doc="No change", values=("a", "b", "c"), default="b", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_value/tiramisu/multi.py b/tests/dictionaries/10valid_enum_value/tiramisu/multi.py deleted file mode 100644 index 6637dd090..000000000 --- a/tests/dictionaries/10valid_enum_value/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = ChoiceOption(name="mode_conteneur_actif", doc="No change", values=("a", "b", "c"), default="b", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = ChoiceOption(name="mode_conteneur_actif", doc="No change", values=("a", "b", "c"), default="b", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_variables/dictionaries/rougail/00-base.yml b/tests/dictionaries/10valid_enum_variables/dictionaries/rougail/00-base.yml deleted file mode 100644 index e15a955ef..000000000 --- a/tests/dictionaries/10valid_enum_variables/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -version: '1.0' -source_variable_1: - default: val1 -source_variable_2: - default: val2 -my_variable: - type: choice - choices: - - type: variable - variable: rougail.source_variable_1 - - type: variable - variable: rougail.source_variable_2 - default: val1 diff --git a/tests/dictionaries/10valid_enum_variables/makedict/mandatory.json b/tests/dictionaries/10valid_enum_variables/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/10valid_enum_variables/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10valid_enum_variables/tiramisu/base.py b/tests/dictionaries/10valid_enum_variables/tiramisu/base.py deleted file mode 100644 index f7fefc0ab..000000000 --- a/tests/dictionaries/10valid_enum_variables/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="source_variable_1", doc="source_variable_1", default="val1", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="source_variable_2", doc="source_variable_2", default="val2", properties=frozenset({"mandatory", "standard"})) -option_4 = ChoiceOption(name="my_variable", doc="my_variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_2)))), Calculation(func['calc_value'], Params((ParamOption(option_3))))), default="val1", properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/10valid_enum_variables/tiramisu/multi.py b/tests/dictionaries/10valid_enum_variables/tiramisu/multi.py deleted file mode 100644 index 997c732e2..000000000 --- a/tests/dictionaries/10valid_enum_variables/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="source_variable_1", doc="source_variable_1", default="val1", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="source_variable_2", doc="source_variable_2", default="val2", properties=frozenset({"mandatory", "standard"})) -option_5 = ChoiceOption(name="my_variable", doc="my_variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_3)))), Calculation(func['calc_value'], Params((ParamOption(option_4))))), default="val1", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="source_variable_1", doc="source_variable_1", default="val1", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="source_variable_2", doc="source_variable_2", default="val2", properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="my_variable", doc="my_variable", values=(Calculation(func['calc_value'], Params((ParamOption(option_8)))), Calculation(func['calc_value'], Params((ParamOption(option_9))))), default="val1", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/dictionaries/rougail/00-base.yml b/tests/dictionaries/11autosave_hidden_frozenifin/dictionaries/rougail/00-base.yml deleted file mode 100644 index 61c8ab657..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: '1.0' -server_deployed: - type: boolean -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - autosavevar: - type: string - description: autosave variable - auto_save: true - hidden: - type: jinja - jinja: '{% if rougail.general.mode_conteneur_actif == "oui" %} - - mode_conteneur_actif is oui - - {% endif %} - - ' - default: - type: jinja - jinja: '{{ "oui" | calc_val }}' - mandatory: false diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/after.json b/tests/dictionaries/11autosave_hidden_frozenifin/makedict/after.json deleted file mode 100644 index 8319f7adb..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.server_deployed": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.autosavevar": { - "owner": "forced", - "value": "oui" - } -} diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/base.json b/tests/dictionaries/11autosave_hidden_frozenifin/makedict/base.json deleted file mode 100644 index 7e87c0831..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.server_deployed": true, - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.autosavevar": "oui" -} diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/before.json b/tests/dictionaries/11autosave_hidden_frozenifin/makedict/before.json deleted file mode 100644 index 8f22388a2..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.server_deployed": { - "owner": "default", - "value": true - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.autosavevar": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/mandatory.json b/tests/dictionaries/11autosave_hidden_frozenifin/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/base.py b/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/base.py deleted file mode 100644 index 84d5609e1..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -dict_env['hidden_rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -dict_env['frozen_rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -option_2 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/multi.py b/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/multi.py deleted file mode 100644 index a1723e38e..000000000 --- a/tests/dictionaries/11autosave_hidden_frozenifin/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -dict_env['hidden_1.rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -dict_env['frozen_1.rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -dict_env['default_2.rougail.general.autosavevar'] = "{{ \"oui\" | calc_val }}" -dict_env['hidden_2.rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -dict_env['frozen_2.rougail.general.autosavevar'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -option_3 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="general", doc="général", children=[option_5, option_6], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="autosavevar", doc="autosave variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"basic", "force_store_value", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.general.autosavevar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11, option_12], properties=frozenset({"basic"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist/dictionaries/rougail/00-base.yml deleted file mode 100644 index 20cc2833a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: boolean - description: No change - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/11disabled_if_in_filelist/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist/makedict/after.json deleted file mode 100644 index b906e5aab..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist/makedict/base.json deleted file mode 100644 index 05f9e2ec9..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": true -} diff --git a/tests/dictionaries/11disabled_if_in_filelist/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist/makedict/before.json deleted file mode 100644 index b906e5aab..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist/result/etc/file b/tests/dictionaries/11disabled_if_in_filelist/result/etc/file deleted file mode 100644 index d907505b5..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/result/etc/file +++ /dev/null @@ -1 +0,0 @@ -non diff --git a/tests/dictionaries/11disabled_if_in_filelist/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist/tiramisu/base.py deleted file mode 100644 index db2645a49..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist/tiramisu/multi.py deleted file mode 100644 index c3da091ca..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist/tmpl/file b/tests/dictionaries/11disabled_if_in_filelist/tmpl/file deleted file mode 100644 index 5113d9aae..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist/tmpl/file +++ /dev/null @@ -1 +0,0 @@ -%%condition diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist_boolean/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9b10c48f8..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,4 +0,0 @@ -general: - condition: - type: boolean -version: '1.0' diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/after.json deleted file mode 100644 index 005f21c45..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/base.json deleted file mode 100644 index b39821627..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.condition": true -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/before.json deleted file mode 100644 index 005f21c45..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/base.py deleted file mode 100644 index dee8f6882..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/multi.py deleted file mode 100644 index 1ed3b645d..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist_boolean2/dictionaries/rougail/00-base.yml deleted file mode 100644 index c0abf7583..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - condition: - type: boolean - default: false -version: '1.0' diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/after.json deleted file mode 100644 index 7064716c3..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": false - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/base.json deleted file mode 100644 index 4c0a98f1c..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.condition": false -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/before.json deleted file mode 100644 index 7064716c3..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": false - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/base.py deleted file mode 100644 index 38572f3e3..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/multi.py deleted file mode 100644 index 5d6b221f6..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_boolean2/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist_disabled/dictionaries/rougail/00-base.yml deleted file mode 100644 index c2f39fe34..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: oui - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/after.json deleted file mode 100644 index 84fd776c0..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/base.json deleted file mode 100644 index 0af6817e3..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.condition": "oui" -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/before.json deleted file mode 100644 index 84fd776c0..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/11disabled_if_in_filelist_disabled/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/base.py deleted file mode 100644 index eb6f7fbd5..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/multi.py deleted file mode 100644 index ce2874b6b..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/tmpl/file b/tests/dictionaries/11disabled_if_in_filelist_disabled/tmpl/file deleted file mode 100644 index 5113d9aae..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_disabled/tmpl/file +++ /dev/null @@ -1 +0,0 @@ -%%condition diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 378abf66d..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/base.py deleted file mode 100644 index d9a3b0953..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/multi.py deleted file mode 100644 index 791ea6f83..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_multi/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabled_if_in_filelist_same_name/dictionaries/rougail/00-base.yml deleted file mode 100644 index 20cc2833a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -version: '1.0' -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: boolean - description: No change - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/after.json b/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/after.json deleted file mode 100644 index b906e5aab..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/base.json b/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/base.json deleted file mode 100644 index 05f9e2ec9..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": true -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/before.json b/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/before.json deleted file mode 100644 index b906e5aab..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": true - } -} diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/mandatory.json b/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/result/etc/file b/tests/dictionaries/11disabled_if_in_filelist_same_name/result/etc/file deleted file mode 100644 index d907505b5..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/result/etc/file +++ /dev/null @@ -1 +0,0 @@ -non diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/11disabled_if_in_filelist_same_name/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 1bc5dfc34..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1 +0,0 @@ -C /etc/file 0644 root root - /usr/local/lib/etc/file diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/base.py b/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/base.py deleted file mode 100644 index db2645a49..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -option_5 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/multi.py b/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/multi.py deleted file mode 100644 index c3da091ca..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -option_12 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/tmpl/file b/tests/dictionaries/11disabled_if_in_filelist_same_name/tmpl/file deleted file mode 100644 index 5113d9aae..000000000 --- a/tests/dictionaries/11disabled_if_in_filelist_same_name/tmpl/file +++ /dev/null @@ -1 +0,0 @@ -%%condition diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabledifin_filelist_notexist/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0702f5f71..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/after.json b/tests/dictionaries/11disabledifin_filelist_notexist/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/base.json b/tests/dictionaries/11disabledifin_filelist_notexist/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/before.json b/tests/dictionaries/11disabledifin_filelist_notexist/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/mandatory.json b/tests/dictionaries/11disabledifin_filelist_notexist/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/base.py b/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/base.py deleted file mode 100644 index 2d5c54738..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/multi.py b/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/multi.py deleted file mode 100644 index 726d1fbb7..000000000 --- a/tests/dictionaries/11disabledifin_filelist_notexist/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabledifnotin_filelist_notexist/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0702f5f71..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/after.json b/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/base.json b/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/before.json b/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/mandatory.json b/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/base.py b/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/base.py deleted file mode 100644 index 2d5c54738..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/multi.py b/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/multi.py deleted file mode 100644 index 726d1fbb7..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/__init__.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0702f5f71..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - condition: - type: string - description: No change - default: non - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/after.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/base.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/before.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/mandatory.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/base.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/base.py deleted file mode 100644 index 2d5c54738..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/multi.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/multi.py deleted file mode 100644 index 726d1fbb7..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_multi/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/__init__.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/dictionaries/rougail/00-base.yml b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/dictionaries/rougail/00-base.yml deleted file mode 100644 index d4635ae31..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ -general: - condition: - type: choice - description: No change - default: non - choices: - - non - - statique - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/after.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/after.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/base.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/base.json deleted file mode 100644 index c6e0314ef..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/before.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/before.json deleted file mode 100644 index f51f52300..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/mandatory.json b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/base.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/base.py deleted file mode 100644 index f3e2929f0..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = ChoiceOption(name="condition", doc="No change", values=("non", "statique"), default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/multi.py b/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/multi.py deleted file mode 100644 index c33c1584f..000000000 --- a/tests/dictionaries/11disabledifnotin_filelist_notexist_validenum/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = ChoiceOption(name="condition", doc="No change", values=("non", "statique"), default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = ChoiceOption(name="condition", doc="No change", values=("non", "statique"), default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11fill_multi_calc_val/__init__.py b/tests/dictionaries/11fill_multi_calc_val/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11fill_multi_calc_val/dictionaries/rougail/00-base.yml b/tests/dictionaries/11fill_multi_calc_val/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8b26327fb..000000000 --- a/tests/dictionaries/11fill_multi_calc_val/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '1.0' -var1: - default: 'no' -var2: - multi: true - default: - type: jinja - jinja: '{% for val in calc_value(rougail.var1, multi=true) %} - - {{ val }} - - {% endfor %} - - ' - mandatory: false diff --git a/tests/dictionaries/11fill_multi_calc_val/makedict/mandatory.json b/tests/dictionaries/11fill_multi_calc_val/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11fill_multi_calc_val/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/__init__.py b/tests/dictionaries/11fill_multi_calc_val_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/11fill_multi_calc_val_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index c86fac26e..000000000 --- a/tests/dictionaries/11fill_multi_calc_val_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ -var1: - multi: true - default: - - 'no' - - 'yes' - - maybe -var2: - multi: true - default: - type: jinja - jinja: '{% for val in calc_value(rougail.var1) %} - - {{ val }} - - {% endfor %} - - ' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/11fill_multi_calc_val_multi/makedict/mandatory.json b/tests/dictionaries/11fill_multi_calc_val_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11fill_multi_calc_val_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11valid_enum_function/__init__.py b/tests/dictionaries/11valid_enum_function/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11valid_enum_function/dictionaries/rougail/00-base.yml b/tests/dictionaries/11valid_enum_function/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9a65364fe..000000000 --- a/tests/dictionaries/11valid_enum_function/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -version: '1.0' -general: - var: - type: choice - description: New variable - default: 9 - choices: - type: jinja - return_type: 'number' - jinja: | - {% for n in trange(0, 10) %} - {{ n }} - {% endfor %} diff --git a/tests/dictionaries/11valid_enum_function/makedict/mandatory.json b/tests/dictionaries/11valid_enum_function/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11valid_enum_function/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11valid_enum_relative_variable/__init__.py b/tests/dictionaries/11valid_enum_relative_variable/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11valid_enum_relative_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/11valid_enum_relative_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index 44960abc2..000000000 --- a/tests/dictionaries/11valid_enum_relative_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.1' -general: - mode_conteneur_actif: - type: choice - default: a - choices: - type: variable - variable: _.var - var: - multi: true - default: - - a - - b - - c diff --git a/tests/dictionaries/11valid_enum_relative_variable/makedict/mandatory.json b/tests/dictionaries/11valid_enum_relative_variable/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11valid_enum_relative_variable/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11valid_enum_variable/__init__.py b/tests/dictionaries/11valid_enum_variable/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/11valid_enum_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/11valid_enum_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3637e2455..000000000 --- a/tests/dictionaries/11valid_enum_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: choice - description: No change - default: a - choices: - type: variable - variable: rougail.general.var - var: - type: string - description: New variable - multi: true - default: - - a - - b - - c diff --git a/tests/dictionaries/11valid_enum_variable/makedict/mandatory.json b/tests/dictionaries/11valid_enum_variable/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/11valid_enum_variable/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10leadership_append/__init__.py b/tests/dictionaries/12_1auto_save_expert/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_append/__init__.py rename to tests/dictionaries/12_1auto_save_expert/__init__.py diff --git a/tests/dictionaries/12_1auto_save_expert/dictionaries/rougail/00-base.yml b/tests/dictionaries/12_1auto_save_expert/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..641bb3529 --- /dev/null +++ b/tests/dictionaries/12_1auto_save_expert/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: 1.1 +var: + description: a variable + auto_save: true + mode: advanced + default: "no" diff --git a/tests/dictionaries/15load_autosaveexpert/makedict/after.json b/tests/dictionaries/12_1auto_save_expert/makedict/after.json similarity index 100% rename from tests/dictionaries/15load_autosaveexpert/makedict/after.json rename to tests/dictionaries/12_1auto_save_expert/makedict/after.json diff --git a/tests/dictionaries/15load_autosaveexpert/makedict/base.json b/tests/dictionaries/12_1auto_save_expert/makedict/base.json similarity index 100% rename from tests/dictionaries/15load_autosaveexpert/makedict/base.json rename to tests/dictionaries/12_1auto_save_expert/makedict/base.json diff --git a/tests/dictionaries/15load_autosaveexpert/makedict/before.json b/tests/dictionaries/12_1auto_save_expert/makedict/before.json similarity index 100% rename from tests/dictionaries/15load_autosaveexpert/makedict/before.json rename to tests/dictionaries/12_1auto_save_expert/makedict/before.json diff --git a/tests/dictionaries/10fill/makedict/mandatory.json b/tests/dictionaries/12_1auto_save_expert/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10fill/makedict/mandatory.json rename to tests/dictionaries/12_1auto_save_expert/makedict/mandatory.json diff --git a/tests/dictionaries/15load_autosaveexpert/tiramisu/base.py b/tests/dictionaries/12_1auto_save_expert/tiramisu/base.py similarity index 100% rename from tests/dictionaries/15load_autosaveexpert/tiramisu/base.py rename to tests/dictionaries/12_1auto_save_expert/tiramisu/base.py diff --git a/tests/dictionaries/15load_autosaveexpert/tiramisu/multi.py b/tests/dictionaries/12_1auto_save_expert/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/15load_autosaveexpert/tiramisu/multi.py rename to tests/dictionaries/12_1auto_save_expert/tiramisu/multi.py diff --git a/tests/dictionaries/12auto_base/__init__.py b/tests/dictionaries/12auto_base/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index e95b0fa74..000000000 --- a/tests/dictionaries/12auto_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 | calc_val }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/12auto_base/makedict/after.json b/tests/dictionaries/12auto_base/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_base/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_base/makedict/base.json b/tests/dictionaries/12auto_base/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/12auto_base/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/12auto_base/makedict/before.json b/tests/dictionaries/12auto_base/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_base/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_base/makedict/mandatory.json b/tests/dictionaries/12auto_base/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_base/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_base/tiramisu/base.py b/tests/dictionaries/12auto_base/tiramisu/base.py deleted file mode 100644 index 57e47aea6..000000000 --- a/tests/dictionaries/12auto_base/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_base/tiramisu/multi.py b/tests/dictionaries/12auto_base/tiramisu/multi.py deleted file mode 100644 index 1ec95e9c3..000000000 --- a/tests/dictionaries/12auto_base/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_func_variable/__init__.py b/tests/dictionaries/12auto_func_variable/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_func_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_func_variable/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0855f22bd..000000000 --- a/tests/dictionaries/12auto_func_variable/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: variable - variable: rougail.general.mode_conteneur_actif1 - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non diff --git a/tests/dictionaries/12auto_func_variable/makedict/after.json b/tests/dictionaries/12auto_func_variable/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_func_variable/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_func_variable/makedict/base.json b/tests/dictionaries/12auto_func_variable/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/12auto_func_variable/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/12auto_func_variable/makedict/before.json b/tests/dictionaries/12auto_func_variable/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_func_variable/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_func_variable/makedict/mandatory.json b/tests/dictionaries/12auto_func_variable/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_func_variable/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_func_variable/tiramisu/base.py b/tests/dictionaries/12auto_func_variable/tiramisu/base.py deleted file mode 100644 index e768b3d32..000000000 --- a/tests/dictionaries/12auto_func_variable/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_func_variable/tiramisu/multi.py b/tests/dictionaries/12auto_func_variable/tiramisu/multi.py deleted file mode 100644 index 58d99d502..000000000 --- a/tests/dictionaries/12auto_func_variable/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['calc_value'], Params((ParamOption(option_10)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_func_variable_relative/__init__.py b/tests/dictionaries/12auto_func_variable_relative/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_func_variable_relative/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_func_variable_relative/dictionaries/rougail/00-base.yml deleted file mode 100644 index e5676316e..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.1' -general: - var: - hidden: true - default: - type: variable - variable: _.var2 - var2: - default: "no" diff --git a/tests/dictionaries/12auto_func_variable_relative/makedict/after.json b/tests/dictionaries/12auto_func_variable_relative/makedict/after.json deleted file mode 100644 index 9f3c72c6f..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.var2": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative/makedict/base.json b/tests/dictionaries/12auto_func_variable_relative/makedict/base.json deleted file mode 100644 index 5f9b09720..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.var": "no", - "rougail.general.var2": "no" -} diff --git a/tests/dictionaries/12auto_func_variable_relative/makedict/before.json b/tests/dictionaries/12auto_func_variable_relative/makedict/before.json deleted file mode 100644 index 9f3c72c6f..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.var2": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative/makedict/mandatory.json b/tests/dictionaries/12auto_func_variable_relative/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_func_variable_relative/tiramisu/base.py b/tests/dictionaries/12auto_func_variable_relative/tiramisu/base.py deleted file mode 100644 index 15572de6d..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_func_variable_relative/tiramisu/multi.py b/tests/dictionaries/12auto_func_variable_relative/tiramisu/multi.py deleted file mode 100644 index 73ae4478d..000000000 --- a/tests/dictionaries/12auto_func_variable_relative/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_10)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/__init__.py b/tests/dictionaries/12auto_func_variable_relative_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_func_variable_relative_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 12d90d9c8..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -version: '1.1' -general: - var: - hidden: true - multi: true - default: - - type: variable - variable: _.var2 - - type: variable - variable: _.var3 - var2: - default: "no" - var3: - default: "yes" diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/after.json b/tests/dictionaries/12auto_func_variable_relative_multi/makedict/after.json deleted file mode 100644 index 28cb99a59..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": [ - "no", - "yes" - ] - }, - "rougail.general.var2": { - "owner": "default", - "value": "no" - }, - "rougail.general.var3": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/base.json b/tests/dictionaries/12auto_func_variable_relative_multi/makedict/base.json deleted file mode 100644 index cb06d9ca1..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.var": [ - "no", - "yes" - ], - "rougail.general.var2": "no", - "rougail.general.var3": "yes" -} diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/before.json b/tests/dictionaries/12auto_func_variable_relative_multi/makedict/before.json deleted file mode 100644 index 28cb99a59..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": [ - "no", - "yes" - ] - }, - "rougail.general.var2": { - "owner": "default", - "value": "no" - }, - "rougail.general.var3": { - "owner": "default", - "value": "yes" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/mandatory.json b/tests/dictionaries/12auto_func_variable_relative_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/base.py b/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/base.py deleted file mode 100644 index eaf80d5fc..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="var3", doc="var3", default="yes", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="var", doc="var", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_4)))), Calculation(func['calc_value'], Params((ParamOption(option_5))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/multi.py b/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/multi.py deleted file mode 100644 index 2c671e52b..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_multi/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var3", doc="var3", default="yes", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="var", doc="var", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_5)))), Calculation(func['calc_value'], Params((ParamOption(option_6))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="var2", doc="var2", default="no", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="var3", doc="var3", default="yes", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="var", doc="var", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_11)))), Calculation(func['calc_value'], Params((ParamOption(option_12))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_11)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/__init__.py b/tests/dictionaries/12auto_func_variable_relative_parent/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_func_variable_relative_parent/dictionaries/rougail/00-base.yml deleted file mode 100644 index bbe23bd1e..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: '1.1' -general: - var: - default: "no" - fam1: - var: - hidden: true - default: - type: variable - variable: __.var diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/after.json b/tests/dictionaries/12auto_func_variable_relative_parent/makedict/after.json deleted file mode 100644 index ccae5c65d..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.fam1.var": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/base.json b/tests/dictionaries/12auto_func_variable_relative_parent/makedict/base.json deleted file mode 100644 index 8a97cc30c..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.var": "no", - "rougail.general.fam1.var": "no" -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/before.json b/tests/dictionaries/12auto_func_variable_relative_parent/makedict/before.json deleted file mode 100644 index ccae5c65d..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.fam1.var": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/mandatory.json b/tests/dictionaries/12auto_func_variable_relative_parent/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/base.py b/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/base.py deleted file mode 100644 index b08beedb2..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_3)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_4 = OptionDescription(name="fam1", doc="fam1", children=[option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/multi.py b/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/multi.py deleted file mode 100644 index 33b6715a2..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="fam1", doc="fam1", children=[option_6], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_10)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_11 = OptionDescription(name="fam1", doc="fam1", children=[option_12], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/__init__.py b/tests/dictionaries/12auto_func_variable_relative_parent_2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_func_variable_relative_parent_2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9fe16263e..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -version: '1.1' -general: - fam2: - var: - default: "no" - fam1: - var: - hidden: true - default: - type: variable - variable: __.fam2.var diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/after.json b/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/after.json deleted file mode 100644 index 373f0e974..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.fam2.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.fam1.var": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/base.json b/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/base.json deleted file mode 100644 index 872412059..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.fam2.var": "no", - "rougail.general.fam1.var": "no" -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/before.json b/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/before.json deleted file mode 100644 index 373f0e974..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.fam2.var": { - "owner": "default", - "value": "no" - }, - "rougail.general.fam1.var": { - "owner": "default", - "value": "no" - } -} diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/mandatory.json b/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/base.py b/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/base.py deleted file mode 100644 index 1a60143c6..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="fam2", doc="fam2", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="fam1", doc="fam1", children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/multi.py b/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/multi.py deleted file mode 100644 index 25a4c08a2..000000000 --- a/tests/dictionaries/12auto_func_variable_relative_parent_2/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = OptionDescription(name="fam2", doc="fam2", children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="fam1", doc="fam1", children=[option_7], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="var", doc="var", default="no", properties=frozenset({"mandatory", "standard"})) -optiondescription_11 = OptionDescription(name="fam2", doc="fam2", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="var", doc="var", default=Calculation(func['calc_value'], Params((ParamOption(option_12)))), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="fam1", doc="fam1", children=[option_14], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[optiondescription_11, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/12auto_jinja_base/__init__.py b/tests/dictionaries/12auto_jinja_base/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 459f50338..000000000 --- a/tests/dictionaries/12auto_jinja_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/12auto_jinja_base/makedict/after.json b/tests/dictionaries/12auto_jinja_base/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_jinja_base/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_jinja_base/makedict/base.json b/tests/dictionaries/12auto_jinja_base/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/12auto_jinja_base/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/12auto_jinja_base/makedict/before.json b/tests/dictionaries/12auto_jinja_base/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/12auto_jinja_base/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_jinja_base/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_base/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_base/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_base/tiramisu/base.py b/tests/dictionaries/12auto_jinja_base/tiramisu/base.py deleted file mode 100644 index 16db0f5e4..000000000 --- a/tests/dictionaries/12auto_jinja_base/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 }}" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_base/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_base/tiramisu/multi.py deleted file mode 100644 index 66a0824c0..000000000 --- a/tests/dictionaries/12auto_jinja_base/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 }}" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_jinja_if/__init__.py b/tests/dictionaries/12auto_jinja_if/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_if/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_if/dictionaries/rougail/00-base.yml deleted file mode 100644 index f3260d145..000000000 --- a/tests/dictionaries/12auto_jinja_if/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{% if rougail.general.mode_conteneur_actif1 == ''non'' %}non{% else - %}oui{% endif %}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{% if rougail.general.mode_conteneur_actif1 == "non" %}oui{% else %}non{% - endif %}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/12auto_jinja_if/makedict/after.json b/tests/dictionaries/12auto_jinja_if/makedict/after.json deleted file mode 100644 index b9d4ee936..000000000 --- a/tests/dictionaries/12auto_jinja_if/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/12auto_jinja_if/makedict/base.json b/tests/dictionaries/12auto_jinja_if/makedict/base.json deleted file mode 100644 index 4eee7b615..000000000 --- a/tests/dictionaries/12auto_jinja_if/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "oui" -} diff --git a/tests/dictionaries/12auto_jinja_if/makedict/before.json b/tests/dictionaries/12auto_jinja_if/makedict/before.json deleted file mode 100644 index b9d4ee936..000000000 --- a/tests/dictionaries/12auto_jinja_if/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/12auto_jinja_if/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_if/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_if/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_if/tiramisu/base.py b/tests/dictionaries/12auto_jinja_if/tiramisu/base.py deleted file mode 100644 index 129125a0c..000000000 --- a/tests/dictionaries/12auto_jinja_if/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif1 == 'non' %}non{% else %}oui{% endif %}" -dict_env['default_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.mode_conteneur_actif1 == \"non\" %}oui{% else %}non{% endif %}" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_if/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_if/tiramisu/multi.py deleted file mode 100644 index 68c329460..000000000 --- a/tests/dictionaries/12auto_jinja_if/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif1 == 'non' %}non{% else %}oui{% endif %}" -dict_env['default_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.mode_conteneur_actif1 == \"non\" %}oui{% else %}non{% endif %}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general.mode_conteneur_actif1 == 'non' %}non{% else %}oui{% endif %}" -dict_env['default_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.mode_conteneur_actif1 == \"non\" %}oui{% else %}non{% endif %}" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_11)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_11)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/12auto_jinja_if_bool/__init__.py b/tests/dictionaries/12auto_jinja_if_bool/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_if_bool/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_if_bool/dictionaries/rougail/00-base.yml deleted file mode 100644 index 8a0ff5454..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: '1.0' -general: - bool: - type: boolean - multi1: - type: boolean - multi: true - mandatory: false - default: - type: jinja - jinja: | - {% if rougail.general.bool %} - True - False - {% else %} - False - {% endif %} - multi2: - type: boolean - multi: true - mandatory: false - default: - type: jinja - jinja: | - {% if not rougail.general.bool %} - True - False - {% else %} - False - {% endif %} diff --git a/tests/dictionaries/12auto_jinja_if_bool/makedict/after.json b/tests/dictionaries/12auto_jinja_if_bool/makedict/after.json deleted file mode 100644 index 41001df3b..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/makedict/after.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "rougail.general.bool": { - "owner": "default", - "value": true - }, - "rougail.general.multi1": { - "owner": "default", - "value": [ - true, - false - ] - }, - "rougail.general.multi2": { - "owner": "default", - "value": [ - false - ] - } -} diff --git a/tests/dictionaries/12auto_jinja_if_bool/makedict/base.json b/tests/dictionaries/12auto_jinja_if_bool/makedict/base.json deleted file mode 100644 index 5ac1abd6f..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.bool": true, - "rougail.general.multi1": [ - true, - false - ], - "rougail.general.multi2": [ - false - ] -} diff --git a/tests/dictionaries/12auto_jinja_if_bool/makedict/before.json b/tests/dictionaries/12auto_jinja_if_bool/makedict/before.json deleted file mode 100644 index 41001df3b..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/makedict/before.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "rougail.general.bool": { - "owner": "default", - "value": true - }, - "rougail.general.multi1": { - "owner": "default", - "value": [ - true, - false - ] - }, - "rougail.general.multi2": { - "owner": "default", - "value": [ - false - ] - } -} diff --git a/tests/dictionaries/12auto_jinja_if_bool/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_if_bool/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_if_bool/tiramisu/base.py b/tests/dictionaries/12auto_jinja_if_bool/tiramisu/base.py deleted file mode 100644 index 7c0f08775..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.multi1'] = "{% if rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -dict_env['default_rougail.general.multi2'] = "{% if not rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -option_3 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = BoolOption(name="multi1", doc="multi1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -option_5 = BoolOption(name="multi2", doc="multi2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_if_bool/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_if_bool/tiramisu/multi.py deleted file mode 100644 index a27c5931f..000000000 --- a/tests/dictionaries/12auto_jinja_if_bool/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.multi1'] = "{% if rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -dict_env['default_1.rougail.general.multi2'] = "{% if not rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -dict_env['default_2.rougail.general.multi1'] = "{% if rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -dict_env['default_2.rougail.general.multi2'] = "{% if not rougail.general.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" -option_4 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_5 = BoolOption(name="multi1", doc="multi1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_4)})), properties=frozenset({"standard"})) -option_6 = BoolOption(name="multi2", doc="multi2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_4)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_11 = BoolOption(name="multi1", doc="multi1", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_10)})), properties=frozenset({"standard"})) -option_12 = BoolOption(name="multi2", doc="multi2", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), 'rougail.general.bool': ParamOption(option_10)})), properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/12auto_jinja_if_int/__init__.py b/tests/dictionaries/12auto_jinja_if_int/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_if_int/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_if_int/dictionaries/rougail/00-base.yml deleted file mode 100644 index db58930d5..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '1.0' -bool: - type: boolean -int1: - type: number - default: - type: jinja - jinja: '{% if rougail.bool %}1{% else %}2{% endif %}' - mandatory: false -int2: - type: number - default: - type: jinja - jinja: '{% if not rougail.bool %}3{% else %}4{% endif %}' - mandatory: false diff --git a/tests/dictionaries/12auto_jinja_if_int/makedict/after.json b/tests/dictionaries/12auto_jinja_if_int/makedict/after.json deleted file mode 100644 index 5bff78440..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.int1": { - "owner": "default", - "value": 1 - }, - "rougail.int2": { - "owner": "default", - "value": 4 - } -} diff --git a/tests/dictionaries/12auto_jinja_if_int/makedict/base.json b/tests/dictionaries/12auto_jinja_if_int/makedict/base.json deleted file mode 100644 index 98bf4d8aa..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.bool": true, - "rougail.int1": 1, - "rougail.int2": 4 -} diff --git a/tests/dictionaries/12auto_jinja_if_int/makedict/before.json b/tests/dictionaries/12auto_jinja_if_int/makedict/before.json deleted file mode 100644 index 5bff78440..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.int1": { - "owner": "default", - "value": 1 - }, - "rougail.int2": { - "owner": "default", - "value": 4 - } -} diff --git a/tests/dictionaries/12auto_jinja_if_int/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_if_int/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_if_int/tiramisu/base.py b/tests/dictionaries/12auto_jinja_if_int/tiramisu/base.py deleted file mode 100644 index ea388ce42..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}" -dict_env['default_rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}" -option_2 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_3 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"standard"})) -option_4 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_if_int/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_if_int/tiramisu/multi.py deleted file mode 100644 index 487f5a43e..000000000 --- a/tests/dictionaries/12auto_jinja_if_int/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}" -dict_env['default_1.rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}" -dict_env['default_2.rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}" -dict_env['default_2.rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}" -option_3 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -option_5 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_9 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"standard"})) -option_10 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/__init__.py b/tests/dictionaries/12auto_jinja_not_return_boolean/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_not_return_boolean/dictionaries/rougail/00-base.yml deleted file mode 100644 index ecee09abb..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -version: '1.0' -var1: - default: 'no' -var2: - type: boolean - default: - type: jinja - jinja: | - {% if rougail.var1 == 'no' %} - false - {% endif %} diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/after.json b/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/after.json deleted file mode 100644 index d56fcb5d0..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.var1": { - "owner": "default", - "value": "no" - }, - "rougail.var2": { - "owner": "default", - "value": false - } -} diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/base.json b/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/base.json deleted file mode 100644 index 66dbe3f47..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.var1": "no", - "rougail.var2": false -} diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/before.json b/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/before.json deleted file mode 100644 index d56fcb5d0..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.var1": { - "owner": "default", - "value": "no" - }, - "rougail.var2": { - "owner": "default", - "value": false - } -} diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/base.py b/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/base.py deleted file mode 100644 index 43c8c25b7..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" -option_2 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_3 = BoolOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/multi.py deleted file mode 100644 index 3c27f9798..000000000 --- a/tests/dictionaries/12auto_jinja_not_return_boolean/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" -dict_env['default_2.rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" -option_3 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_4 = BoolOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="var1", doc="var1", default="no", properties=frozenset({"mandatory", "standard"})) -option_8 = BoolOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_7)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/12auto_jinja_set/__init__.py b/tests/dictionaries/12auto_jinja_set/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_jinja_set/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_jinja_set/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9d667f54b..000000000 --- a/tests/dictionaries/12auto_jinja_set/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: '1.0' -bool: - type: boolean -int1: - type: number - default: - type: jinja - jinja: '{%set bool1 = rougail.bool %}{% if bool1 %}1{% else %}2{% endif %}' - mandatory: false -int2: - type: number - default: - type: jinja - jinja: '{%set bool1 = rougail.bool %}{% if not bool1 %}3{% else %}4{% endif %}' - mandatory: false diff --git a/tests/dictionaries/12auto_jinja_set/makedict/after.json b/tests/dictionaries/12auto_jinja_set/makedict/after.json deleted file mode 100644 index 5bff78440..000000000 --- a/tests/dictionaries/12auto_jinja_set/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.int1": { - "owner": "default", - "value": 1 - }, - "rougail.int2": { - "owner": "default", - "value": 4 - } -} diff --git a/tests/dictionaries/12auto_jinja_set/makedict/base.json b/tests/dictionaries/12auto_jinja_set/makedict/base.json deleted file mode 100644 index 98bf4d8aa..000000000 --- a/tests/dictionaries/12auto_jinja_set/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.bool": true, - "rougail.int1": 1, - "rougail.int2": 4 -} diff --git a/tests/dictionaries/12auto_jinja_set/makedict/before.json b/tests/dictionaries/12auto_jinja_set/makedict/before.json deleted file mode 100644 index 5bff78440..000000000 --- a/tests/dictionaries/12auto_jinja_set/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.bool": { - "owner": "default", - "value": true - }, - "rougail.int1": { - "owner": "default", - "value": 1 - }, - "rougail.int2": { - "owner": "default", - "value": 4 - } -} diff --git a/tests/dictionaries/12auto_jinja_set/makedict/mandatory.json b/tests/dictionaries/12auto_jinja_set/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_jinja_set/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_jinja_set/tiramisu/base.py b/tests/dictionaries/12auto_jinja_set/tiramisu/base.py deleted file mode 100644 index 2bfb92660..000000000 --- a/tests/dictionaries/12auto_jinja_set/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.int1'] = "{%set bool1 = rougail.bool %}{% if bool1 %}1{% else %}2{% endif %}" -dict_env['default_rougail.int2'] = "{%set bool1 = rougail.bool %}{% if not bool1 %}3{% else %}4{% endif %}" -option_2 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_3 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"standard"})) -option_4 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_jinja_set/tiramisu/multi.py b/tests/dictionaries/12auto_jinja_set/tiramisu/multi.py deleted file mode 100644 index 3bf8aa9d7..000000000 --- a/tests/dictionaries/12auto_jinja_set/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.int1'] = "{%set bool1 = rougail.bool %}{% if bool1 %}1{% else %}2{% endif %}" -dict_env['default_1.rougail.int2'] = "{%set bool1 = rougail.bool %}{% if not bool1 %}3{% else %}4{% endif %}" -dict_env['default_2.rougail.int1'] = "{%set bool1 = rougail.bool %}{% if bool1 %}1{% else %}2{% endif %}" -dict_env['default_2.rougail.int2'] = "{%set bool1 = rougail.bool %}{% if not bool1 %}3{% else %}4{% endif %}" -option_3 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_4 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -option_5 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = BoolOption(name="bool", doc="bool", default=True, properties=frozenset({"mandatory", "standard"})) -option_9 = IntOption(name="int1", doc="int1", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"standard"})) -option_10 = IntOption(name="int2", doc="int2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/12auto_withoutparam/__init__.py b/tests/dictionaries/12auto_withoutparam/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/12auto_withoutparam/dictionaries/rougail/00-base.yml b/tests/dictionaries/12auto_withoutparam/dictionaries/rougail/00-base.yml deleted file mode 100644 index c43efa133..000000000 --- a/tests/dictionaries/12auto_withoutparam/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ calc_val() }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/12auto_withoutparam/makedict/after.json b/tests/dictionaries/12auto_withoutparam/makedict/after.json deleted file mode 100644 index 477ccc55e..000000000 --- a/tests/dictionaries/12auto_withoutparam/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_withoutparam/makedict/base.json b/tests/dictionaries/12auto_withoutparam/makedict/base.json deleted file mode 100644 index f8d69705a..000000000 --- a/tests/dictionaries/12auto_withoutparam/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null, - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/12auto_withoutparam/makedict/before.json b/tests/dictionaries/12auto_withoutparam/makedict/before.json deleted file mode 100644 index 477ccc55e..000000000 --- a/tests/dictionaries/12auto_withoutparam/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/12auto_withoutparam/makedict/mandatory.json b/tests/dictionaries/12auto_withoutparam/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/12auto_withoutparam/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/12auto_withoutparam/tiramisu/base.py b/tests/dictionaries/12auto_withoutparam/tiramisu/base.py deleted file mode 100644 index cca43bfda..000000000 --- a/tests/dictionaries/12auto_withoutparam/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ calc_val() }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/12auto_withoutparam/tiramisu/multi.py b/tests/dictionaries/12auto_withoutparam/tiramisu/multi.py deleted file mode 100644 index 230809ff3..000000000 --- a/tests/dictionaries/12auto_withoutparam/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ calc_val() }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ calc_val() }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/13fill_information/__init__.py b/tests/dictionaries/13fill_information/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_information/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_information/dictionaries/rougail/00-base.yml deleted file mode 100644 index 70a1927ee..000000000 --- a/tests/dictionaries/13fill_information/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ __information.test_information | calc_val }}' - params: - __information.test_information: - type: information - information: test_information - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/13fill_information/makedict/after.json b/tests/dictionaries/13fill_information/makedict/after.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/13fill_information/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_information/makedict/base.json b/tests/dictionaries/13fill_information/makedict/base.json deleted file mode 100644 index 904ffb4eb..000000000 --- a/tests/dictionaries/13fill_information/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "value" -} diff --git a/tests/dictionaries/13fill_information/makedict/before.json b/tests/dictionaries/13fill_information/makedict/before.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/13fill_information/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_information/makedict/mandatory.json b/tests/dictionaries/13fill_information/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_information/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_information_multi/__init__.py b/tests/dictionaries/13fill_information_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_information_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_information_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9a2345899..000000000 --- a/tests/dictionaries/13fill_information_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - multi: true - default: - type: jinja - jinja: '{{ __information.test_information | calc_val }}' - params: - __information.test_information: - type: information - information: test_information - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/13fill_information_multi/makedict/mandatory.json b/tests/dictionaries/13fill_information_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_information_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option/__init__.py b/tests/dictionaries/13fill_option/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_option/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_option/dictionaries/rougail/00-base.yml deleted file mode 100644 index 33a6a04ed..000000000 --- a/tests/dictionaries/13fill_option/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: - params: - __information.rougail.general.od.variable.test_information: - type: information - information: test_information - variable: rougail.general.od.variable - type: jinja - jinja: '{{ __information.rougail.general.od.variable.test_information | calc_val - }} - - ' - mandatory: false - od: - variable: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/13fill_option/makedict/mandatory.json b/tests/dictionaries/13fill_option/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_option/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option_information/__init__.py b/tests/dictionaries/13fill_option_information/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_option_information/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_option_information/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3c21e9444..000000000 --- a/tests/dictionaries/13fill_option_information/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '1.0' -general: - variable: - type: string - description: No change - mandatory: false - mode_conteneur_actif: - type: string - description: No change - default: - type: information - information: test_information - variable: rougail.general.variable - mandatory: false diff --git a/tests/dictionaries/13fill_option_information/makedict/mandatory.json b/tests/dictionaries/13fill_option_information/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_option_information/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option_information_param/__init__.py b/tests/dictionaries/13fill_option_information_param/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_option_information_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_option_information_param/dictionaries/rougail/00-base.yml deleted file mode 100644 index 758966241..000000000 --- a/tests/dictionaries/13fill_option_information_param/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: '1.0' -general: - variable: - type: string - description: No change - mandatory: false - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ information }} - - ' - params: - information: - type: information - information: test_information - variable: rougail.general.variable - mandatory: false diff --git a/tests/dictionaries/13fill_option_information_param/informations.json b/tests/dictionaries/13fill_option_information_param/informations.json deleted file mode 100644 index 69510fc75..000000000 --- a/tests/dictionaries/13fill_option_information_param/informations.json +++ /dev/null @@ -1 +0,0 @@ -{"rougail.general.variable": "value"} diff --git a/tests/dictionaries/13fill_option_information_param/makedict/mandatory.json b/tests/dictionaries/13fill_option_information_param/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_option_information_param/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option_information_param/tiramisu/base.py b/tests/dictionaries/13fill_option_information_param/tiramisu/base.py deleted file mode 100644 index cdaee930c..000000000 --- a/tests/dictionaries/13fill_option_information_param/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ information }}\n" -option_3 = StrOption(name="variable", doc="No change", properties=frozenset({"standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_3)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/13fill_option_information_param/tiramisu/multi.py b/tests/dictionaries/13fill_option_information_param/tiramisu/multi.py deleted file mode 100644 index 88baa2513..000000000 --- a/tests/dictionaries/13fill_option_information_param/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ information }}\n" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ information }}\n" -option_4 = StrOption(name="variable", doc="No change", properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_4)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="variable", doc="No change", properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_9)})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/13fill_option_information_parent/__init__.py b/tests/dictionaries/13fill_option_information_parent/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_option_information_parent/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_option_information_parent/dictionaries/rougail/00-base.yml deleted file mode 100644 index 6647c8f4a..000000000 --- a/tests/dictionaries/13fill_option_information_parent/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '1.0' -general: - variable: - type: string - description: No change - mandatory: false - mode_conteneur_actif: - type: string - description: No change - default: - type: information - information: test_information - variable: rougail.general - mandatory: false diff --git a/tests/dictionaries/13fill_option_information_parent/makedict/after.json b/tests/dictionaries/13fill_option_information_parent/makedict/after.json deleted file mode 100644 index 7f08ef4fb..000000000 --- a/tests/dictionaries/13fill_option_information_parent/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_option_information_parent/makedict/base.json b/tests/dictionaries/13fill_option_information_parent/makedict/base.json deleted file mode 100644 index bd4b110e3..000000000 --- a/tests/dictionaries/13fill_option_information_parent/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.variable": null, - "rougail.general.mode_conteneur_actif": "value" -} diff --git a/tests/dictionaries/13fill_option_information_parent/makedict/before.json b/tests/dictionaries/13fill_option_information_parent/makedict/before.json deleted file mode 100644 index 7f08ef4fb..000000000 --- a/tests/dictionaries/13fill_option_information_parent/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_option_information_parent/makedict/mandatory.json b/tests/dictionaries/13fill_option_information_parent/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/13fill_option_information_parent/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option_information_relative_path/__init__.py b/tests/dictionaries/13fill_option_information_relative_path/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/13fill_option_information_relative_path/dictionaries/rougail/00-base.yml b/tests/dictionaries/13fill_option_information_relative_path/dictionaries/rougail/00-base.yml deleted file mode 100644 index 14d8f5a2a..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -version: '1.1' -general: - variable: - variable2: - default: - type: jinja - jinja: '{{ information }}' - params: - information: - type: information - information: test_information - variable: _.variable - mandatory: false diff --git a/tests/dictionaries/13fill_option_information_relative_path/informations.json b/tests/dictionaries/13fill_option_information_relative_path/informations.json deleted file mode 100644 index 69510fc75..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/informations.json +++ /dev/null @@ -1 +0,0 @@ -{"rougail.general.variable": "value"} diff --git a/tests/dictionaries/13fill_option_information_relative_path/makedict/after.json b/tests/dictionaries/13fill_option_information_relative_path/makedict/after.json deleted file mode 100644 index df1f270dd..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.variable2": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_option_information_relative_path/makedict/base.json b/tests/dictionaries/13fill_option_information_relative_path/makedict/base.json deleted file mode 100644 index 44136fdd8..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.variable": null, - "rougail.general.variable2": "value" -} diff --git a/tests/dictionaries/13fill_option_information_relative_path/makedict/before.json b/tests/dictionaries/13fill_option_information_relative_path/makedict/before.json deleted file mode 100644 index df1f270dd..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.variable": { - "owner": "default", - "value": null - }, - "rougail.general.variable2": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/13fill_option_information_relative_path/makedict/mandatory.json b/tests/dictionaries/13fill_option_information_relative_path/makedict/mandatory.json deleted file mode 100644 index f22b1c013..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.variable"] \ No newline at end of file diff --git a/tests/dictionaries/13fill_option_information_relative_path/tiramisu/base.py b/tests/dictionaries/13fill_option_information_relative_path/tiramisu/base.py deleted file mode 100644 index 02d74accf..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.variable2'] = "{{ information }}" -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_4 = StrOption(name="variable2", doc="variable2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_3)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/13fill_option_information_relative_path/tiramisu/multi.py b/tests/dictionaries/13fill_option_information_relative_path/tiramisu/multi.py deleted file mode 100644 index adeb31690..000000000 --- a/tests/dictionaries/13fill_option_information_relative_path/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.variable2'] = "{{ information }}" -dict_env['default_2.rougail.general.variable2'] = "{{ information }}" -option_4 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_5 = StrOption(name="variable2", doc="variable2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_4)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = StrOption(name="variable", doc="variable", properties=frozenset({"basic", "mandatory"})) -option_10 = StrOption(name="variable2", doc="variable2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.variable2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'information': ParamInformation("test_information", None, option=option_9)})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/15fill_autosave/__init__.py b/tests/dictionaries/15fill_autosave/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15fill_autosave/dictionaries/rougail/00-base.yml b/tests/dictionaries/15fill_autosave/dictionaries/rougail/00-base.yml deleted file mode 100644 index d9521772e..000000000 --- a/tests/dictionaries/15fill_autosave/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -server_deployed: - type: boolean -general: - mode_conteneur_actif: - type: string - description: No change - auto_save: true - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 | calc_val }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/15fill_autosave/makedict/mandatory.json b/tests/dictionaries/15fill_autosave/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15fill_autosave/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15fill_base/__init__.py b/tests/dictionaries/15fill_base/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15fill_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/15fill_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2ce120748..000000000 --- a/tests/dictionaries/15fill_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 | calc_val }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/15fill_base/makedict/after.json b/tests/dictionaries/15fill_base/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/15fill_base/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_base/makedict/base.json b/tests/dictionaries/15fill_base/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/15fill_base/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/15fill_base/makedict/before.json b/tests/dictionaries/15fill_base/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/15fill_base/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_base/makedict/mandatory.json b/tests/dictionaries/15fill_base/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15fill_base/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15fill_base/tiramisu/base.py b/tests/dictionaries/15fill_base/tiramisu/base.py deleted file mode 100644 index ef1c42865..000000000 --- a/tests/dictionaries/15fill_base/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/15fill_base/tiramisu/multi.py b/tests/dictionaries/15fill_base/tiramisu/multi.py deleted file mode 100644 index e808a5fb7..000000000 --- a/tests/dictionaries/15fill_base/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/15fill_mandatory/__init__.py b/tests/dictionaries/15fill_mandatory/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15fill_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/15fill_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index c1fe9033e..000000000 --- a/tests/dictionaries/15fill_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,15 +0,0 @@ -general: - mode: basic - mode_conteneur_actif: - type: string - description: No change - mandatory: true - mode: advanced - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 | calc_val }}' - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/15fill_mandatory/makedict/after.json b/tests/dictionaries/15fill_mandatory/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/15fill_mandatory/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_mandatory/makedict/base.json b/tests/dictionaries/15fill_mandatory/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/15fill_mandatory/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/15fill_mandatory/makedict/before.json b/tests/dictionaries/15fill_mandatory/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/15fill_mandatory/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_mandatory/makedict/mandatory.json b/tests/dictionaries/15fill_mandatory/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15fill_mandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15fill_mandatory/tiramisu/base.py b/tests/dictionaries/15fill_mandatory/tiramisu/base.py deleted file mode 100644 index 01bddf022..000000000 --- a/tests/dictionaries/15fill_mandatory/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_4)})), properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/15fill_mandatory/tiramisu/multi.py b/tests/dictionaries/15fill_mandatory/tiramisu/multi.py deleted file mode 100644 index 7008d8c38..000000000 --- a/tests/dictionaries/15fill_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ rougail.general.mode_conteneur_actif1 | calc_val }}" -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_5)})), properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif1': ParamOption(option_10)})), properties=frozenset({"advanced", "mandatory"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/15fill_number/__init__.py b/tests/dictionaries/15fill_number/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15fill_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/15fill_number/dictionaries/rougail/00-base.yml deleted file mode 100644 index 60245225b..000000000 --- a/tests/dictionaries/15fill_number/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -general: - mode_conteneur_actif: - type: number - description: No change - hidden: true - default: - type: jinja - jinja: '{{ 3 | calc_val }}' - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/15fill_number/makedict/after.json b/tests/dictionaries/15fill_number/makedict/after.json deleted file mode 100644 index 65a98ebb0..000000000 --- a/tests/dictionaries/15fill_number/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": 3 - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_number/makedict/base.json b/tests/dictionaries/15fill_number/makedict/base.json deleted file mode 100644 index e807c5bfc..000000000 --- a/tests/dictionaries/15fill_number/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": 3, - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/15fill_number/makedict/before.json b/tests/dictionaries/15fill_number/makedict/before.json deleted file mode 100644 index 65a98ebb0..000000000 --- a/tests/dictionaries/15fill_number/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": 3 - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_number/makedict/mandatory.json b/tests/dictionaries/15fill_number/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15fill_number/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15fill_number/tiramisu/base.py b/tests/dictionaries/15fill_number/tiramisu/base.py deleted file mode 100644 index dd6ca4820..000000000 --- a/tests/dictionaries/15fill_number/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ 3 | calc_val }}" -option_3 = IntOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/15fill_number/tiramisu/multi.py b/tests/dictionaries/15fill_number/tiramisu/multi.py deleted file mode 100644 index 4c0127099..000000000 --- a/tests/dictionaries/15fill_number/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ 3 | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ 3 | calc_val }}" -option_4 = IntOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = IntOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/15fill_only_optional/__init__.py b/tests/dictionaries/15fill_only_optional/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15fill_only_optional/dictionaries/rougail/00-base.yml b/tests/dictionaries/15fill_only_optional/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2d4b7e18b..000000000 --- a/tests/dictionaries/15fill_only_optional/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{% if __mode_conteneur_actif4 is defined %} - - {{ __mode_conteneur_actif4 }} - - {% endif %} - - ' - params: - __mode_conteneur_actif4: - type: variable - variable: rougail.mode_conteneur_actif4 - optional: true - mandatory: false - mode_conteneur_actif1: - type: string - description: No change - default: non -version: '1.0' diff --git a/tests/dictionaries/15fill_only_optional/makedict/after.json b/tests/dictionaries/15fill_only_optional/makedict/after.json deleted file mode 100644 index 477ccc55e..000000000 --- a/tests/dictionaries/15fill_only_optional/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_only_optional/makedict/base.json b/tests/dictionaries/15fill_only_optional/makedict/base.json deleted file mode 100644 index f8d69705a..000000000 --- a/tests/dictionaries/15fill_only_optional/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null, - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/15fill_only_optional/makedict/before.json b/tests/dictionaries/15fill_only_optional/makedict/before.json deleted file mode 100644 index 477ccc55e..000000000 --- a/tests/dictionaries/15fill_only_optional/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/15fill_only_optional/makedict/mandatory.json b/tests/dictionaries/15fill_only_optional/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15fill_only_optional/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15fill_only_optional/tiramisu/base.py b/tests/dictionaries/15fill_only_optional/tiramisu/base.py deleted file mode 100644 index 536cd6af9..000000000 --- a/tests/dictionaries/15fill_only_optional/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %}\n{{ __mode_conteneur_actif4 }}\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/15fill_only_optional/tiramisu/multi.py b/tests/dictionaries/15fill_only_optional/tiramisu/multi.py deleted file mode 100644 index 08f9308ea..000000000 --- a/tests/dictionaries/15fill_only_optional/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %}\n{{ __mode_conteneur_actif4 }}\n{% endif %}\n" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{% if __mode_conteneur_actif4 is defined %}\n{{ __mode_conteneur_actif4 }}\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/15load_autosave/__init__.py b/tests/dictionaries/15load_autosave/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15load_autosave/dictionaries/rougail/00-base.yml b/tests/dictionaries/15load_autosave/dictionaries/rougail/00-base.yml deleted file mode 100644 index d0c8eeb01..000000000 --- a/tests/dictionaries/15load_autosave/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -server_deployed: - type: boolean -general: - description: général - mode_conteneur_actif: - type: string - description: No change - auto_save: true - default: non -version: '1.0' diff --git a/tests/dictionaries/15load_autosave/makedict/mandatory.json b/tests/dictionaries/15load_autosave/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15load_autosave/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/15load_autosaveexpert/__init__.py b/tests/dictionaries/15load_autosaveexpert/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/15load_autosaveexpert/dictionaries/rougail/00-base.yml b/tests/dictionaries/15load_autosaveexpert/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9b1fadffa..000000000 --- a/tests/dictionaries/15load_autosaveexpert/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -server_deployed: - type: boolean -general: - description: général - mode_conteneur_actif: - type: string - description: No change - auto_save: true - mode: advanced - default: non -version: '1.0' diff --git a/tests/dictionaries/15load_autosaveexpert/makedict/mandatory.json b/tests/dictionaries/15load_autosaveexpert/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/15load_autosaveexpert/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/10leadership_append_hidden/__init__.py b/tests/dictionaries/16_0redefine_description/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_append_hidden/__init__.py rename to tests/dictionaries/16_0redefine_description/__init__.py diff --git a/tests/dictionaries/16_0redefine_description/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_0redefine_description/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..83227aa50 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +var: + description: Redefine description diff --git a/tests/dictionaries/16_0redefine_description/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/16_0redefine_description/dictionaries/rougail/01-redefine.yml new file mode 100644 index 000000000..667b85fb6 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/dictionaries/rougail/01-redefine.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +var: + description: Redefined + redefine: true diff --git a/tests/dictionaries/16_0redefine_description/makedict/after.json b/tests/dictionaries/16_0redefine_description/makedict/after.json new file mode 100644 index 000000000..98c89cfa5 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_0redefine_description/makedict/base.json b/tests/dictionaries/16_0redefine_description/makedict/base.json new file mode 100644 index 000000000..bae2c8fbf --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": null +} diff --git a/tests/dictionaries/16_0redefine_description/makedict/before.json b/tests/dictionaries/16_0redefine_description/makedict/before.json new file mode 100644 index 000000000..98c89cfa5 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_0redefine_description/makedict/mandatory.json b/tests/dictionaries/16_0redefine_description/makedict/mandatory.json new file mode 100644 index 000000000..f030b0c48 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var"] \ No newline at end of file diff --git a/tests/dictionaries/16_0redefine_description/tiramisu/base.py b/tests/dictionaries/16_0redefine_description/tiramisu/base.py new file mode 100644 index 000000000..407829252 --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="Redefined", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_0redefine_description/tiramisu/multi.py b/tests/dictionaries/16_0redefine_description/tiramisu/multi.py new file mode 100644 index 000000000..078b0b82c --- /dev/null +++ b/tests/dictionaries/16_0redefine_description/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="Redefined", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = StrOption(name="var", doc="Redefined", properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_append_name/__init__.py b/tests/dictionaries/16_2family_redefine_disabled/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_append_name/__init__.py rename to tests/dictionaries/16_2family_redefine_disabled/__init__.py diff --git a/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..553c9a747 --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.0' +family: + var1: diff --git a/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..f33c4b207 --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_disabled/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.0' +family: + redefine: true + disabled: true diff --git a/tests/dictionaries/00empty_family/makedict/after.json b/tests/dictionaries/16_2family_redefine_disabled/makedict/after.json similarity index 100% rename from tests/dictionaries/00empty_family/makedict/after.json rename to tests/dictionaries/16_2family_redefine_disabled/makedict/after.json diff --git a/tests/dictionaries/00empty_family/makedict/base.json b/tests/dictionaries/16_2family_redefine_disabled/makedict/base.json similarity index 100% rename from tests/dictionaries/00empty_family/makedict/base.json rename to tests/dictionaries/16_2family_redefine_disabled/makedict/base.json diff --git a/tests/dictionaries/00empty_family/makedict/before.json b/tests/dictionaries/16_2family_redefine_disabled/makedict/before.json similarity index 100% rename from tests/dictionaries/00empty_family/makedict/before.json rename to tests/dictionaries/16_2family_redefine_disabled/makedict/before.json diff --git a/tests/dictionaries/10fill_optional/makedict/mandatory.json b/tests/dictionaries/16_2family_redefine_disabled/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10fill_optional/makedict/mandatory.json rename to tests/dictionaries/16_2family_redefine_disabled/makedict/mandatory.json diff --git a/tests/dictionaries/16_2family_redefine_disabled/tiramisu/base.py b/tests/dictionaries/16_2family_redefine_disabled/tiramisu/base.py new file mode 100644 index 000000000..164c6d2bc --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_disabled/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="family", doc="family", children=[option_3], properties=frozenset({"basic", "disabled"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_2family_redefine_disabled/tiramisu/multi.py b/tests/dictionaries/16_2family_redefine_disabled/tiramisu/multi.py new file mode 100644 index 000000000..5a73fa6ee --- /dev/null +++ b/tests/dictionaries/16_2family_redefine_disabled/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = OptionDescription(name="family", doc="family", children=[option_4], properties=frozenset({"basic", "disabled"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = OptionDescription(name="family", doc="family", children=[option_8], properties=frozenset({"basic", "disabled"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10leadership_auto/__init__.py b/tests/dictionaries/16_5exists_nonexists/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_auto/__init__.py rename to tests/dictionaries/16_5exists_nonexists/__init__.py diff --git a/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..112f25c63 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/00-base.yml @@ -0,0 +1,3 @@ +--- +version: '1.1' +var1: "no" # a variable diff --git a/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..29266e3b5 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/dictionaries/rougail/01-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +var2: + description: a new variable + exists: false + default: "yes" diff --git a/tests/dictionaries/16_5exists_nonexists/makedict/after.json b/tests/dictionaries/16_5exists_nonexists/makedict/after.json new file mode 100644 index 000000000..afb36a7c4 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/16_5exists_nonexists/makedict/base.json b/tests/dictionaries/16_5exists_nonexists/makedict/base.json new file mode 100644 index 000000000..81b1c83e2 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "no", + "rougail.var2": "yes" +} diff --git a/tests/dictionaries/16_5exists_nonexists/makedict/before.json b/tests/dictionaries/16_5exists_nonexists/makedict/before.json new file mode 100644 index 000000000..afb36a7c4 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10fill_quote/makedict/mandatory.json b/tests/dictionaries/16_5exists_nonexists/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10fill_quote/makedict/mandatory.json rename to tests/dictionaries/16_5exists_nonexists/makedict/mandatory.json diff --git a/tests/dictionaries/16_5exists_nonexists/tiramisu/base.py b/tests/dictionaries/16_5exists_nonexists/tiramisu/base.py new file mode 100644 index 000000000..6f72bc157 --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var2", doc="a new variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5exists_nonexists/tiramisu/multi.py b/tests/dictionaries/16_5exists_nonexists/tiramisu/multi.py new file mode 100644 index 000000000..01029fd0d --- /dev/null +++ b/tests/dictionaries/16_5exists_nonexists/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var2", doc="a new variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_7 = StrOption(name="var1", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var2", doc="a new variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10leadership_auto_index/__init__.py b/tests/dictionaries/16_5exists_redefine/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_auto_index/__init__.py rename to tests/dictionaries/16_5exists_redefine/__init__.py diff --git a/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7e1cc9135 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +var1: + description: a first variable + hidden: true + default: "no" diff --git a/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..a72ec9ebb --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/dictionaries/rougail/01-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +var1: + redefine: true + exists: true + default: "yes" +var2: + description: a second variable + redefine: true + exists: true + default: "yes" diff --git a/tests/dictionaries/16_5exists_redefine/makedict/after.json b/tests/dictionaries/16_5exists_redefine/makedict/after.json new file mode 100644 index 000000000..1f17a2410 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/16_5exists_redefine/makedict/base.json b/tests/dictionaries/16_5exists_redefine/makedict/base.json new file mode 100644 index 000000000..be13f3975 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var1": "yes" +} diff --git a/tests/dictionaries/16_5exists_redefine/makedict/before.json b/tests/dictionaries/16_5exists_redefine/makedict/before.json new file mode 100644 index 000000000..1f17a2410 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10fill_target_information/makedict/mandatory.json b/tests/dictionaries/16_5exists_redefine/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10fill_target_information/makedict/mandatory.json rename to tests/dictionaries/16_5exists_redefine/makedict/mandatory.json diff --git a/tests/dictionaries/16_5exists_redefine/tiramisu/base.py b/tests/dictionaries/16_5exists_redefine/tiramisu/base.py new file mode 100644 index 000000000..a483e6357 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5exists_redefine/tiramisu/multi.py b/tests/dictionaries/16_5exists_redefine/tiramisu/multi.py new file mode 100644 index 000000000..134d08244 --- /dev/null +++ b/tests/dictionaries/16_5exists_redefine/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_auto_index_param/__init__.py b/tests/dictionaries/16_5redefine_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_auto_index_param/__init__.py rename to tests/dictionaries/16_5redefine_calculation/__init__.py diff --git a/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..582a32f08 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: + description: a variable + default: + type: jinja + jinja: 'no' + description: returns no diff --git a/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..90b6443fa --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/dictionaries/rougail/01-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: + redefine: true + default: + type: jinja + jinja: 'yes' + description: returns yes diff --git a/tests/dictionaries/16_5redefine_calculation/makedict/after.json b/tests/dictionaries/16_5redefine_calculation/makedict/after.json new file mode 100644 index 000000000..24a9bfd82 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/16_5redefine_calculation/makedict/base.json b/tests/dictionaries/16_5redefine_calculation/makedict/base.json new file mode 100644 index 000000000..953b0cbf9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "yes" +} diff --git a/tests/dictionaries/16_5redefine_calculation/makedict/before.json b/tests/dictionaries/16_5redefine_calculation/makedict/before.json new file mode 100644 index 000000000..24a9bfd82 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10fill_target_optional/makedict/mandatory.json b/tests/dictionaries/16_5redefine_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10fill_target_optional/makedict/mandatory.json rename to tests/dictionaries/16_5redefine_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/16_5redefine_calculation/tiramisu/base.py b/tests/dictionaries/16_5redefine_calculation/tiramisu/base.py new file mode 100644 index 000000000..9257344bc --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.variable'] = "yes" +option_2 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_calculation/tiramisu/multi.py b/tests/dictionaries/16_5redefine_calculation/tiramisu/multi.py new file mode 100644 index 000000000..09667bf49 --- /dev/null +++ b/tests/dictionaries/16_5redefine_calculation/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.variable'] = "yes" +dict_env['default_2.rougail.variable'] = "yes" +option_3 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="variable", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_autoleader/__init__.py b/tests/dictionaries/16_5redefine_choice/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_autoleader/__init__.py rename to tests/dictionaries/16_5redefine_choice/__init__.py diff --git a/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..905b8651c --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: + description: a variable + choices: + - a + - b + - c diff --git a/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/01-redefine.yml new file mode 100644 index 000000000..f8f1d6aa1 --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/dictionaries/rougail/01-redefine.yml @@ -0,0 +1,7 @@ +--- +version: '1.0' +variable: + redefine: true + choices: + - a + - b diff --git a/tests/dictionaries/45without_family/makedict/after.json b/tests/dictionaries/16_5redefine_choice/makedict/after.json similarity index 100% rename from tests/dictionaries/45without_family/makedict/after.json rename to tests/dictionaries/16_5redefine_choice/makedict/after.json diff --git a/tests/dictionaries/45without_family/makedict/base.json b/tests/dictionaries/16_5redefine_choice/makedict/base.json similarity index 100% rename from tests/dictionaries/45without_family/makedict/base.json rename to tests/dictionaries/16_5redefine_choice/makedict/base.json diff --git a/tests/dictionaries/45without_family/makedict/before.json b/tests/dictionaries/16_5redefine_choice/makedict/before.json similarity index 100% rename from tests/dictionaries/45without_family/makedict/before.json rename to tests/dictionaries/16_5redefine_choice/makedict/before.json diff --git a/tests/dictionaries/16_5redefine_choice/makedict/mandatory.json b/tests/dictionaries/16_5redefine_choice/makedict/mandatory.json new file mode 100644 index 000000000..bdc34fddd --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.variable"] \ No newline at end of file diff --git a/tests/dictionaries/16_5redefine_choice/tiramisu/base.py b/tests/dictionaries/16_5redefine_choice/tiramisu/base.py new file mode 100644 index 000000000..7750c365d --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = ChoiceOption(name="variable", doc="a variable", values=("a", "b"), properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_choice/tiramisu/multi.py b/tests/dictionaries/16_5redefine_choice/tiramisu/multi.py new file mode 100644 index 000000000..72c1ea1a2 --- /dev/null +++ b/tests/dictionaries/16_5redefine_choice/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = ChoiceOption(name="variable", doc="a variable", values=("a", "b"), properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = ChoiceOption(name="variable", doc="a variable", values=("a", "b"), properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_autoleader_expert/__init__.py b/tests/dictionaries/16_5redefine_default/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_autoleader_expert/__init__.py rename to tests/dictionaries/16_5redefine_default/__init__.py diff --git a/tests/dictionaries/16_5redefine_default/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_default/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e694df3f4 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + description: a variable + default: "no" diff --git a/tests/dictionaries/16_5redefine_default/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/16_5redefine_default/dictionaries/rougail/01-redefine.yml new file mode 100644 index 000000000..c9d7ff109 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/dictionaries/rougail/01-redefine.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + redefine: true + default: "yes" diff --git a/tests/dictionaries/16_5redefine_default/makedict/after.json b/tests/dictionaries/16_5redefine_default/makedict/after.json new file mode 100644 index 000000000..24a9bfd82 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/16_5redefine_default/makedict/base.json b/tests/dictionaries/16_5redefine_default/makedict/base.json new file mode 100644 index 000000000..953b0cbf9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "yes" +} diff --git a/tests/dictionaries/16_5redefine_default/makedict/before.json b/tests/dictionaries/16_5redefine_default/makedict/before.json new file mode 100644 index 000000000..24a9bfd82 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/mandatory.json b/tests/dictionaries/16_5redefine_default/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10frozenifin_unknown_valid_enum_number/makedict/mandatory.json rename to tests/dictionaries/16_5redefine_default/makedict/mandatory.json diff --git a/tests/dictionaries/16_5redefine_default/tiramisu/base.py b/tests/dictionaries/16_5redefine_default/tiramisu/base.py new file mode 100644 index 000000000..4f1876ad8 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="variable", doc="a variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_default/tiramisu/multi.py b/tests/dictionaries/16_5redefine_default/tiramisu/multi.py new file mode 100644 index 000000000..02f9594ff --- /dev/null +++ b/tests/dictionaries/16_5redefine_default/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="a variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="variable", doc="a variable", default="yes", properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_autosaveexpert/__init__.py b/tests/dictionaries/16_5redefine_default_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_autosaveexpert/__init__.py rename to tests/dictionaries/16_5redefine_default_calculation/__init__.py diff --git a/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..ab9661186 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +variable: + description: a variable + default: + type: jinja + jinja: 'yes' diff --git a/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..165e9c50c --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + redefine: true + default: null diff --git a/tests/dictionaries/16_5redefine_default_calculation/makedict/after.json b/tests/dictionaries/16_5redefine_default_calculation/makedict/after.json new file mode 100644 index 000000000..f9e638914 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_default_calculation/makedict/base.json b/tests/dictionaries/16_5redefine_default_calculation/makedict/base.json new file mode 100644 index 000000000..774ccc4b5 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": null +} diff --git a/tests/dictionaries/16_5redefine_default_calculation/makedict/before.json b/tests/dictionaries/16_5redefine_default_calculation/makedict/before.json new file mode 100644 index 000000000..f9e638914 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_default_calculation/makedict/mandatory.json b/tests/dictionaries/16_5redefine_default_calculation/makedict/mandatory.json new file mode 100644 index 000000000..bdc34fddd --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.variable"] \ No newline at end of file diff --git a/tests/dictionaries/16_5redefine_default_calculation/tiramisu/base.py b/tests/dictionaries/16_5redefine_default_calculation/tiramisu/base.py new file mode 100644 index 000000000..92fef191a --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_default_calculation/tiramisu/multi.py b/tests/dictionaries/16_5redefine_default_calculation/tiramisu/multi.py new file mode 100644 index 000000000..21491fb26 --- /dev/null +++ b/tests/dictionaries/16_5redefine_default_calculation/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_empty/__init__.py b/tests/dictionaries/16_5redefine_family/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_empty/__init__.py rename to tests/dictionaries/16_5redefine_family/__init__.py diff --git a/tests/dictionaries/16_5redefine_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_family/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..01b181fb2 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +family: # a family + variable: # a variable diff --git a/tests/dictionaries/16_5redefine_family/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5redefine_family/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..9572509b6 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +family: + redefine: true + description: new description diff --git a/tests/dictionaries/16_5redefine_family/makedict/after.json b/tests/dictionaries/16_5redefine_family/makedict/after.json new file mode 100644 index 000000000..e2102dad9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_family/makedict/base.json b/tests/dictionaries/16_5redefine_family/makedict/base.json new file mode 100644 index 000000000..e0dab7f42 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.family.variable": null +} diff --git a/tests/dictionaries/16_5redefine_family/makedict/before.json b/tests/dictionaries/16_5redefine_family/makedict/before.json new file mode 100644 index 000000000..e2102dad9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_family/makedict/mandatory.json b/tests/dictionaries/16_5redefine_family/makedict/mandatory.json new file mode 100644 index 000000000..6084a0014 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.variable"] \ No newline at end of file diff --git a/tests/dictionaries/16_5redefine_family/tiramisu/base.py b/tests/dictionaries/16_5redefine_family/tiramisu/base.py new file mode 100644 index 000000000..16c6abaa6 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="family", doc="new description", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_family/tiramisu/multi.py b/tests/dictionaries/16_5redefine_family/tiramisu/multi.py new file mode 100644 index 000000000..d060a36c2 --- /dev/null +++ b/tests/dictionaries/16_5redefine_family/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = OptionDescription(name="family", doc="new description", children=[option_4], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = OptionDescription(name="family", doc="new description", children=[option_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10leadership_hidden/__init__.py b/tests/dictionaries/16_5redefine_help/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_hidden/__init__.py rename to tests/dictionaries/16_5redefine_help/__init__.py diff --git a/tests/dictionaries/16_5redefine_help/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_help/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..db01b218f --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +family: + description: a family + help: redefine help family + variable: + description: redefine help + help: redefine help diff --git a/tests/dictionaries/16_5redefine_help/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5redefine_help/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..f7e049527 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/dictionaries/rougail/01-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +family: + redefine: true + help: redefine help family ok + variable: + redefine: true + help: redefine help ok diff --git a/tests/dictionaries/16_5redefine_help/makedict/after.json b/tests/dictionaries/16_5redefine_help/makedict/after.json new file mode 100644 index 000000000..e2102dad9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_help/makedict/base.json b/tests/dictionaries/16_5redefine_help/makedict/base.json new file mode 100644 index 000000000..e0dab7f42 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.family.variable": null +} diff --git a/tests/dictionaries/16_5redefine_help/makedict/before.json b/tests/dictionaries/16_5redefine_help/makedict/before.json new file mode 100644 index 000000000..e2102dad9 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_help/makedict/mandatory.json b/tests/dictionaries/16_5redefine_help/makedict/mandatory.json new file mode 100644 index 000000000..6084a0014 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.variable"] \ No newline at end of file diff --git a/tests/dictionaries/16_5redefine_help/tiramisu/base.py b/tests/dictionaries/16_5redefine_help/tiramisu/base.py new file mode 100644 index 000000000..567093c68 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="redefine help", properties=frozenset({"basic", "mandatory"}), informations={'help': 'redefine help ok'}) +optiondescription_2 = OptionDescription(name="family", doc="a family", children=[option_3], properties=frozenset({"basic"}), informations={'help': 'redefine help family ok'}) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_help/tiramisu/multi.py b/tests/dictionaries/16_5redefine_help/tiramisu/multi.py new file mode 100644 index 000000000..62cf89e44 --- /dev/null +++ b/tests/dictionaries/16_5redefine_help/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="variable", doc="redefine help", properties=frozenset({"basic", "mandatory"}), informations={'help': 'redefine help ok'}) +optiondescription_3 = OptionDescription(name="family", doc="a family", children=[option_4], properties=frozenset({"basic"}), informations={'help': 'redefine help family ok'}) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="variable", doc="redefine help", properties=frozenset({"basic", "mandatory"}), informations={'help': 'redefine help ok'}) +optiondescription_7 = OptionDescription(name="family", doc="a family", children=[option_8], properties=frozenset({"basic"}), informations={'help': 'redefine help family ok'}) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10leadership_leader_hidden/__init__.py b/tests/dictionaries/16_5redefine_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden/__init__.py rename to tests/dictionaries/16_5redefine_hidden/__init__.py diff --git a/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7f7ae0dac --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,3 @@ +--- +version: '1.1' +variable: "no" # a variable diff --git a/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/01-redefine.yml new file mode 100644 index 000000000..9327a590a --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/dictionaries/rougail/01-redefine.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + redefine: true + hidden: true diff --git a/tests/dictionaries/16_5redefine_hidden/makedict/after.json b/tests/dictionaries/16_5redefine_hidden/makedict/after.json new file mode 100644 index 000000000..e604b5585 --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/16_5redefine_hidden/makedict/base.json b/tests/dictionaries/16_5redefine_hidden/makedict/base.json new file mode 100644 index 000000000..2f1bf79ad --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "no" +} diff --git a/tests/dictionaries/16_5redefine_hidden/makedict/before.json b/tests/dictionaries/16_5redefine_hidden/makedict/before.json new file mode 100644 index 000000000..e604b5585 --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.variable": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10integer_jinja/makedict/mandatory.json b/tests/dictionaries/16_5redefine_hidden/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10integer_jinja/makedict/mandatory.json rename to tests/dictionaries/16_5redefine_hidden/makedict/mandatory.json diff --git a/tests/dictionaries/16_5redefine_hidden/tiramisu/base.py b/tests/dictionaries/16_5redefine_hidden/tiramisu/base.py new file mode 100644 index 000000000..1a98c4847 --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="variable", doc="a variable", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_hidden/tiramisu/multi.py b/tests/dictionaries/16_5redefine_hidden/tiramisu/multi.py new file mode 100644 index 000000000..ca6430a0c --- /dev/null +++ b/tests/dictionaries/16_5redefine_hidden/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="a variable", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="variable", doc="a variable", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/__init__.py b/tests/dictionaries/16_5redefine_multi/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden_if_in/__init__.py rename to tests/dictionaries/16_5redefine_multi/__init__.py diff --git a/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..04aef3861 --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + description: a variable + default: non diff --git a/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/01-redefine.yml new file mode 100644 index 000000000..40f1ee145 --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/dictionaries/rougail/01-redefine.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +variable: + redefine: true + multi: true + default: + - non diff --git a/tests/dictionaries/16_5redefine_multi/makedict/after.json b/tests/dictionaries/16_5redefine_multi/makedict/after.json new file mode 100644 index 000000000..8915dc63a --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/makedict/after.json @@ -0,0 +1,8 @@ +{ + "rougail.variable": { + "owner": "default", + "value": [ + "non" + ] + } +} diff --git a/tests/dictionaries/16_5redefine_multi/makedict/base.json b/tests/dictionaries/16_5redefine_multi/makedict/base.json new file mode 100644 index 000000000..adf2cb213 --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.variable": [ + "non" + ] +} diff --git a/tests/dictionaries/16_5redefine_multi/makedict/before.json b/tests/dictionaries/16_5redefine_multi/makedict/before.json new file mode 100644 index 000000000..8915dc63a --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/makedict/before.json @@ -0,0 +1,8 @@ +{ + "rougail.variable": { + "owner": "default", + "value": [ + "non" + ] + } +} diff --git a/tests/dictionaries/10leadership_append/makedict/mandatory.json b/tests/dictionaries/16_5redefine_multi/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_append/makedict/mandatory.json rename to tests/dictionaries/16_5redefine_multi/makedict/mandatory.json diff --git a/tests/dictionaries/16_5redefine_multi/tiramisu/base.py b/tests/dictionaries/16_5redefine_multi/tiramisu/base.py new file mode 100644 index 000000000..a3557ba0b --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="variable", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_multi/tiramisu/multi.py b/tests/dictionaries/16_5redefine_multi/tiramisu/multi.py new file mode 100644 index 000000000..b2f22c6cf --- /dev/null +++ b/tests/dictionaries/16_5redefine_multi/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="variable", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = StrOption(name="variable", doc="a variable", multi=True, default=["non"], default_multi="non", properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/__init__.py b/tests/dictionaries/16_5redefine_remove_disable_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden_if_in_name/__init__.py rename to tests/dictionaries/16_5redefine_remove_disable_calculation/__init__.py diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..327667608 --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +condition: "no" # a condition +variable: + description: a variable + disabled: + type: jinja + jinja: | + {% if _.condition == "yes" %} + true + {% else %} + false + {% endif %} diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..2fe830469 --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +variable: + redefine: true + disabled: false diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/after.json b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/after.json new file mode 100644 index 000000000..91c171031 --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/base.json b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/base.json new file mode 100644 index 000000000..e61f106cd --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.variable": null +} diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/before.json b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/before.json new file mode 100644 index 000000000..91c171031 --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/mandatory.json b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/mandatory.json new file mode 100644 index 000000000..bdc34fddd --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.variable"] \ No newline at end of file diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/base.py b/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/base.py new file mode 100644 index 000000000..a0d77d1be --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/multi.py b/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/multi.py new file mode 100644 index 000000000..77f0ae0eb --- /dev/null +++ b/tests/dictionaries/16_5redefine_remove_disable_calculation/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_7 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10leadership_leadermandatory/__init__.py b/tests/dictionaries/16_5test_redefine/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_leadermandatory/__init__.py rename to tests/dictionaries/16_5test_redefine/__init__.py diff --git a/tests/dictionaries/16_5test_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_5test_redefine/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..aae55576b --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +var1: "no" # a first variable +var2: + description: a second variable + test: + - test + default: non +var3: + description: a third variable + test: + - test diff --git a/tests/dictionaries/16_5test_redefine/dictionaries/rougail/10-base.yml b/tests/dictionaries/16_5test_redefine/dictionaries/rougail/10-base.yml new file mode 100644 index 000000000..02b7e7ae9 --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/dictionaries/rougail/10-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +var1: + redefine: true + test: + - test1 +var2: + redefine: true + test: + - test1 +var3: + redefine: true + test: null diff --git a/tests/dictionaries/16_5test_redefine/makedict/after.json b/tests/dictionaries/16_5test_redefine/makedict/after.json new file mode 100644 index 000000000..42cab467a --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "non" + }, + "rougail.var3": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5test_redefine/makedict/base.json b/tests/dictionaries/16_5test_redefine/makedict/base.json new file mode 100644 index 000000000..2f1c1f3b0 --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "no", + "rougail.var2": "non", + "rougail.var3": null +} diff --git a/tests/dictionaries/16_5test_redefine/makedict/before.json b/tests/dictionaries/16_5test_redefine/makedict/before.json new file mode 100644 index 000000000..42cab467a --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "non" + }, + "rougail.var3": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16_5test_redefine/makedict/mandatory.json b/tests/dictionaries/16_5test_redefine/makedict/mandatory.json new file mode 100644 index 000000000..bdcead6d4 --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var3"] \ No newline at end of file diff --git a/tests/dictionaries/16_5test_redefine/tiramisu/base.py b/tests/dictionaries/16_5test_redefine/tiramisu/base.py new file mode 100644 index 000000000..cd2ff5bc9 --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_3 = StrOption(name="var2", doc="a second variable", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_4 = StrOption(name="var3", doc="a third variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_5test_redefine/tiramisu/multi.py b/tests/dictionaries/16_5test_redefine/tiramisu/multi.py new file mode 100644 index 000000000..ad9a9fa4e --- /dev/null +++ b/tests/dictionaries/16_5test_redefine/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_4 = StrOption(name="var2", doc="a second variable", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_5 = StrOption(name="var3", doc="a third variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_9 = StrOption(name="var2", doc="a second variable", default="non", properties=frozenset({"mandatory", "standard"}), informations={'test': ('test1',)}) +option_10 = StrOption(name="var3", doc="a third variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower/__init__.py b/tests/dictionaries/16_6choice_redefine/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_mandatoryfollower/__init__.py rename to tests/dictionaries/16_6choice_redefine/__init__.py diff --git a/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0dd00d88a --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.0' +var: + type: choice + description: A choice + default: c + choices: + - a + - b + - c diff --git a/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..1f9696c33 --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/dictionaries/rougail/01-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.0' +var: + redefine: true + choices: + - a + - c diff --git a/tests/dictionaries/16_6choice_redefine/makedict/after.json b/tests/dictionaries/16_6choice_redefine/makedict/after.json new file mode 100644 index 000000000..c920aef93 --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "c" + } +} diff --git a/tests/dictionaries/16_6choice_redefine/makedict/base.json b/tests/dictionaries/16_6choice_redefine/makedict/base.json new file mode 100644 index 000000000..bcd0f0d54 --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": "c" +} diff --git a/tests/dictionaries/16_6choice_redefine/makedict/before.json b/tests/dictionaries/16_6choice_redefine/makedict/before.json new file mode 100644 index 000000000..c920aef93 --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": "c" + } +} diff --git a/tests/dictionaries/10leadership_append_hidden/makedict/mandatory.json b/tests/dictionaries/16_6choice_redefine/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_append_hidden/makedict/mandatory.json rename to tests/dictionaries/16_6choice_redefine/makedict/mandatory.json diff --git a/tests/dictionaries/16_6choice_redefine/tiramisu/base.py b/tests/dictionaries/16_6choice_redefine/tiramisu/base.py new file mode 100644 index 000000000..147095ede --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = ChoiceOption(name="var", doc="A choice", values=("a", "c"), default="c", properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16_6choice_redefine/tiramisu/multi.py b/tests/dictionaries/16_6choice_redefine/tiramisu/multi.py new file mode 100644 index 000000000..004d33bbe --- /dev/null +++ b/tests/dictionaries/16_6choice_redefine/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = ChoiceOption(name="var", doc="A choice", values=("a", "c"), default="c", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_6 = ChoiceOption(name="var", doc="A choice", values=("a", "c"), default="c", properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/__init__.py b/tests/dictionaries/16exists_exists/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_mandatoryfollower_value/__init__.py rename to tests/dictionaries/16exists_exists/__init__.py diff --git a/tests/dictionaries/16exists_exists/dictionaries/rougail/00-base.yml b/tests/dictionaries/16exists_exists/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..a322d536f --- /dev/null +++ b/tests/dictionaries/16exists_exists/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +var: + description: Description diff --git a/tests/dictionaries/16exists_exists/dictionaries/rougail/01-base.yml b/tests/dictionaries/16exists_exists/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..cc3d1200b --- /dev/null +++ b/tests/dictionaries/16exists_exists/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +var: + description: New description + exists: false diff --git a/tests/dictionaries/16exists_exists/makedict/after.json b/tests/dictionaries/16exists_exists/makedict/after.json new file mode 100644 index 000000000..98c89cfa5 --- /dev/null +++ b/tests/dictionaries/16exists_exists/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16exists_exists/makedict/base.json b/tests/dictionaries/16exists_exists/makedict/base.json new file mode 100644 index 000000000..bae2c8fbf --- /dev/null +++ b/tests/dictionaries/16exists_exists/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.var": null +} diff --git a/tests/dictionaries/16exists_exists/makedict/before.json b/tests/dictionaries/16exists_exists/makedict/before.json new file mode 100644 index 000000000..98c89cfa5 --- /dev/null +++ b/tests/dictionaries/16exists_exists/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/16exists_exists/makedict/mandatory.json b/tests/dictionaries/16exists_exists/makedict/mandatory.json new file mode 100644 index 000000000..f030b0c48 --- /dev/null +++ b/tests/dictionaries/16exists_exists/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var"] \ No newline at end of file diff --git a/tests/dictionaries/16exists_exists/tiramisu/base.py b/tests/dictionaries/16exists_exists/tiramisu/base.py new file mode 100644 index 000000000..46e7ca973 --- /dev/null +++ b/tests/dictionaries/16exists_exists/tiramisu/base.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="Description", properties=frozenset({"basic", "mandatory"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/16exists_exists/tiramisu/multi.py b/tests/dictionaries/16exists_exists/tiramisu/multi.py new file mode 100644 index 000000000..afcefc63d --- /dev/null +++ b/tests/dictionaries/16exists_exists/tiramisu/multi.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="Description", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_6 = StrOption(name="var", doc="Description", properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10leadership_multi/__init__.py b/tests/dictionaries/17_5redefine_leadership/__init__.py similarity index 100% rename from tests/dictionaries/10leadership_multi/__init__.py rename to tests/dictionaries/17_5redefine_leadership/__init__.py diff --git a/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..09503b4de --- /dev/null +++ b/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +leader: # a leadership + type: leadership + leader: [] # a leader + follower: # a follower diff --git a/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/01-base.yml b/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..c7f1ea9db --- /dev/null +++ b/tests/dictionaries/17_5redefine_leadership/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +leader: + redefine: true + hidden: true diff --git a/tests/dictionaries/51redefine_leadership/makedict/after.json b/tests/dictionaries/17_5redefine_leadership/makedict/after.json similarity index 100% rename from tests/dictionaries/51redefine_leadership/makedict/after.json rename to tests/dictionaries/17_5redefine_leadership/makedict/after.json diff --git a/tests/dictionaries/51redefine_leadership/makedict/base.json b/tests/dictionaries/17_5redefine_leadership/makedict/base.json similarity index 100% rename from tests/dictionaries/51redefine_leadership/makedict/base.json rename to tests/dictionaries/17_5redefine_leadership/makedict/base.json diff --git a/tests/dictionaries/51redefine_leadership/makedict/before.json b/tests/dictionaries/17_5redefine_leadership/makedict/before.json similarity index 100% rename from tests/dictionaries/51redefine_leadership/makedict/before.json rename to tests/dictionaries/17_5redefine_leadership/makedict/before.json diff --git a/tests/dictionaries/51redefine_leadership/makedict/mandatory.json b/tests/dictionaries/17_5redefine_leadership/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/51redefine_leadership/makedict/mandatory.json rename to tests/dictionaries/17_5redefine_leadership/makedict/mandatory.json diff --git a/tests/dictionaries/17_5redefine_leadership/tiramisu/base.py b/tests/dictionaries/17_5redefine_leadership/tiramisu/base.py new file mode 100644 index 000000000..23e56160c --- /dev/null +++ b/tests/dictionaries/17_5redefine_leadership/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_4 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="leader", children=[option_3, option_4], properties=frozenset({"basic", "hidden"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/17_5redefine_leadership/tiramisu/multi.py b/tests/dictionaries/17_5redefine_leadership/tiramisu/multi.py new file mode 100644 index 000000000..3462ff873 --- /dev/null +++ b/tests/dictionaries/17_5redefine_leadership/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5], properties=frozenset({"basic", "hidden"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_10 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_8 = Leadership(name="leader", doc="leader", children=[option_9, option_10], properties=frozenset({"basic", "hidden"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/00empty_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0empty_family/dictionaries/rougail/00-base.yml similarity index 100% rename from tests/dictionaries/00empty_family/dictionaries/rougail/00-base.yml rename to tests/dictionaries/20_0empty_family/dictionaries/rougail/00-base.yml diff --git a/tests/dictionaries/00empty_subfamily/makedict/after.json b/tests/dictionaries/20_0empty_family/makedict/after.json similarity index 100% rename from tests/dictionaries/00empty_subfamily/makedict/after.json rename to tests/dictionaries/20_0empty_family/makedict/after.json diff --git a/tests/dictionaries/00empty_subfamily/makedict/base.json b/tests/dictionaries/20_0empty_family/makedict/base.json similarity index 100% rename from tests/dictionaries/00empty_subfamily/makedict/base.json rename to tests/dictionaries/20_0empty_family/makedict/base.json diff --git a/tests/dictionaries/00empty_subfamily/makedict/before.json b/tests/dictionaries/20_0empty_family/makedict/before.json similarity index 100% rename from tests/dictionaries/00empty_subfamily/makedict/before.json rename to tests/dictionaries/20_0empty_family/makedict/before.json diff --git a/tests/dictionaries/10leadership_append_name/makedict/mandatory.json b/tests/dictionaries/20_0empty_family/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_append_name/makedict/mandatory.json rename to tests/dictionaries/20_0empty_family/makedict/mandatory.json diff --git a/tests/dictionaries/00empty_family/tiramisu/base.py b/tests/dictionaries/20_0empty_family/tiramisu/base.py similarity index 100% rename from tests/dictionaries/00empty_family/tiramisu/base.py rename to tests/dictionaries/20_0empty_family/tiramisu/base.py diff --git a/tests/dictionaries/00empty_family/tiramisu/multi.py b/tests/dictionaries/20_0empty_family/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/00empty_family/tiramisu/multi.py rename to tests/dictionaries/20_0empty_family/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in/__init__.py b/tests/dictionaries/20_0family_append/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in/__init__.py rename to tests/dictionaries/20_0family_append/__init__.py diff --git a/tests/dictionaries/20_0family_append/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0family_append/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f6ec14b66 --- /dev/null +++ b/tests/dictionaries/20_0family_append/dictionaries/rougail/00-base.yml @@ -0,0 +1,6 @@ +--- +version: '1.1' +family: + description: A family + var1: + description: The first variable diff --git a/tests/dictionaries/20_0family_append/dictionaries/rougail/01-base.yml b/tests/dictionaries/20_0family_append/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..de4d51fee --- /dev/null +++ b/tests/dictionaries/20_0family_append/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +family: + var2: + description: The second variable diff --git a/tests/dictionaries/20_0family_append/makedict/after.json b/tests/dictionaries/20_0family_append/makedict/after.json new file mode 100644 index 000000000..be2f42e3a --- /dev/null +++ b/tests/dictionaries/20_0family_append/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.family.var1": { + "owner": "default", + "value": null + }, + "rougail.family.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/20_0family_append/makedict/base.json b/tests/dictionaries/20_0family_append/makedict/base.json new file mode 100644 index 000000000..9453c7a9b --- /dev/null +++ b/tests/dictionaries/20_0family_append/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.family.var1": null, + "rougail.family.var2": null +} diff --git a/tests/dictionaries/20_0family_append/makedict/before.json b/tests/dictionaries/20_0family_append/makedict/before.json new file mode 100644 index 000000000..be2f42e3a --- /dev/null +++ b/tests/dictionaries/20_0family_append/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.family.var1": { + "owner": "default", + "value": null + }, + "rougail.family.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/20_0family_append/makedict/mandatory.json b/tests/dictionaries/20_0family_append/makedict/mandatory.json new file mode 100644 index 000000000..4a17f6337 --- /dev/null +++ b/tests/dictionaries/20_0family_append/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.var1", "rougail.family.var2"] \ No newline at end of file diff --git a/tests/dictionaries/20_0family_append/tiramisu/base.py b/tests/dictionaries/20_0family_append/tiramisu/base.py new file mode 100644 index 000000000..45fe627d0 --- /dev/null +++ b/tests/dictionaries/20_0family_append/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="The first variable", properties=frozenset({"basic", "mandatory"})) +option_4 = StrOption(name="var2", doc="The second variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="family", doc="A family", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20_0family_append/tiramisu/multi.py b/tests/dictionaries/20_0family_append/tiramisu/multi.py new file mode 100644 index 000000000..fe83971e8 --- /dev/null +++ b/tests/dictionaries/20_0family_append/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var1", doc="The first variable", properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="var2", doc="The second variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = OptionDescription(name="family", doc="A family", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="var1", doc="The first variable", properties=frozenset({"basic", "mandatory"})) +option_10 = StrOption(name="var2", doc="The second variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_8 = OptionDescription(name="family", doc="A family", children=[option_9, option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/20_0family_underscore/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0family_underscore/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..bec89c205 --- /dev/null +++ b/tests/dictionaries/20_0family_underscore/dictionaries/rougail/00-base.yml @@ -0,0 +1,33 @@ +--- +version: '1.1' +my_family: + _type: family + _description: This is a great family + _help: This is a great family + _mode: basic + _hidden: true + _disabled: true + type: + description: a type family + type: family + my_variable: + description: + description: This is a other great family + my_variable: + help: + description: a help family + help: This is a other great family + my_variable: + mode: + description: a mode family + mode: advanced + my_variable: + mandatory: false + hidden: + description: an hidden family + hidden: true + my_variable: + disabled: + description: an disabled family + disabled: true + my_variable: diff --git a/tests/dictionaries/10leadership_empty/makedict/after.json b/tests/dictionaries/20_0family_underscore/makedict/after.json similarity index 100% rename from tests/dictionaries/10leadership_empty/makedict/after.json rename to tests/dictionaries/20_0family_underscore/makedict/after.json diff --git a/tests/dictionaries/10leadership_empty/makedict/base.json b/tests/dictionaries/20_0family_underscore/makedict/base.json similarity index 100% rename from tests/dictionaries/10leadership_empty/makedict/base.json rename to tests/dictionaries/20_0family_underscore/makedict/base.json diff --git a/tests/dictionaries/10leadership_empty/makedict/before.json b/tests/dictionaries/20_0family_underscore/makedict/before.json similarity index 100% rename from tests/dictionaries/10leadership_empty/makedict/before.json rename to tests/dictionaries/20_0family_underscore/makedict/before.json diff --git a/tests/dictionaries/10leadership_auto/makedict/mandatory.json b/tests/dictionaries/20_0family_underscore/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_auto/makedict/mandatory.json rename to tests/dictionaries/20_0family_underscore/makedict/mandatory.json diff --git a/tests/dictionaries/40family_underscode/tiramisu/base.py b/tests/dictionaries/20_0family_underscore/tiramisu/base.py similarity index 100% rename from tests/dictionaries/40family_underscode/tiramisu/base.py rename to tests/dictionaries/20_0family_underscore/tiramisu/base.py diff --git a/tests/dictionaries/40family_underscode/tiramisu/multi.py b/tests/dictionaries/20_0family_underscore/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/40family_underscode/tiramisu/multi.py rename to tests/dictionaries/20_0family_underscore/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_fill/__init__.py b/tests/dictionaries/20_0multi_family/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_fill/__init__.py rename to tests/dictionaries/20_0multi_family/__init__.py diff --git a/tests/dictionaries/20_0multi_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0multi_family/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c404d6ed4 --- /dev/null +++ b/tests/dictionaries/20_0multi_family/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +family: # a family + subfamily: # a sub family + variable: + description: a variable + mandatory: false diff --git a/tests/dictionaries/45multi_family/makedict/after.json b/tests/dictionaries/20_0multi_family/makedict/after.json similarity index 100% rename from tests/dictionaries/45multi_family/makedict/after.json rename to tests/dictionaries/20_0multi_family/makedict/after.json diff --git a/tests/dictionaries/45multi_family/makedict/base.json b/tests/dictionaries/20_0multi_family/makedict/base.json similarity index 100% rename from tests/dictionaries/45multi_family/makedict/base.json rename to tests/dictionaries/20_0multi_family/makedict/base.json diff --git a/tests/dictionaries/45multi_family/makedict/before.json b/tests/dictionaries/20_0multi_family/makedict/before.json similarity index 100% rename from tests/dictionaries/45multi_family/makedict/before.json rename to tests/dictionaries/20_0multi_family/makedict/before.json diff --git a/tests/dictionaries/10leadership_auto_index/makedict/mandatory.json b/tests/dictionaries/20_0multi_family/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index/makedict/mandatory.json rename to tests/dictionaries/20_0multi_family/makedict/mandatory.json diff --git a/tests/dictionaries/45multi_family/tiramisu/base.py b/tests/dictionaries/20_0multi_family/tiramisu/base.py similarity index 100% rename from tests/dictionaries/45multi_family/tiramisu/base.py rename to tests/dictionaries/20_0multi_family/tiramisu/base.py diff --git a/tests/dictionaries/45multi_family/tiramisu/multi.py b/tests/dictionaries/20_0multi_family/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/45multi_family/tiramisu/multi.py rename to tests/dictionaries/20_0multi_family/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/__init__.py b/tests/dictionaries/20_0multi_family_basic/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_list_optional/__init__.py rename to tests/dictionaries/20_0multi_family_basic/__init__.py diff --git a/tests/dictionaries/20_0multi_family_basic/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0multi_family_basic/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..2f1ea87d7 --- /dev/null +++ b/tests/dictionaries/20_0multi_family_basic/dictionaries/rougail/00-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +family: # a family + subfamily: # a sub family + variable: # a variable diff --git a/tests/dictionaries/45multi_family_basic/makedict/after.json b/tests/dictionaries/20_0multi_family_basic/makedict/after.json similarity index 100% rename from tests/dictionaries/45multi_family_basic/makedict/after.json rename to tests/dictionaries/20_0multi_family_basic/makedict/after.json diff --git a/tests/dictionaries/45multi_family_basic/makedict/base.json b/tests/dictionaries/20_0multi_family_basic/makedict/base.json similarity index 100% rename from tests/dictionaries/45multi_family_basic/makedict/base.json rename to tests/dictionaries/20_0multi_family_basic/makedict/base.json diff --git a/tests/dictionaries/45multi_family_basic/makedict/before.json b/tests/dictionaries/20_0multi_family_basic/makedict/before.json similarity index 100% rename from tests/dictionaries/45multi_family_basic/makedict/before.json rename to tests/dictionaries/20_0multi_family_basic/makedict/before.json diff --git a/tests/dictionaries/10leadership_auto_index_param/makedict/mandatory.json b/tests/dictionaries/20_0multi_family_basic/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index_param/makedict/mandatory.json rename to tests/dictionaries/20_0multi_family_basic/makedict/mandatory.json diff --git a/tests/dictionaries/45multi_family_basic/tiramisu/base.py b/tests/dictionaries/20_0multi_family_basic/tiramisu/base.py similarity index 100% rename from tests/dictionaries/45multi_family_basic/tiramisu/base.py rename to tests/dictionaries/20_0multi_family_basic/tiramisu/base.py diff --git a/tests/dictionaries/45multi_family_basic/tiramisu/multi.py b/tests/dictionaries/20_0multi_family_basic/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/45multi_family_basic/tiramisu/multi.py rename to tests/dictionaries/20_0multi_family_basic/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/__init__.py b/tests/dictionaries/20_0multi_family_expert/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param/__init__.py rename to tests/dictionaries/20_0multi_family_expert/__init__.py diff --git a/tests/dictionaries/20_0multi_family_expert/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0multi_family_expert/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7f1771871 --- /dev/null +++ b/tests/dictionaries/20_0multi_family_expert/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: '1.1' +family: + description: a family + mode: advanced + subfamily: # a sub family + variable: + description: a variable + mandatory: false diff --git a/tests/dictionaries/45multi_family_expert/makedict/after.json b/tests/dictionaries/20_0multi_family_expert/makedict/after.json similarity index 100% rename from tests/dictionaries/45multi_family_expert/makedict/after.json rename to tests/dictionaries/20_0multi_family_expert/makedict/after.json diff --git a/tests/dictionaries/45multi_family_expert/makedict/base.json b/tests/dictionaries/20_0multi_family_expert/makedict/base.json similarity index 100% rename from tests/dictionaries/45multi_family_expert/makedict/base.json rename to tests/dictionaries/20_0multi_family_expert/makedict/base.json diff --git a/tests/dictionaries/45multi_family_expert/makedict/before.json b/tests/dictionaries/20_0multi_family_expert/makedict/before.json similarity index 100% rename from tests/dictionaries/45multi_family_expert/makedict/before.json rename to tests/dictionaries/20_0multi_family_expert/makedict/before.json diff --git a/tests/dictionaries/10leadership_autoleader/makedict/mandatory.json b/tests/dictionaries/20_0multi_family_expert/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_autoleader/makedict/mandatory.json rename to tests/dictionaries/20_0multi_family_expert/makedict/mandatory.json diff --git a/tests/dictionaries/45multi_family_expert/tiramisu/base.py b/tests/dictionaries/20_0multi_family_expert/tiramisu/base.py similarity index 100% rename from tests/dictionaries/45multi_family_expert/tiramisu/base.py rename to tests/dictionaries/20_0multi_family_expert/tiramisu/base.py diff --git a/tests/dictionaries/45multi_family_expert/tiramisu/multi.py b/tests/dictionaries/20_0multi_family_expert/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/45multi_family_expert/tiramisu/multi.py rename to tests/dictionaries/20_0multi_family_expert/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/__init__.py b/tests/dictionaries/20_0multi_family_order/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param2/__init__.py rename to tests/dictionaries/20_0multi_family_order/__init__.py diff --git a/tests/dictionaries/20_0multi_family_order/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0multi_family_order/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e56dd3b17 --- /dev/null +++ b/tests/dictionaries/20_0multi_family_order/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +variable: # a variable +family: # a family + variable1: # a first variable + subfamily: # a sub family + variable: # a variable + variable2: # a second variable diff --git a/tests/dictionaries/45multi_family_order/makedict/after.json b/tests/dictionaries/20_0multi_family_order/makedict/after.json similarity index 100% rename from tests/dictionaries/45multi_family_order/makedict/after.json rename to tests/dictionaries/20_0multi_family_order/makedict/after.json diff --git a/tests/dictionaries/45multi_family_order/makedict/base.json b/tests/dictionaries/20_0multi_family_order/makedict/base.json similarity index 100% rename from tests/dictionaries/45multi_family_order/makedict/base.json rename to tests/dictionaries/20_0multi_family_order/makedict/base.json diff --git a/tests/dictionaries/45multi_family_order/makedict/before.json b/tests/dictionaries/20_0multi_family_order/makedict/before.json similarity index 100% rename from tests/dictionaries/45multi_family_order/makedict/before.json rename to tests/dictionaries/20_0multi_family_order/makedict/before.json diff --git a/tests/dictionaries/10leadership_autoleader_expert/makedict/mandatory.json b/tests/dictionaries/20_0multi_family_order/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_autoleader_expert/makedict/mandatory.json rename to tests/dictionaries/20_0multi_family_order/makedict/mandatory.json diff --git a/tests/dictionaries/45multi_family_order/tiramisu/base.py b/tests/dictionaries/20_0multi_family_order/tiramisu/base.py similarity index 100% rename from tests/dictionaries/45multi_family_order/tiramisu/base.py rename to tests/dictionaries/20_0multi_family_order/tiramisu/base.py diff --git a/tests/dictionaries/45multi_family_order/tiramisu/multi.py b/tests/dictionaries/20_0multi_family_order/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/45multi_family_order/tiramisu/multi.py rename to tests/dictionaries/20_0multi_family_order/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/__init__.py b/tests/dictionaries/20_0validators_differ_redefine/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param3/__init__.py rename to tests/dictionaries/20_0validators_differ_redefine/__init__.py diff --git a/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f40779f74 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +var1: "no" # a first variable +var2: "no" # a second variable +var3: + description: a third variable + default: "yes" + validators: + - type: jinja + jinja: | + {% if _.var3 == _.var1 %} + var3 must be different than var1 + {% endif %} + description: var3 must be different than var1 diff --git a/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..124181846 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/dictionaries/rougail/01-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +var3: + redefine: true + validators: + - type: jinja + jinja: | + {% if _.var3 == _.var2 %} + var3 must be different than var2 + {% endif %} + description: var3 must be different than var2 diff --git a/tests/dictionaries/20_0validators_differ_redefine/makedict/after.json b/tests/dictionaries/20_0validators_differ_redefine/makedict/after.json new file mode 100644 index 000000000..7b4ba9b9a --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + }, + "rougail.var3": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/20_0validators_differ_redefine/makedict/base.json b/tests/dictionaries/20_0validators_differ_redefine/makedict/base.json new file mode 100644 index 000000000..ed83b2693 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "no", + "rougail.var2": "no", + "rougail.var3": "yes" +} diff --git a/tests/dictionaries/20_0validators_differ_redefine/makedict/before.json b/tests/dictionaries/20_0validators_differ_redefine/makedict/before.json new file mode 100644 index 000000000..7b4ba9b9a --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "no" + }, + "rougail.var2": { + "owner": "default", + "value": "no" + }, + "rougail.var3": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10leadership_autosaveexpert/makedict/mandatory.json b/tests/dictionaries/20_0validators_differ_redefine/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_autosaveexpert/makedict/mandatory.json rename to tests/dictionaries/20_0validators_differ_redefine/makedict/mandatory.json diff --git a/tests/dictionaries/20_0validators_differ_redefine/tiramisu/base.py b/tests/dictionaries/20_0validators_differ_redefine/tiramisu/base.py new file mode 100644 index 000000000..3bd246639 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_rougail.var3'] = "{% if _.var3 == _.var2 %}\nvar3 must be different than var2\n{% endif %}\n" +option_2 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var3", doc="a third variable", default="yes", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_rougail.var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var2': ParamOption(option_3), '_.var3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20_0validators_differ_redefine/tiramisu/multi.py b/tests/dictionaries/20_0validators_differ_redefine/tiramisu/multi.py new file mode 100644 index 000000000..9e98174c1 --- /dev/null +++ b/tests/dictionaries/20_0validators_differ_redefine/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['validators_1.rougail.var3'] = "{% if _.var3 == _.var2 %}\nvar3 must be different than var2\n{% endif %}\n" +dict_env['validators_2.rougail.var3'] = "{% if _.var3 == _.var2 %}\nvar3 must be different than var2\n{% endif %}\n" +option_3 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var3", doc="a third variable", default="yes", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_1.rougail.var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var2': ParamOption(option_4), '_.var3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var1", doc="a first variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="var3", doc="a third variable", default="yes", validators=[Calculation(func['valid_with_jinja'], Params((), kwargs={'__internal_jinja': ParamValue("validators_2.rougail.var3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.var2': ParamOption(option_9), '_.var3': ParamSelfOption(whole=False)}))], properties=frozenset({"mandatory", "standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/00empty_subfamily/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_1empty_subfamily/dictionaries/rougail/00-base.yml similarity index 100% rename from tests/dictionaries/00empty_subfamily/dictionaries/rougail/00-base.yml rename to tests/dictionaries/20_1empty_subfamily/dictionaries/rougail/00-base.yml diff --git a/tests/dictionaries/10load_param_unknown_relative/makedict/after.json b/tests/dictionaries/20_1empty_subfamily/makedict/after.json similarity index 100% rename from tests/dictionaries/10load_param_unknown_relative/makedict/after.json rename to tests/dictionaries/20_1empty_subfamily/makedict/after.json diff --git a/tests/dictionaries/10load_param_unknown_relative/makedict/base.json b/tests/dictionaries/20_1empty_subfamily/makedict/base.json similarity index 100% rename from tests/dictionaries/10load_param_unknown_relative/makedict/base.json rename to tests/dictionaries/20_1empty_subfamily/makedict/base.json diff --git a/tests/dictionaries/10load_param_unknown_relative/makedict/before.json b/tests/dictionaries/20_1empty_subfamily/makedict/before.json similarity index 100% rename from tests/dictionaries/10load_param_unknown_relative/makedict/before.json rename to tests/dictionaries/20_1empty_subfamily/makedict/before.json diff --git a/tests/dictionaries/10leadership_empty/makedict/mandatory.json b/tests/dictionaries/20_1empty_subfamily/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_empty/makedict/mandatory.json rename to tests/dictionaries/20_1empty_subfamily/makedict/mandatory.json diff --git a/tests/dictionaries/00empty_subfamily/tiramisu/base.py b/tests/dictionaries/20_1empty_subfamily/tiramisu/base.py similarity index 100% rename from tests/dictionaries/00empty_subfamily/tiramisu/base.py rename to tests/dictionaries/20_1empty_subfamily/tiramisu/base.py diff --git a/tests/dictionaries/00empty_subfamily/tiramisu/multi.py b/tests/dictionaries/20_1empty_subfamily/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/00empty_subfamily/tiramisu/multi.py rename to tests/dictionaries/20_1empty_subfamily/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/__init__.py b/tests/dictionaries/20_9default_information_parent/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param4/__init__.py rename to tests/dictionaries/20_9default_information_parent/__init__.py diff --git a/tests/dictionaries/20_9default_information_parent/dictionaries/rougail/00-base.yml b/tests/dictionaries/20_9default_information_parent/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..281718b58 --- /dev/null +++ b/tests/dictionaries/20_9default_information_parent/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: 1.1 +family: + var1: # a first variable + var2: + description: a second variable + default: + type: information + information: test_information + variable: __.family diff --git a/tests/dictionaries/13fill_option_information_parent/informations.json b/tests/dictionaries/20_9default_information_parent/informations.json similarity index 100% rename from tests/dictionaries/13fill_option_information_parent/informations.json rename to tests/dictionaries/20_9default_information_parent/informations.json diff --git a/tests/dictionaries/13fill_option_information_param/makedict/after.json b/tests/dictionaries/20_9default_information_parent/makedict/after.json similarity index 100% rename from tests/dictionaries/13fill_option_information_param/makedict/after.json rename to tests/dictionaries/20_9default_information_parent/makedict/after.json diff --git a/tests/dictionaries/13fill_option_information_param/makedict/base.json b/tests/dictionaries/20_9default_information_parent/makedict/base.json similarity index 100% rename from tests/dictionaries/13fill_option_information_param/makedict/base.json rename to tests/dictionaries/20_9default_information_parent/makedict/base.json diff --git a/tests/dictionaries/13fill_option_information_param/makedict/before.json b/tests/dictionaries/20_9default_information_parent/makedict/before.json similarity index 100% rename from tests/dictionaries/13fill_option_information_param/makedict/before.json rename to tests/dictionaries/20_9default_information_parent/makedict/before.json diff --git a/tests/dictionaries/10leadership_hidden/makedict/mandatory.json b/tests/dictionaries/20_9default_information_parent/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_hidden/makedict/mandatory.json rename to tests/dictionaries/20_9default_information_parent/makedict/mandatory.json diff --git a/tests/dictionaries/13fill_option_information_parent/tiramisu/base.py b/tests/dictionaries/20_9default_information_parent/tiramisu/base.py similarity index 100% rename from tests/dictionaries/13fill_option_information_parent/tiramisu/base.py rename to tests/dictionaries/20_9default_information_parent/tiramisu/base.py diff --git a/tests/dictionaries/13fill_option_information_parent/tiramisu/multi.py b/tests/dictionaries/20_9default_information_parent/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/13fill_option_information_parent/tiramisu/multi.py rename to tests/dictionaries/20_9default_information_parent/tiramisu/multi.py diff --git a/tests/dictionaries/20family_append/__init__.py b/tests/dictionaries/20family_append/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_append/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_append/dictionaries/rougail/00-base.yml deleted file mode 100644 index 765ba2c20..000000000 --- a/tests/dictionaries/20family_append/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/20family_append/dictionaries/rougail/01-base.yml b/tests/dictionaries/20family_append/dictionaries/rougail/01-base.yml deleted file mode 100644 index 6819701d7..000000000 --- a/tests/dictionaries/20family_append/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif1: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/20family_append/makedict/after.json b/tests/dictionaries/20family_append/makedict/after.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/20family_append/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_append/makedict/base.json b/tests/dictionaries/20family_append/makedict/base.json deleted file mode 100644 index 3f1a7b004..000000000 --- a/tests/dictionaries/20family_append/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/20family_append/makedict/before.json b/tests/dictionaries/20family_append/makedict/before.json deleted file mode 100644 index 6ebfbbe96..000000000 --- a/tests/dictionaries/20family_append/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_append/makedict/mandatory.json b/tests/dictionaries/20family_append/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_append/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_append/tiramisu/base.py b/tests/dictionaries/20family_append/tiramisu/base.py deleted file mode 100644 index dfb2cc097..000000000 --- a/tests/dictionaries/20family_append/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_append/tiramisu/multi.py b/tests/dictionaries/20family_append/tiramisu/multi.py deleted file mode 100644 index a2497c933..000000000 --- a/tests/dictionaries/20family_append/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/20family_disabled/__init__.py b/tests/dictionaries/20family_disabled/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_disabled/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_disabled/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9f14cb0e5..000000000 --- a/tests/dictionaries/20family_disabled/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - description: No change - disabled: true - default: non diff --git a/tests/dictionaries/20family_disabled/dictionaries/rougail/01-base.yml b/tests/dictionaries/20family_disabled/dictionaries/rougail/01-base.yml deleted file mode 100644 index 92109fef0..000000000 --- a/tests/dictionaries/20family_disabled/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,4 +0,0 @@ -version: '1.0' -general: - redefine: true - disabled: true diff --git a/tests/dictionaries/20family_disabled/makedict/mandatory.json b/tests/dictionaries/20family_disabled/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_disabled/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_disabled/tiramisu/base.py b/tests/dictionaries/20family_disabled/tiramisu/base.py deleted file mode 100644 index 1c1a6a357..000000000 --- a/tests/dictionaries/20family_disabled/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"disabled", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_disabled/tiramisu/multi.py b/tests/dictionaries/20family_disabled/tiramisu/multi.py deleted file mode 100644 index b295753f9..000000000 --- a/tests/dictionaries/20family_disabled/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"disabled", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"disabled", "standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/20family_dynamic/__init__.py b/tests/dictionaries/20family_dynamic/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2bbfc9664..000000000 --- a/tests/dictionaries/20family_dynamic/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - vardyn: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/20family_dynamic/makedict/after.json b/tests/dictionaries/20family_dynamic/makedict/after.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic/makedict/base.json b/tests/dictionaries/20family_dynamic/makedict/base.json deleted file mode 100644 index 4db75edda..000000000 --- a/tests/dictionaries/20family_dynamic/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null -} diff --git a/tests/dictionaries/20family_dynamic/makedict/before.json b/tests/dictionaries/20family_dynamic/makedict/before.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic/makedict/mandatory.json b/tests/dictionaries/20family_dynamic/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic/tiramisu/base.py b/tests/dictionaries/20family_dynamic/tiramisu/base.py deleted file mode 100644 index 7bd82377f..000000000 --- a/tests/dictionaries/20family_dynamic/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic/tiramisu/multi.py b/tests/dictionaries/20family_dynamic/tiramisu/multi.py deleted file mode 100644 index 365de33cd..000000000 --- a/tests/dictionaries/20family_dynamic/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4)))), children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10)))), children=[option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_1.1/__init__.py b/tests/dictionaries/20family_dynamic_1.1/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_1.1/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_1.1/dictionaries/rougail/00-base.yml deleted file mode 100644 index dc718dd89..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -dyn: - type: dynamic - variable: rougail.general.varname - vardyn: - type: string - description: No change - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/20family_dynamic_1.1/makedict/after.json b/tests/dictionaries/20family_dynamic_1.1/makedict/after.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_1.1/makedict/base.json b/tests/dictionaries/20family_dynamic_1.1/makedict/base.json deleted file mode 100644 index 4db75edda..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null -} diff --git a/tests/dictionaries/20family_dynamic_1.1/makedict/before.json b/tests/dictionaries/20family_dynamic_1.1/makedict/before.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_1.1/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_1.1/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_1.1/tiramisu/base.py b/tests/dictionaries/20family_dynamic_1.1/tiramisu/base.py deleted file mode 100644 index 258553a17..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_1.1/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_1.1/tiramisu/multi.py deleted file mode 100644 index 94faca927..000000000 --- a/tests/dictionaries/20family_dynamic_1.1/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_1_0/__init__.py b/tests/dictionaries/20family_dynamic_1_0/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_1_0/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_1_0/dictionaries/rougail/00-base.yml deleted file mode 100644 index 372990978..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -version: '1.0' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -dyn: - type: dynamic - variable: rougail.general.varname - vardyn: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_1_0/makedict/after.json b/tests/dictionaries/20family_dynamic_1_0/makedict/after.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_1_0/makedict/base.json b/tests/dictionaries/20family_dynamic_1_0/makedict/base.json deleted file mode 100644 index 4db75edda..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null -} diff --git a/tests/dictionaries/20family_dynamic_1_0/makedict/before.json b/tests/dictionaries/20family_dynamic_1_0/makedict/before.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_1_0/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_1_0/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_1_0/tiramisu/base.py b/tests/dictionaries/20family_dynamic_1_0/tiramisu/base.py deleted file mode 100644 index 258553a17..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_1_0/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_1_0/tiramisu/multi.py deleted file mode 100644 index 94faca927..000000000 --- a/tests/dictionaries/20family_dynamic_1_0/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_both/__init__.py b/tests/dictionaries/20family_dynamic_both/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_both/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_both/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2a32afd15..000000000 --- a/tests/dictionaries/20family_dynamic_both/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: '1.1' -varname: - default: val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - - val1 - - type: variable - variable: rougail.varname - vardyn: diff --git a/tests/dictionaries/20family_dynamic_both/makedict/after.json b/tests/dictionaries/20family_dynamic_both/makedict/after.json deleted file mode 100644 index 60f6d227e..000000000 --- a/tests/dictionaries/20family_dynamic_both/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": "val2" - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_both/makedict/base.json b/tests/dictionaries/20family_dynamic_both/makedict/base.json deleted file mode 100644 index 81d915d7e..000000000 --- a/tests/dictionaries/20family_dynamic_both/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null, - "rougail.varname": "val2" -} diff --git a/tests/dictionaries/20family_dynamic_both/makedict/before.json b/tests/dictionaries/20family_dynamic_both/makedict/before.json deleted file mode 100644 index 60f6d227e..000000000 --- a/tests/dictionaries/20family_dynamic_both/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": "val2" - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_both/tiramisu/base.py b/tests/dictionaries/20family_dynamic_both/tiramisu/base.py deleted file mode 100644 index d684fa646..000000000 --- a/tests/dictionaries/20family_dynamic_both/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="varname", doc="varname", default="val2", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_2))))], children=[option_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_both/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_both/tiramisu/multi.py deleted file mode 100644 index 79805687e..000000000 --- a/tests/dictionaries/20family_dynamic_both/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="varname", default="val2", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_3))))], children=[option_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = StrOption(name="varname", doc="varname", default="val2", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_8))))], children=[option_10], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/20family_dynamic_calc/__init__.py b/tests/dictionaries/20family_dynamic_calc/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_calc/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_calc/dictionaries/rougail/00-base.yml deleted file mode 100644 index f7f275b31..000000000 --- a/tests/dictionaries/20family_dynamic_calc/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - default: val -new: - newvar: - type: string - description: No change - default: - type: jinja - params: - vardyn: - type: variable - variable: rougail.dynval1.vardyn - jinja: | - {{ vardyn | calc_val }} diff --git a/tests/dictionaries/20family_dynamic_calc/makedict/after.json b/tests/dictionaries/20family_dynamic_calc/makedict/after.json deleted file mode 100644 index 8d71a94d5..000000000 --- a/tests/dictionaries/20family_dynamic_calc/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_calc/makedict/base.json b/tests/dictionaries/20family_dynamic_calc/makedict/base.json deleted file mode 100644 index a19e57277..000000000 --- a/tests/dictionaries/20family_dynamic_calc/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": "val", - "rougail.dynval2.vardyn": "val", - "rougail.new.newvar": "val" -} diff --git a/tests/dictionaries/20family_dynamic_calc/makedict/before.json b/tests/dictionaries/20family_dynamic_calc/makedict/before.json deleted file mode 100644 index 8d71a94d5..000000000 --- a/tests/dictionaries/20family_dynamic_calc/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_calc/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_calc/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_calc/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_calc/tiramisu/base.py b/tests/dictionaries/20family_dynamic_calc/tiramisu/base.py deleted file mode 100644 index b0f8319a5..000000000 --- a/tests/dictionaries/20family_dynamic_calc/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ vardyn | calc_val }}\n" -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_calc/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_calc/tiramisu/multi.py deleted file mode 100644 index 5ab8eaf11..000000000 --- a/tests/dictionaries/20family_dynamic_calc/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ vardyn | calc_val }}\n" -dict_env['default_2.rougail.new.newvar'] = "{{ vardyn | calc_val }}\n" -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_14, ['val1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_calc2/__init__.py b/tests/dictionaries/20family_dynamic_calc2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_calc2/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_calc2/dictionaries/rougail/00-base.yml deleted file mode 100644 index a33f44cbd..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.1' -general: - varname: - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - default: val - hidden: - type: jinja - jinja: | - {% if rougail.new.newvar == "non" %} - newvar is non - {% endif %} -new: - newvar: - type: string - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_calc2/makedict/after.json b/tests/dictionaries/20family_dynamic_calc2/makedict/after.json deleted file mode 100644 index 312901fd3..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc2/makedict/base.json b/tests/dictionaries/20family_dynamic_calc2/makedict/base.json deleted file mode 100644 index dae657850..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": "val", - "rougail.dynval2.vardyn": "val", - "rougail.new.newvar": null -} diff --git a/tests/dictionaries/20family_dynamic_calc2/makedict/before.json b/tests/dictionaries/20family_dynamic_calc2/makedict/before.json deleted file mode 100644 index 312901fd3..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc2/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_calc2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_calc2/tiramisu/base.py b/tests/dictionaries/20family_dynamic_calc2/tiramisu/base.py deleted file mode 100644 index d42dd19c2..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -dict_env['hidden_rougail.dyn{{ suffix }}'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="newvar", properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_calc2/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_calc2/tiramisu/multi.py deleted file mode 100644 index b76e60564..000000000 --- a/tests/dictionaries/20family_dynamic_calc2/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['frozen_1.rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -dict_env['hidden_1.rougail.dyn{{ suffix }}'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -dict_env['frozen_2.rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -dict_env['hidden_2.rougail.dyn{{ suffix }}'] = "{% if rougail.new.newvar == \"non\" %}\nnewvar is non\n{% endif %}\n" -option_4 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="newvar", properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="newvar", properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_16)}), help_function=func['jinja_to_property_help'])})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.new.newvar': ParamOption(option_16)}), help_function=func['jinja_to_property_help'])})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/__init__.py b/tests/dictionaries/20family_dynamic_calc_suffix/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml deleted file mode 100644 index 83619fa01..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - default: - type: suffix - mandatory: false -new: - newvar: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/after.json b/tests/dictionaries/20family_dynamic_calc_suffix/makedict/after.json deleted file mode 100644 index 7aebd2667..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/base.json b/tests/dictionaries/20family_dynamic_calc_suffix/makedict/base.json deleted file mode 100644 index 5c4d20a0a..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": "val1", - "rougail.dynval2.vardyn": "val2", - "rougail.new.newvar": null -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/before.json b/tests/dictionaries/20family_dynamic_calc_suffix/makedict/before.json deleted file mode 100644 index 7aebd2667..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_calc_suffix/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/base.py b/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/base.py deleted file mode 100644 index 1d45f2834..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/multi.py deleted file mode 100644 index 94c4b6e1c..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="No change", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/__init__.py b/tests/dictionaries/20family_dynamic_calc_suffix_param/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml deleted file mode 100644 index dea01a876..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - default: - type: jinja - jinja: '{{ __suffix | calc_val }}' - params: - __suffix: - type: suffix - mandatory: false -new: - newvar: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/after.json b/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/after.json deleted file mode 100644 index 7aebd2667..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/base.json b/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/base.json deleted file mode 100644 index 5c4d20a0a..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": "val1", - "rougail.dynval2.vardyn": "val2", - "rougail.new.newvar": null -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/before.json b/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/before.json deleted file mode 100644 index 7aebd2667..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/base.py b/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/base.py deleted file mode 100644 index dda37610b..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.dyn{{ suffix }}.vardyn'] = "{{ __suffix | calc_val }}" -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__suffix': ParamSuffix()})), properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/multi.py deleted file mode 100644 index 932e21567..000000000 --- a/tests/dictionaries/20family_dynamic_calc_suffix_param/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.dyn{{ suffix }}.vardyn'] = "{{ __suffix | calc_val }}" -dict_env['default_2.rougail.dyn{{ suffix }}.vardyn'] = "{{ __suffix | calc_val }}" -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__suffix': ParamSuffix()})), properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__suffix': ParamSuffix()})), properties=frozenset({"standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="No change", properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_description/__init__.py b/tests/dictionaries/20family_dynamic_description/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_description/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_description/dictionaries/rougail/00-base.yml deleted file mode 100644 index 89e80a24e..000000000 --- a/tests/dictionaries/20family_dynamic_description/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - description: 'Dyn ' - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_description/makedict/after.json b/tests/dictionaries/20family_dynamic_description/makedict/after.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_description/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_description/makedict/base.json b/tests/dictionaries/20family_dynamic_description/makedict/base.json deleted file mode 100644 index 4db75edda..000000000 --- a/tests/dictionaries/20family_dynamic_description/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null -} diff --git a/tests/dictionaries/20family_dynamic_description/makedict/before.json b/tests/dictionaries/20family_dynamic_description/makedict/before.json deleted file mode 100644 index cfa084ee8..000000000 --- a/tests/dictionaries/20family_dynamic_description/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_description/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_description/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_description/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_description/tiramisu/base.py b/tests/dictionaries/20family_dynamic_description/tiramisu/base.py deleted file mode 100644 index d2a21f95b..000000000 --- a/tests/dictionaries/20family_dynamic_description/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="Dyn ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_description/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_description/tiramisu/multi.py deleted file mode 100644 index a1ef712f1..000000000 --- a/tests/dictionaries/20family_dynamic_description/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="Dyn ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="Dyn ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10, notraisepropertyerror=True)))), children=[option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_inside/__init__.py b/tests/dictionaries/20family_dynamic_inside/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_inside/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_inside/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1af7671da..000000000 --- a/tests/dictionaries/20family_dynamic_inside/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -version: '1.1' -varname: - multi: true - default: - - val1 - - val2 - -"{{ suffix }}_dyn": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - propertyerror: false - allow_none: true - var1: - default: - type: suffix - var2: - default: - type: variable - variable: rougail.{{ suffix }}_dyn.var1 - var3: - default: - type: variable - variable: _.var1 - var4: - default: - type: variable - variable: rougail.val1_dyn.var1 diff --git a/tests/dictionaries/20family_dynamic_inside/makedict/after.json b/tests/dictionaries/20family_dynamic_inside/makedict/after.json deleted file mode 100644 index a50b98a08..000000000 --- a/tests/dictionaries/20family_dynamic_inside/makedict/after.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.var1": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var2": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var3": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var4": { - "owner": "default", - "value": "val1" - }, - "rougail.val2_dyn.var1": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var2": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var3": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var4": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_inside/makedict/base.json b/tests/dictionaries/20family_dynamic_inside/makedict/base.json deleted file mode 100644 index bd9dceec5..000000000 --- a/tests/dictionaries/20family_dynamic_inside/makedict/base.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.varname": [ - "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/20family_dynamic_inside/makedict/before.json b/tests/dictionaries/20family_dynamic_inside/makedict/before.json deleted file mode 100644 index a50b98a08..000000000 --- a/tests/dictionaries/20family_dynamic_inside/makedict/before.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.var1": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var2": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var3": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var4": { - "owner": "default", - "value": "val1" - }, - "rougail.val2_dyn.var1": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var2": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var3": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var4": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_inside/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_inside/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_inside/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_inside/tiramisu/base.py b/tests/dictionaries/20family_dynamic_inside/tiramisu/base.py deleted file mode 100644 index 42e3cd6a5..000000000 --- a/tests/dictionaries/20family_dynamic_inside/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val1'])))), properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_inside/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_inside/tiramisu/multi.py deleted file mode 100644 index 06a979f3a..000000000 --- a/tests/dictionaries/20family_dynamic_inside/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1'])))), properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) -option_15 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val1'])))), properties=frozenset({"mandatory", "standard"})) -optiondescription_12 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_11, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_jinja/__init__.py b/tests/dictionaries/20family_dynamic_jinja/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_jinja/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_jinja/dictionaries/rougail/00-base.yml deleted file mode 100644 index 83f518378..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: jinja - jinja: | - {% for val in rougail.general.varname %} - {{ loop.index }} - {% endfor %} - vardyn: - type: string - description: No change - default: val diff --git a/tests/dictionaries/20family_dynamic_jinja/makedict/after.json b/tests/dictionaries/20family_dynamic_jinja/makedict/after.json deleted file mode 100644 index c7d96c38a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/makedict/after.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dyn1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dyn2.vardyn": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja/makedict/base.json b/tests/dictionaries/20family_dynamic_jinja/makedict/base.json deleted file mode 100644 index 253012453..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dyn1.vardyn": "val", - "rougail.dyn2.vardyn": "val" -} diff --git a/tests/dictionaries/20family_dynamic_jinja/makedict/before.json b/tests/dictionaries/20family_dynamic_jinja/makedict/before.json deleted file mode 100644 index c7d96c38a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/makedict/before.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dyn1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dyn2.vardyn": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_jinja/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_jinja/tiramisu/base.py b/tests/dictionaries/20family_dynamic_jinja/tiramisu/base.py deleted file mode 100644 index 8c0f058fd..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['dynamic_rougail.dyn{{ suffix }}'] = "{% for val in rougail.general.varname %}\n{{ loop.index }}\n{% endfor %}\n" -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general.varname': ParamOption(option_3)})), children=[option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_jinja/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_jinja/tiramisu/multi.py deleted file mode 100644 index e5f037ba3..000000000 --- a/tests/dictionaries/20family_dynamic_jinja/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['dynamic_1.rougail.dyn{{ suffix }}'] = "{% for val in rougail.general.varname %}\n{{ loop.index }}\n{% endfor %}\n" -dict_env['dynamic_2.rougail.dyn{{ suffix }}'] = "{% for val in rougail.general.varname %}\n{{ loop.index }}\n{% endfor %}\n" -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_1.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general.varname': ParamOption(option_4)})), children=[option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_2.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.general.varname': ParamOption(option_10)})), children=[option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/__init__.py b/tests/dictionaries/20family_dynamic_jinja_fill/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_jinja_fill/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1bf7fdf41..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - default: val -new: - newvar: - type: string - mandatory: false - default: - type: jinja - jinja: '{{ rougail.dynval1.vardyn }}' diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/after.json b/tests/dictionaries/20family_dynamic_jinja_fill/makedict/after.json deleted file mode 100644 index 8d71a94d5..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/base.json b/tests/dictionaries/20family_dynamic_jinja_fill/makedict/base.json deleted file mode 100644 index a19e57277..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": "val", - "rougail.dynval2.vardyn": "val", - "rougail.new.newvar": "val" -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/before.json b/tests/dictionaries/20family_dynamic_jinja_fill/makedict/before.json deleted file mode 100644 index 8d71a94d5..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_jinja_fill/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/base.py b/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/base.py deleted file mode 100644 index 0803c9eec..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ rougail.dynval1.vardyn }}" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.vardyn': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/multi.py deleted file mode 100644 index 878f59a2f..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ rougail.dynval1.vardyn }}" -dict_env['default_2.rougail.new.newvar'] = "{{ rougail.dynval1.vardyn }}" -option_4 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.vardyn': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.vardyn': ParamDynOption(option_14, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/__init__.py b/tests/dictionaries/20family_dynamic_jinja_fill2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_jinja_fill2/dictionaries/rougail/00-base.yml deleted file mode 100644 index f9e68d014..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -version: '1.0' -general: - varname: - type: string - multi: true - default: - - val1 - - val2 -"{{ suffix }}_dyn": - type: dynamic - variable: rougail.general.varname - vardyn: - type: string - default: val -new: - newvar: - type: string - mandatory: false - default: - type: jinja - jinja: '{{ rougail.val1_dyn.vardyn }}' diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/after.json b/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/after.json deleted file mode 100644 index 36316dabd..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.val2_dyn.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/base.json b/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/base.json deleted file mode 100644 index 492b99263..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.val1_dyn.vardyn": "val", - "rougail.val2_dyn.vardyn": "val", - "rougail.new.newvar": "val" -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/before.json b/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/before.json deleted file mode 100644 index 36316dabd..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.val2_dyn.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/base.py b/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/base.py deleted file mode 100644 index 9337a7b86..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ rougail.val1_dyn.vardyn }}" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.val1_dyn.vardyn': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/multi.py deleted file mode 100644 index 469bec313..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill2/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ rougail.val1_dyn.vardyn }}" -dict_env['default_2.rougail.new.newvar'] = "{{ rougail.val1_dyn.vardyn }}" -option_4 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.val1_dyn.vardyn': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="vardyn", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.val1_dyn.vardyn': ParamDynOption(option_14, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/__init__.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml deleted file mode 100644 index ccb2b9ca6..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -version: '1.0' -general: - varname: - type: string - multi: true - default: - - val1 - - val2 -dyn: - type: dynamic - variable: rougail.general.varname - grp: - vardyn: -new: - newvar: - type: string - mandatory: false - default: - type: jinja - jinja: '{{ rougail.dynval1.grp.vardyn }}' diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/after.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/after.json deleted file mode 100644 index 14886d47c..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.grp.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.grp.vardyn": { - "owner": "default", - "value": null - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/base.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/base.json deleted file mode 100644 index 1fd04a71c..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.grp.vardyn": null, - "rougail.dynval2.grp.vardyn": null, - "rougail.new.newvar": null -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/before.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/before.json deleted file mode 100644 index 14886d47c..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.grp.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.grp.vardyn": { - "owner": "default", - "value": null - }, - "rougail.new.newvar": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/mandatory.json deleted file mode 100644 index 694f0ed89..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.dynval1.grp.vardyn", "rougail.dynval2.grp.vardyn"] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/base.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/base.py deleted file mode 100644 index b5f8d89c0..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_5 = OptionDescription(name="grp", doc="grp", children=[option_6], properties=frozenset({"basic"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_5], properties=frozenset({"basic"})) -option_8 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/multi.py deleted file mode 100644 index 7f8553848..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -dict_env['default_2.rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -option_4 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_6 = OptionDescription(name="grp", doc="grp", children=[option_7], properties=frozenset({"basic"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_6], properties=frozenset({"basic"})) -option_9 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_7, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="new", doc="new", children=[option_9], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_8], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_13 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_15 = OptionDescription(name="grp", doc="grp", children=[option_16], properties=frozenset({"basic"})) -optiondescription_14 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_13, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_15], properties=frozenset({"basic"})) -option_18 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_16, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="new", doc="new", children=[option_18], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14, optiondescription_17], properties=frozenset({"basic"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/__init__.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml deleted file mode 100644 index b85f7ae97..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -version: '1.0' -general: - varname: - type: string - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - variable: rougail.general.varname - grp: - vardyn: - default: - type: 'suffix' -new: - newvar: - type: string - mandatory: false - default: - type: jinja - jinja: '{{ rougail.dynval1.grp.vardyn }}' diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/after.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/after.json deleted file mode 100644 index 4165607eb..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.grp.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.grp.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/base.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/base.json deleted file mode 100644 index 22eac06d3..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.grp.vardyn": "val1", - "rougail.dynval2.grp.vardyn": "val2", - "rougail.new.newvar": "val1" -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/before.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/before.json deleted file mode 100644 index 4165607eb..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.grp.vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dynval2.grp.vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py deleted file mode 100644 index ee61f193c..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="grp", doc="grp", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_5], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py deleted file mode 100644 index c0ef6da7d..000000000 --- a/tests/dictionaries/20family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -dict_env['default_2.rougail.new.newvar'] = "{{ rougail.dynval1.grp.vardyn }}" -option_4 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_7 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="grp", doc="grp", children=[option_7], properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_6], properties=frozenset({"standard"})) -option_9 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_7, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="new", doc="new", children=[option_9], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_8], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13], properties=frozenset({"standard"})) -option_16 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -optiondescription_15 = OptionDescription(name="grp", doc="grp", children=[option_16], properties=frozenset({"standard"})) -optiondescription_14 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_13, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[optiondescription_15], properties=frozenset({"standard"})) -option_18 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dynval1.grp.vardyn': ParamDynOption(option_16, ['val1'])})), properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="new", doc="new", children=[option_18], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12, optiondescription_14, optiondescription_17], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/20family_dynamic_leadership/__init__.py b/tests/dictionaries/20family_dynamic_leadership/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_leadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index 771b84b6f..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: string - description: No change - multi: true - default: - - val1 - - val2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - mandatory: false - leadership: - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_leadership/makedict/after.json b/tests/dictionaries/20family_dynamic_leadership/makedict/after.json deleted file mode 100644 index c0d2f8f9c..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/makedict/after.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval1.leadership.leader": { - "owner": "default", - "value": [] - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.leadership.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/20family_dynamic_leadership/makedict/base.json b/tests/dictionaries/20family_dynamic_leadership/makedict/base.json deleted file mode 100644 index b6d646a6d..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.varname": [ - "val1", - "val2" - ], - "rougail.dynval1.vardyn": null, - "rougail.dynval1.leadership.leader": [], - "rougail.dynval2.vardyn": null, - "rougail.dynval2.leadership.leader": [] -} diff --git a/tests/dictionaries/20family_dynamic_leadership/makedict/before.json b/tests/dictionaries/20family_dynamic_leadership/makedict/before.json deleted file mode 100644 index c0d2f8f9c..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/makedict/before.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval1.leadership.leader": { - "owner": "default", - "value": [] - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.leadership.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/20family_dynamic_leadership/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_leadership/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_leadership/tiramisu/base.py b/tests/dictionaries/20family_dynamic_leadership/tiramisu/base.py deleted file mode 100644 index 17160800b..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leadership", doc="leadership", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5, optiondescription_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_leadership/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_leadership/tiramisu/multi.py deleted file mode 100644 index a14b7924b..000000000 --- a/tests/dictionaries/20family_dynamic_leadership/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -option_8 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_9 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_10 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_7 = Leadership(name="leadership", doc="leadership", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_14 = StrOption(name="varname", doc="No change", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="general", children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="vardyn", doc="No change", properties=frozenset({"standard"})) -option_18 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_19 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_20 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_17 = Leadership(name="leadership", doc="leadership", children=[option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_15 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_14, notraisepropertyerror=True)))), children=[option_16, optiondescription_17], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/20family_dynamic_number/__init__.py b/tests/dictionaries/20family_dynamic_number/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_number/dictionaries/rougail/00-base.yml deleted file mode 100644 index 46f8976eb..000000000 --- a/tests/dictionaries/20family_dynamic_number/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -version: '1.1' -general: - varname: - type: number - description: No change - multi: true - default: - - 1 - - 2 -"dyn{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - vardyn: - type: string - description: No change - default: val -new: - newvar: - type: string - description: No change - default: - type: jinja - jinja: '{{ rougail.dyn1.vardyn | calc_val }}' diff --git a/tests/dictionaries/20family_dynamic_number/makedict/after.json b/tests/dictionaries/20family_dynamic_number/makedict/after.json deleted file mode 100644 index b9a9191e1..000000000 --- a/tests/dictionaries/20family_dynamic_number/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - 1, - 2 - ] - }, - "rougail.dyn1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dyn2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_number/makedict/base.json b/tests/dictionaries/20family_dynamic_number/makedict/base.json deleted file mode 100644 index 364327ef3..000000000 --- a/tests/dictionaries/20family_dynamic_number/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.general.varname": [ - 1, - 2 - ], - "rougail.dyn1.vardyn": "val", - "rougail.dyn2.vardyn": "val", - "rougail.new.newvar": "val" -} diff --git a/tests/dictionaries/20family_dynamic_number/makedict/before.json b/tests/dictionaries/20family_dynamic_number/makedict/before.json deleted file mode 100644 index b9a9191e1..000000000 --- a/tests/dictionaries/20family_dynamic_number/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.general.varname": { - "owner": "default", - "value": [ - 1, - 2 - ] - }, - "rougail.dyn1.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.dyn2.vardyn": { - "owner": "default", - "value": "val" - }, - "rougail.new.newvar": { - "owner": "default", - "value": "val" - } -} diff --git a/tests/dictionaries/20family_dynamic_number/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_number/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_number/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_number/tiramisu/base.py b/tests/dictionaries/20family_dynamic_number/tiramisu/base.py deleted file mode 100644 index 6bd66025a..000000000 --- a/tests/dictionaries/20family_dynamic_number/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.new.newvar'] = "{{ rougail.dyn1.vardyn | calc_val }}" -option_3 = IntOption(name="varname", doc="No change", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.vardyn': ParamDynOption(option_5, ['1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="new", doc="new", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4, optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_number/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_number/tiramisu/multi.py deleted file mode 100644 index c6f04dda9..000000000 --- a/tests/dictionaries/20family_dynamic_number/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.new.newvar'] = "{{ rougail.dyn1.vardyn | calc_val }}" -dict_env['default_2.rougail.new.newvar'] = "{{ rougail.dyn1.vardyn | calc_val }}" -option_4 = IntOption(name="varname", doc="No change", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard"})) -option_8 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.vardyn': ParamDynOption(option_6, ['1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="new", doc="new", children=[option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5, optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = IntOption(name="varname", doc="No change", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="vardyn", doc="No change", default="val", properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)))), children=[option_14], properties=frozenset({"standard"})) -option_16 = StrOption(name="newvar", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.new.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.vardyn': ParamDynOption(option_14, ['1'])})), properties=frozenset({"mandatory", "standard"})) -optiondescription_15 = OptionDescription(name="new", doc="new", children=[option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11, optiondescription_13, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_static/__init__.py b/tests/dictionaries/20family_dynamic_static/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_static/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_static/dictionaries/rougail/00-base.yml deleted file mode 100644 index a75dbe753..000000000 --- a/tests/dictionaries/20family_dynamic_static/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.1' -"dyn{{ suffix }}": - type: dynamic - dynamic: - - val1 - - val2 - vardyn: diff --git a/tests/dictionaries/20family_dynamic_static/makedict/after.json b/tests/dictionaries/20family_dynamic_static/makedict/after.json deleted file mode 100644 index 1b76eb47a..000000000 --- a/tests/dictionaries/20family_dynamic_static/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_static/makedict/base.json b/tests/dictionaries/20family_dynamic_static/makedict/base.json deleted file mode 100644 index 0609904d7..000000000 --- a/tests/dictionaries/20family_dynamic_static/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.dynval1.vardyn": null, - "rougail.dynval2.vardyn": null -} diff --git a/tests/dictionaries/20family_dynamic_static/makedict/before.json b/tests/dictionaries/20family_dynamic_static/makedict/before.json deleted file mode 100644 index 1b76eb47a..000000000 --- a/tests/dictionaries/20family_dynamic_static/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.dynval1.vardyn": { - "owner": "default", - "value": null - }, - "rougail.dynval2.vardyn": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/20family_dynamic_static/tiramisu/base.py b/tests/dictionaries/20family_dynamic_static/tiramisu/base.py deleted file mode 100644 index 6e19c9dfe..000000000 --- a/tests/dictionaries/20family_dynamic_static/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", "val2"], children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_static/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_static/tiramisu/multi.py deleted file mode 100644 index 2c7c9b146..000000000 --- a/tests/dictionaries/20family_dynamic_static/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", "val2"], children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = StrOption(name="vardyn", doc="vardyn", properties=frozenset({"basic", "mandatory"})) -optiondescription_7 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=["val1", "val2"], children=[option_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/__init__.py b/tests/dictionaries/20family_dynamic_unknown_suffix/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml deleted file mode 100644 index 44b678782..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -version: '1.1' -varname: - multi: true - default: - - val1 - - val2 - -"{{ suffix }}_dyn": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - var1: - default: - type: suffix - var2: - default: - type: variable - variable: rougail.{{ suffix }}_dyn.var1 - var3: - default: - type: variable - variable: _.var1 - var4: - default: - type: variable - variable: rougail.val4_dyn.var1 - disabled: - type: jinja - jinja: | - {% if 'val4' not in __.varname %} - val4 is not a valid value - {% endif %} diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/after.json b/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/after.json deleted file mode 100644 index 330cfde31..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/after.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.var1": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var2": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var3": { - "owner": "default", - "value": "val1" - }, - "rougail.val2_dyn.var1": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var2": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var3": { - "owner": "default", - "value": "val2" - } -} diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/base.json b/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/base.json deleted file mode 100644 index bcf2812b7..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.varname": [ - "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/20family_dynamic_unknown_suffix/makedict/before.json b/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/before.json deleted file mode 100644 index 330cfde31..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/before.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.val1_dyn.var1": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var2": { - "owner": "default", - "value": "val1" - }, - "rougail.val1_dyn.var3": { - "owner": "default", - "value": "val1" - }, - "rougail.val2_dyn.var1": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var2": { - "owner": "default", - "value": "val2" - }, - "rougail.val2_dyn.var3": { - "owner": "default", - "value": "val2" - } -} diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/base.py b/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/base.py deleted file mode 100644 index 29e033b4f..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.varname %}\nval4 is not a valid value\n{% endif %}\n" -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.varname': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/multi.py deleted file mode 100644 index c1139a5bb..000000000 --- a/tests/dictionaries/20family_dynamic_unknown_suffix/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.varname %}\nval4 is not a valid value\n{% endif %}\n" -dict_env['disabled_2.rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.varname %}\nval4 is not a valid value\n{% endif %}\n" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.varname': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = StrOption(name="var1", doc="var1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="var2", doc="var2", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) -option_15 = StrOption(name="var3", doc="var3", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="var4", doc="var4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.varname': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) -optiondescription_12 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="{{ suffix }}_dyn", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_11)))), children=[option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_variable_outside/dictionaries/rougail/00-base.yml deleted file mode 100644 index 846804f23..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -version: '1.1' -varname: - multi: true - default: - - val1 - - val2 -"my_dyn_family_{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - propertyerror: false - description: 'Describe ' - my_dyn_var: - type: string - default: - type: suffix - mandatory: false -all_dyn_var: - multi: true - default: - type: variable - variable: "rougail.my_dyn_family_{{ suffix }}.my_dyn_var" - allow_none: true - mandatory: false diff --git a/tests/dictionaries/20family_dynamic_variable_outside/makedict/after.json b/tests/dictionaries/20family_dynamic_variable_outside/makedict/after.json deleted file mode 100644 index d27fabaaa..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside/makedict/base.json b/tests/dictionaries/20family_dynamic_variable_outside/makedict/base.json deleted file mode 100644 index 13e99a51e..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/makedict/base.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "rougail.varname": [ - "val1", - "val2" - ], - "rougail.my_dyn_family_val1.my_dyn_var": "val1", - "rougail.my_dyn_family_val2.my_dyn_var": "val2", - "rougail.all_dyn_var": [ - "val1", - "val2" - ] -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside/makedict/before.json b/tests/dictionaries/20family_dynamic_variable_outside/makedict/before.json deleted file mode 100644 index d27fabaaa..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_variable_outside/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/base.py b/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/base.py deleted file mode 100644 index 233dcef06..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_3 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[option_4], properties=frozenset({"standard"})) -option_5 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_4)), kwargs={'allow_none': ParamValue(True)})), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/multi.py deleted file mode 100644 index 2f86b3b89..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_6 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_5)), kwargs={'allow_none': ParamValue(True)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_11 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_10 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9, notraisepropertyerror=True)))), children=[option_11], properties=frozenset({"standard"})) -option_12 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_11)), kwargs={'allow_none': ParamValue(True)})), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml deleted file mode 100644 index ad92701fc..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -version: '1.1' -varname: - multi: true - default: - - val1 - - val2 -"my_dyn_family_{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - propertyerror: false - description: 'Describe ' - "subdyn_{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - my_dyn_var: - type: string - mandatory: false - default: - type: suffix -all_dyn_var: - mandatory: false - multi: true - default: - type: variable - variable: "rougail.my_dyn_family_val1.subdyn_{{ suffix }}.my_dyn_var" diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/after.json b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/after.json deleted file mode 100644 index def594d13..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/base.json b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/base.json deleted file mode 100644 index c66b02b52..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.varname": [ - "val1", - "val2" - ], - "rougail.my_dyn_family_val1.my_dyn_var": "val1", - "rougail.my_dyn_family_val2.my_dyn_var": "val2", - "rougail.all_dyn_var": "val1" -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/before.json b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/before.json deleted file mode 100644 index def594d13..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/base.py b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/base.py deleted file mode 100644 index 85dd0eafa..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="subdyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_5], properties=frozenset({"standard"})) -optiondescription_3 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[optiondescription_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1', None])))), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py deleted file mode 100644 index d0c40996a..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="subdyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[optiondescription_5], properties=frozenset({"standard"})) -option_7 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_6, ['val1', None])))), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_13 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_12 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="subdyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10)))), children=[option_13], properties=frozenset({"standard"})) -optiondescription_11 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10, notraisepropertyerror=True)))), children=[optiondescription_12], properties=frozenset({"standard"})) -option_14 = StrOption(name="all_dyn_var", doc="all_dyn_var", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val1', None])))), properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, optiondescription_11, option_14], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml deleted file mode 100644 index ae1b7dc59..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -version: '1.1' -varname: - multi: true - default: - - val1 - - val2 -"my_dyn_family_{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: rougail.varname - propertyerror: false - description: 'Describe ' - my_dyn_var: - type: string - mandatory: false - default: - type: suffix -all_dyn_var: - mandatory: false - default: - type: variable - variable: rougail.my_dyn_family_val1.my_dyn_var diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/after.json b/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/after.json deleted file mode 100644 index def594d13..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/after.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/base.json b/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/base.json deleted file mode 100644 index c66b02b52..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/base.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rougail.varname": [ - "val1", - "val2" - ], - "rougail.my_dyn_family_val1.my_dyn_var": "val1", - "rougail.my_dyn_family_val2.my_dyn_var": "val2", - "rougail.all_dyn_var": "val1" -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/before.json b/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/before.json deleted file mode 100644 index def594d13..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/before.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.my_dyn_family_val1.my_dyn_var": { - "owner": "default", - "value": "val1" - }, - "rougail.my_dyn_family_val2.my_dyn_var": { - "owner": "default", - "value": "val2" - }, - "rougail.all_dyn_var": { - "owner": "default", - "value": "val1" - } -} diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/mandatory.json b/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/base.py b/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/base.py deleted file mode 100644 index 077c442a1..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_3 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[option_4], properties=frozenset({"standard"})) -option_5 = StrOption(name="all_dyn_var", doc="all_dyn_var", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val1'])))), properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/multi.py b/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/multi.py deleted file mode 100644 index 85d37f245..000000000 --- a/tests/dictionaries/20family_dynamic_variable_outside_suffix/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard"})) -option_6 = StrOption(name="all_dyn_var", doc="all_dyn_var", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1'])))), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_11 = StrOption(name="my_dyn_var", doc="my_dyn_var", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) -optiondescription_10 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="Describe ", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9, notraisepropertyerror=True)))), children=[option_11], properties=frozenset({"standard"})) -option_12 = StrOption(name="all_dyn_var", doc="all_dyn_var", default=Calculation(func['calc_value'], Params((ParamDynOption(option_11, ['val1'])))), properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/20family_empty/__init__.py b/tests/dictionaries/20family_empty/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_empty/dictionaries/rougail/00-base.yml deleted file mode 100644 index 44edfef08..000000000 --- a/tests/dictionaries/20family_empty/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - mode: basic - default: non -general2: - help: family - type: family -version: '1.0' diff --git a/tests/dictionaries/20family_empty/makedict/after.json b/tests/dictionaries/20family_empty/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_empty/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_empty/makedict/base.json b/tests/dictionaries/20family_empty/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/20family_empty/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/20family_empty/makedict/before.json b/tests/dictionaries/20family_empty/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_empty/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_empty/makedict/mandatory.json b/tests/dictionaries/20family_empty/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_empty/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_empty/tiramisu/base.py b/tests/dictionaries/20family_empty/tiramisu/base.py deleted file mode 100644 index d04f4b170..000000000 --- a/tests/dictionaries/20family_empty/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_empty/tiramisu/multi.py b/tests/dictionaries/20family_empty/tiramisu/multi.py deleted file mode 100644 index 1106a5824..000000000 --- a/tests/dictionaries/20family_empty/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9], properties=frozenset({"basic"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/20family_hidden/__init__.py b/tests/dictionaries/20family_hidden/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index a6e0080f2..000000000 --- a/tests/dictionaries/20family_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - description: No change - hidden: true - default: non diff --git a/tests/dictionaries/20family_hidden/dictionaries/rougail/01-base.yml b/tests/dictionaries/20family_hidden/dictionaries/rougail/01-base.yml deleted file mode 100644 index dae52cc60..000000000 --- a/tests/dictionaries/20family_hidden/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -version: '1.0' -general: - redefine: true - hidden: true diff --git a/tests/dictionaries/20family_hidden/makedict/after.json b/tests/dictionaries/20family_hidden/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_hidden/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_hidden/makedict/base.json b/tests/dictionaries/20family_hidden/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/20family_hidden/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/20family_hidden/makedict/before.json b/tests/dictionaries/20family_hidden/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_hidden/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_hidden/makedict/mandatory.json b/tests/dictionaries/20family_hidden/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_hidden/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_hidden/tiramisu/base.py b/tests/dictionaries/20family_hidden/tiramisu/base.py deleted file mode 100644 index 7516fd30a..000000000 --- a/tests/dictionaries/20family_hidden/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"hidden", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_hidden/tiramisu/multi.py b/tests/dictionaries/20family_hidden/tiramisu/multi.py deleted file mode 100644 index f8a77991e..000000000 --- a/tests/dictionaries/20family_hidden/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"hidden", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"hidden", "standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/20family_mode/__init__.py b/tests/dictionaries/20family_mode/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_mode/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_mode/dictionaries/rougail/00-base.yml deleted file mode 100644 index 71f7adc02..000000000 --- a/tests/dictionaries/20family_mode/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - mode: basic - default: non -version: '1.0' diff --git a/tests/dictionaries/20family_mode/makedict/after.json b/tests/dictionaries/20family_mode/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_mode/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_mode/makedict/base.json b/tests/dictionaries/20family_mode/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/20family_mode/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/20family_mode/makedict/before.json b/tests/dictionaries/20family_mode/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/20family_mode/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/20family_mode/makedict/mandatory.json b/tests/dictionaries/20family_mode/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_mode/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_mode/tiramisu/base.py b/tests/dictionaries/20family_mode/tiramisu/base.py deleted file mode 100644 index d04f4b170..000000000 --- a/tests/dictionaries/20family_mode/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_mode/tiramisu/multi.py b/tests/dictionaries/20family_mode/tiramisu/multi.py deleted file mode 100644 index 58e56907c..000000000 --- a/tests/dictionaries/20family_mode/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/20family_modeleadership/__init__.py b/tests/dictionaries/20family_modeleadership/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_modeleadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_modeleadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index 22eb57b32..000000000 --- a/tests/dictionaries/20family_modeleadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,23 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - mandatory: false - follower2: - type: string - description: follower2 - mode: basic - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/20family_modeleadership/makedict/after.json b/tests/dictionaries/20family_modeleadership/makedict/after.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/20family_modeleadership/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/20family_modeleadership/makedict/base.json b/tests/dictionaries/20family_modeleadership/makedict/base.json deleted file mode 100644 index 9031a92aa..000000000 --- a/tests/dictionaries/20family_modeleadership/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/20family_modeleadership/makedict/before.json b/tests/dictionaries/20family_modeleadership/makedict/before.json deleted file mode 100644 index 548ec3acc..000000000 --- a/tests/dictionaries/20family_modeleadership/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/20family_modeleadership/makedict/mandatory.json b/tests/dictionaries/20family_modeleadership/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_modeleadership/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_modeleadership/tiramisu/base.py b/tests/dictionaries/20family_modeleadership/tiramisu/base.py deleted file mode 100644 index 7413ccac9..000000000 --- a/tests/dictionaries/20family_modeleadership/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic"})) -option_6 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"basic"})) -optiondescription_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_modeleadership/tiramisu/multi.py b/tests/dictionaries/20family_modeleadership/tiramisu/multi.py deleted file mode 100644 index ec85040f2..000000000 --- a/tests/dictionaries/20family_modeleadership/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"basic"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"basic"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, optiondescription_5], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic"})) -option_15 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard"})) -option_16 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"basic"})) -optiondescription_13 = Leadership(name="leader", doc="leader", children=[option_14, option_15, option_16], properties=frozenset({"basic"})) -optiondescription_11 = OptionDescription(name="general", doc="general", children=[option_12, optiondescription_13], properties=frozenset({"basic"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"basic"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/20family_sub_dynamic/__init__.py b/tests/dictionaries/20family_sub_dynamic/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/20family_sub_dynamic/dictionaries/rougail/00-base.yml b/tests/dictionaries/20family_sub_dynamic/dictionaries/rougail/00-base.yml deleted file mode 100644 index 331f4cdbf..000000000 --- a/tests/dictionaries/20family_sub_dynamic/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -version: '1.0' -varname: - multi: true - default: - - val1 - - val2 -"dyn_{{ suffix }}": - varname: - multi: true - default: - type: jinja - jinja: | - {% for val in rougail.varname %} - t{{ val }} - {% endfor %} - type: dynamic - variable: rougail.varname - "dyn_{{ suffix }}": - type: dynamic - variable: "rougail.dyn_{{ suffix }}.varname" - vardyn: - default: - type: suffix - p_vardyn: - default: - type: suffix - suffix: 0 - q_vardyn: - default: - type: jinja - jinja: | - {{ s1 }}-{{ s2 }} - params: - s1: - type: suffix - suffix: 0 - s2: - type: suffix - suffix: 1 diff --git a/tests/dictionaries/20family_sub_dynamic/makedict/after.json b/tests/dictionaries/20family_sub_dynamic/makedict/after.json deleted file mode 100644 index 6d62d87c7..000000000 --- a/tests/dictionaries/20family_sub_dynamic/makedict/after.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dyn_val1.varname": { - "owner": "default", - "value": [ - "tval1", - "tval2" - ] - }, - "rougail.dyn_val1.dyn_tval1.vardyn": { - "owner": "default", - "value": "tval1" - }, - "rougail.dyn_val1.dyn_tval1.p_vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dyn_val1.dyn_tval1.q_vardyn": { - "owner": "default", - "value": "val1-tval1" - }, - "rougail.dyn_val1.dyn_tval2.vardyn": { - "owner": "default", - "value": "tval2" - }, - "rougail.dyn_val1.dyn_tval2.p_vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dyn_val1.dyn_tval2.q_vardyn": { - "owner": "default", - "value": "val1-tval2" - }, - "rougail.dyn_val2.varname": { - "owner": "default", - "value": [ - "tval1", - "tval2" - ] - }, - "rougail.dyn_val2.dyn_tval1.vardyn": { - "owner": "default", - "value": "tval1" - }, - "rougail.dyn_val2.dyn_tval1.p_vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.dyn_val2.dyn_tval1.q_vardyn": { - "owner": "default", - "value": "val2-tval1" - }, - "rougail.dyn_val2.dyn_tval2.vardyn": { - "owner": "default", - "value": "tval2" - }, - "rougail.dyn_val2.dyn_tval2.p_vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.dyn_val2.dyn_tval2.q_vardyn": { - "owner": "default", - "value": "val2-tval2" - } -} diff --git a/tests/dictionaries/20family_sub_dynamic/makedict/base.json b/tests/dictionaries/20family_sub_dynamic/makedict/base.json deleted file mode 100644 index ac0c197a7..000000000 --- a/tests/dictionaries/20family_sub_dynamic/makedict/base.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rougail.varname": [ - "val1", - "val2" - ], - "rougail.dyn_val1.varname": [ - "tval1", - "tval2" - ], - "rougail.dyn_val1.dyn_tval1.vardyn": "tval1", - "rougail.dyn_val1.dyn_tval1.p_vardyn": "val1", - "rougail.dyn_val1.dyn_tval1.q_vardyn": "val1-tval1", - "rougail.dyn_val1.dyn_tval2.vardyn": "tval2", - "rougail.dyn_val1.dyn_tval2.p_vardyn": "val1", - "rougail.dyn_val1.dyn_tval2.q_vardyn": "val1-tval2", - "rougail.dyn_val2.varname": [ - "tval1", - "tval2" - ], - "rougail.dyn_val2.dyn_tval1.vardyn": "tval1", - "rougail.dyn_val2.dyn_tval1.p_vardyn": "val2", - "rougail.dyn_val2.dyn_tval1.q_vardyn": "val2-tval1", - "rougail.dyn_val2.dyn_tval2.vardyn": "tval2", - "rougail.dyn_val2.dyn_tval2.p_vardyn": "val2", - "rougail.dyn_val2.dyn_tval2.q_vardyn": "val2-tval2" -} diff --git a/tests/dictionaries/20family_sub_dynamic/makedict/before.json b/tests/dictionaries/20family_sub_dynamic/makedict/before.json deleted file mode 100644 index 6d62d87c7..000000000 --- a/tests/dictionaries/20family_sub_dynamic/makedict/before.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "rougail.varname": { - "owner": "default", - "value": [ - "val1", - "val2" - ] - }, - "rougail.dyn_val1.varname": { - "owner": "default", - "value": [ - "tval1", - "tval2" - ] - }, - "rougail.dyn_val1.dyn_tval1.vardyn": { - "owner": "default", - "value": "tval1" - }, - "rougail.dyn_val1.dyn_tval1.p_vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dyn_val1.dyn_tval1.q_vardyn": { - "owner": "default", - "value": "val1-tval1" - }, - "rougail.dyn_val1.dyn_tval2.vardyn": { - "owner": "default", - "value": "tval2" - }, - "rougail.dyn_val1.dyn_tval2.p_vardyn": { - "owner": "default", - "value": "val1" - }, - "rougail.dyn_val1.dyn_tval2.q_vardyn": { - "owner": "default", - "value": "val1-tval2" - }, - "rougail.dyn_val2.varname": { - "owner": "default", - "value": [ - "tval1", - "tval2" - ] - }, - "rougail.dyn_val2.dyn_tval1.vardyn": { - "owner": "default", - "value": "tval1" - }, - "rougail.dyn_val2.dyn_tval1.p_vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.dyn_val2.dyn_tval1.q_vardyn": { - "owner": "default", - "value": "val2-tval1" - }, - "rougail.dyn_val2.dyn_tval2.vardyn": { - "owner": "default", - "value": "tval2" - }, - "rougail.dyn_val2.dyn_tval2.p_vardyn": { - "owner": "default", - "value": "val2" - }, - "rougail.dyn_val2.dyn_tval2.q_vardyn": { - "owner": "default", - "value": "val2-tval2" - } -} diff --git a/tests/dictionaries/20family_sub_dynamic/makedict/mandatory.json b/tests/dictionaries/20family_sub_dynamic/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/20family_sub_dynamic/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/20family_sub_dynamic/tiramisu/base.py b/tests/dictionaries/20family_sub_dynamic/tiramisu/base.py deleted file mode 100644 index 9ad6396ce..000000000 --- a/tests/dictionaries/20family_sub_dynamic/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.dyn_{{ suffix }}.varname'] = "{% for val in rougail.varname %}\nt{{ val }}\n{% endfor %}\n" -dict_env['default_rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn'] = "{{ s1 }}-{{ s2 }}\n" -option_2 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_4 = StrOption(name="varname", doc="varname", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn_{{ suffix }}.varname"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.varname': ParamOption(option_2)})), properties=frozenset({"mandatory", "notempty", "standard"})) -option_6 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="p_vardyn", doc="p_vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="q_vardyn", doc="q_vardyn", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_3 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/20family_sub_dynamic/tiramisu/multi.py b/tests/dictionaries/20family_sub_dynamic/tiramisu/multi.py deleted file mode 100644 index e152cf391..000000000 --- a/tests/dictionaries/20family_sub_dynamic/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.dyn_{{ suffix }}.varname'] = "{% for val in rougail.varname %}\nt{{ val }}\n{% endfor %}\n" -dict_env['default_1.rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn'] = "{{ s1 }}-{{ s2 }}\n" -dict_env['default_2.rougail.dyn_{{ suffix }}.varname'] = "{% for val in rougail.varname %}\nt{{ val }}\n{% endfor %}\n" -dict_env['default_2.rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn'] = "{{ s1 }}-{{ s2 }}\n" -option_3 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_5 = StrOption(name="varname", doc="varname", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn_{{ suffix }}.varname"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.varname': ParamOption(option_3)})), properties=frozenset({"mandatory", "notempty", "standard"})) -option_7 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_8 = StrOption(name="p_vardyn", doc="p_vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) -option_9 = StrOption(name="q_vardyn", doc="q_vardyn", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_5, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_4 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5, optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_12 = StrOption(name="varname", doc="varname", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) -option_14 = StrOption(name="varname", doc="varname", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn_{{ suffix }}.varname"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), 'rougail.varname': ParamOption(option_12)})), properties=frozenset({"mandatory", "notempty", "standard"})) -option_16 = StrOption(name="vardyn", doc="vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) -option_17 = StrOption(name="p_vardyn", doc="p_vardyn", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) -option_18 = StrOption(name="q_vardyn", doc="q_vardyn", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn_{{ suffix }}.dyn_{{ suffix }}.q_vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) -optiondescription_15 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_14, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_13 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="dyn_{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_14, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/21family_empty/__init__.py b/tests/dictionaries/21family_empty/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/21family_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/21family_empty/dictionaries/rougail/00-base.yml deleted file mode 100644 index b22aea6f9..000000000 --- a/tests/dictionaries/21family_empty/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - type: family -version: '1.0' diff --git a/tests/dictionaries/21family_empty/makedict/after.json b/tests/dictionaries/21family_empty/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/21family_empty/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/21family_empty/makedict/base.json b/tests/dictionaries/21family_empty/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/21family_empty/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/21family_empty/makedict/before.json b/tests/dictionaries/21family_empty/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/21family_empty/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/21family_empty/makedict/mandatory.json b/tests/dictionaries/21family_empty/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/21family_empty/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/21family_empty/tiramisu/base.py b/tests/dictionaries/21family_empty/tiramisu/base.py deleted file mode 100644 index fae1c9a6d..000000000 --- a/tests/dictionaries/21family_empty/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/21family_empty/tiramisu/multi.py b/tests/dictionaries/21family_empty/tiramisu/multi.py deleted file mode 100644 index c4ef7c8c9..000000000 --- a/tests/dictionaries/21family_empty/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/21family_empty_sub/__init__.py b/tests/dictionaries/21family_empty_sub/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/21family_empty_sub/dictionaries/rougail/00-base.yml b/tests/dictionaries/21family_empty_sub/dictionaries/rougail/00-base.yml deleted file mode 100644 index 112b6fcdb..000000000 --- a/tests/dictionaries/21family_empty_sub/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non -general1: - general2: - type: family diff --git a/tests/dictionaries/21family_empty_sub/makedict/after.json b/tests/dictionaries/21family_empty_sub/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/21family_empty_sub/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/21family_empty_sub/makedict/base.json b/tests/dictionaries/21family_empty_sub/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/21family_empty_sub/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/21family_empty_sub/makedict/before.json b/tests/dictionaries/21family_empty_sub/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/21family_empty_sub/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/21family_empty_sub/makedict/mandatory.json b/tests/dictionaries/21family_empty_sub/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/21family_empty_sub/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/21family_empty_sub/tiramisu/base.py b/tests/dictionaries/21family_empty_sub/tiramisu/base.py deleted file mode 100644 index fae1c9a6d..000000000 --- a/tests/dictionaries/21family_empty_sub/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/21family_empty_sub/tiramisu/multi.py b/tests/dictionaries/21family_empty_sub/tiramisu/multi.py deleted file mode 100644 index 344f70d51..000000000 --- a/tests/dictionaries/21family_empty_sub/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/__init__.py b/tests/dictionaries/24_0family_hidden_condition/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param5/__init__.py rename to tests/dictionaries/24_0family_hidden_condition/__init__.py diff --git a/tests/dictionaries/24_0family_hidden_condition/dictionaries/rougail/00-base.yml b/tests/dictionaries/24_0family_hidden_condition/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..2b6831851 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +condition: "no" # the variable use has condition +family: + description: possibly hidden family + hidden: + type: jinja + jinja: | + {% if rougail.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes + var1: # a variable diff --git a/tests/dictionaries/24_0family_hidden_condition/makedict/after.json b/tests/dictionaries/24_0family_hidden_condition/makedict/after.json new file mode 100644 index 000000000..23f89ddb1 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.family.var1": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition/makedict/base.json b/tests/dictionaries/24_0family_hidden_condition/makedict/base.json new file mode 100644 index 000000000..14b822e42 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.family.var1": null +} diff --git a/tests/dictionaries/24_0family_hidden_condition/makedict/before.json b/tests/dictionaries/24_0family_hidden_condition/makedict/before.json new file mode 100644 index 000000000..23f89ddb1 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.family.var1": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition/makedict/mandatory.json b/tests/dictionaries/24_0family_hidden_condition/makedict/mandatory.json new file mode 100644 index 000000000..7c70f3bc2 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.var1"] \ No newline at end of file diff --git a/tests/dictionaries/24_0family_hidden_condition/tiramisu/base.py b/tests/dictionaries/24_0family_hidden_condition/tiramisu/base.py new file mode 100644 index 000000000..802175ab2 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_rougail.family.var1'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_rougail.family'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="the variable use has condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.family.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_3 = OptionDescription(name="family", doc="possibly hidden family", children=[option_4], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/24_0family_hidden_condition/tiramisu/multi.py b/tests/dictionaries/24_0family_hidden_condition/tiramisu/multi.py new file mode 100644 index 000000000..a8622597a --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_1.rougail.family.var1'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_1.rougail.family'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['frozen_2.rougail.family.var1'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['hidden_2.rougail.family'] = "{% if rougail.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="the variable use has condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.family.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = OptionDescription(name="family", doc="possibly hidden family", children=[option_5], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="condition", doc="the variable use has condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="var1", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.family.var1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_9 = OptionDescription(name="family", doc="possibly hidden family", children=[option_10], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/__init__.py b/tests/dictionaries/24_0family_hidden_condition_boolean/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param6/__init__.py rename to tests/dictionaries/24_0family_hidden_condition_boolean/__init__.py diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/24_0family_hidden_condition_boolean/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f7e258f52 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +condition: false # a conditional variable +family: + description: a family + hidden: + type: jinja + jinja: | + {% if not rougail.condition %} + condition is false + {% endif %} + description: if not condition + variable: # a variable diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/after.json b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/after.json new file mode 100644 index 000000000..636b9b181 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": false + }, + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/base.json b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/base.json new file mode 100644 index 000000000..ed3e3fb2f --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.family.variable": null +} diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/before.json b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/before.json new file mode 100644 index 000000000..636b9b181 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": false + }, + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/mandatory.json b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/mandatory.json new file mode 100644 index 000000000..6084a0014 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.variable"] \ No newline at end of file diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/base.py b/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/base.py new file mode 100644 index 000000000..ba0550374 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_rougail.family.variable'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +dict_env['hidden_rougail.family'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +option_2 = BoolOption(name="condition", doc="a conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_3 = OptionDescription(name="family", doc="a family", children=[option_4], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/multi.py b/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/multi.py new file mode 100644 index 000000000..ba7de3c0f --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_boolean/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_1.rougail.family.variable'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +dict_env['hidden_1.rougail.family'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +dict_env['frozen_2.rougail.family.variable'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +dict_env['hidden_2.rougail.family'] = "{% if not rougail.condition %}\ncondition is false\n{% endif %}\n" +option_3 = BoolOption(name="condition", doc="a conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = OptionDescription(name="family", doc="a family", children=[option_5], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = BoolOption(name="condition", doc="a conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_9 = OptionDescription(name="family", doc="a family", children=[option_10], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition': ParamOption(option_8)}), help_function=func['jinja_to_property_help'])})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/__init__.py b/tests/dictionaries/24_0family_hidden_condition_with_variable/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param_disabled/__init__.py rename to tests/dictionaries/24_0family_hidden_condition_with_variable/__init__.py diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/24_0family_hidden_condition_with_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..76e0cd031 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,22 @@ +--- +version: '1.1' +condition1: false # a first conditional variable +condition2: false # a second conditional variable +family: + description: a family + hidden: + type: jinja + jinja: | + {% if not rougail.condition1 %} + condition1 is false + {% endif %} + description: if condition1 is false + variable: + description: a variable + hidden: + type: jinja + jinja: | + {% if rougail.condition2 %} + condition2 is true + {% endif %} + description: if condition2 is false diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/after.json b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/after.json new file mode 100644 index 000000000..6a33b18b1 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.condition1": { + "owner": "default", + "value": false + }, + "rougail.condition2": { + "owner": "default", + "value": false + }, + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/base.json b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/base.json new file mode 100644 index 000000000..313293128 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.condition1": false, + "rougail.condition2": false, + "rougail.family.variable": null +} diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/before.json b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/before.json new file mode 100644 index 000000000..6a33b18b1 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.condition1": { + "owner": "default", + "value": false + }, + "rougail.condition2": { + "owner": "default", + "value": false + }, + "rougail.family.variable": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/mandatory.json b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/mandatory.json new file mode 100644 index 000000000..6084a0014 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.family.variable"] \ No newline at end of file diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/base.py b/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/base.py new file mode 100644 index 000000000..228435a93 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/base.py @@ -0,0 +1,17 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_rougail.family.variable'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['frozen_rougail.family.variable'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +dict_env['frozen_rougail.family.variable_0'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['hidden_rougail.family'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +option_2 = BoolOption(name="condition1", doc="a first conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_3 = BoolOption(name="condition2", doc="a second conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_2)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.family.variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = OptionDescription(name="family", doc="a family", children=[option_5], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/multi.py b/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/multi.py new file mode 100644 index 000000000..769d88340 --- /dev/null +++ b/tests/dictionaries/24_0family_hidden_condition_with_variable/tiramisu/multi.py @@ -0,0 +1,28 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['hidden_1.rougail.family.variable'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['frozen_1.rougail.family.variable'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +dict_env['frozen_1.rougail.family.variable_0'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['hidden_1.rougail.family'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +dict_env['hidden_2.rougail.family.variable'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['frozen_2.rougail.family.variable'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +dict_env['frozen_2.rougail.family.variable_0'] = "{% if rougail.condition2 %}\ncondition2 is true\n{% endif %}\n" +dict_env['hidden_2.rougail.family'] = "{% if not rougail.condition1 %}\ncondition1 is false\n{% endif %}\n" +option_3 = BoolOption(name="condition1", doc="a first conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_4 = BoolOption(name="condition2", doc="a second conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_3)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.family.variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) +optiondescription_5 = OptionDescription(name="family", doc="a family", children=[option_6], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = BoolOption(name="condition1", doc="a first conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_10 = BoolOption(name="condition2", doc="a second conditional variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_12 = StrOption(name="variable", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_10)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.family.variable"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_9)}), help_function=func['jinja_to_property_help']), Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.family.variable_0"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition2': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) +optiondescription_11 = OptionDescription(name="family", doc="a family", children=[option_12], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.family"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.condition1': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, option_10, optiondescription_11], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_none/__init__.py b/tests/dictionaries/24_0family_mandatory_condition/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_none/__init__.py rename to tests/dictionaries/24_0family_mandatory_condition/__init__.py diff --git a/tests/dictionaries/24_0family_mandatory_condition/dictionaries/rougail/00-base.yml b/tests/dictionaries/24_0family_mandatory_condition/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c192ea077 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +condition: "no" # a condition +var: + description: a variable + mandatory: + type: jinja + jinja: | + {% if _.condition == "yes" %} + condition is yes + {% endif %} + description: only if rougail.condition has the value "yes" diff --git a/tests/dictionaries/24_0family_mandatory_condition/makedict/after.json b/tests/dictionaries/24_0family_mandatory_condition/makedict/after.json new file mode 100644 index 000000000..a389caca4 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_mandatory_condition/makedict/base.json b/tests/dictionaries/24_0family_mandatory_condition/makedict/base.json new file mode 100644 index 000000000..71e7314aa --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.var": null +} diff --git a/tests/dictionaries/24_0family_mandatory_condition/makedict/before.json b/tests/dictionaries/24_0family_mandatory_condition/makedict/before.json new file mode 100644 index 000000000..a389caca4 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/10leadership_leader_hidden/makedict/mandatory.json b/tests/dictionaries/24_0family_mandatory_condition/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden/makedict/mandatory.json rename to tests/dictionaries/24_0family_mandatory_condition/makedict/mandatory.json diff --git a/tests/dictionaries/24_0family_mandatory_condition/tiramisu/base.py b/tests/dictionaries/24_0family_mandatory_condition/tiramisu/base.py new file mode 100644 index 000000000..6324ae3f5 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['mandatory_rougail.var'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/24_0family_mandatory_condition/tiramisu/multi.py b/tests/dictionaries/24_0family_mandatory_condition/tiramisu/multi.py new file mode 100644 index 000000000..394cc0b2d --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['mandatory_1.rougail.var'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +dict_env['mandatory_2.rougail.var'] = "{% if _.condition == \"yes\" %}\ncondition is yes\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_1.rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_7 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("mandatory")), kwargs={'__internal_jinja': ParamValue("mandatory_2.rougail.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.condition': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10load_disabled_if_in_twice/__init__.py b/tests/dictionaries/24_0family_mandatory_condition_variable/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_twice/__init__.py rename to tests/dictionaries/24_0family_mandatory_condition_variable/__init__.py diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/24_0family_mandatory_condition_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..20e3c0071 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +condition: true # a condition +var: + description: a variable + mandatory: + type: variable + variable: _.condition diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/after.json b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/after.json new file mode 100644 index 000000000..811f2de43 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": true + }, + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/base.json b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/base.json new file mode 100644 index 000000000..63739a930 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": true, + "rougail.var": null +} diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/before.json b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/before.json new file mode 100644 index 000000000..811f2de43 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": true + }, + "rougail.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/mandatory.json b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/mandatory.json new file mode 100644 index 000000000..f030b0c48 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var"] \ No newline at end of file diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/base.py b/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/base.py new file mode 100644 index 000000000..9029053e8 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_2))), help_function=func['variable_to_property'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/multi.py b/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/multi.py new file mode 100644 index 000000000..9bc6e30b5 --- /dev/null +++ b/tests/dictionaries/24_0family_mandatory_condition_variable/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_3))), help_function=func['variable_to_property'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_7 = BoolOption(name="condition", doc="a condition", default=True, properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var", doc="a variable", properties=frozenset({"standard", Calculation(func['variable_to_property'], Params((ParamValue("mandatory"), ParamOption(option_7))), help_function=func['variable_to_property'])})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/30mandatory_withoutvalue/__init__.py b/tests/dictionaries/30mandatory_withoutvalue/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/30mandatory_withoutvalue/dictionaries/rougail/00-base.yml b/tests/dictionaries/30mandatory_withoutvalue/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3390ba5c4..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - mandatory: true -version: '1.0' diff --git a/tests/dictionaries/30mandatory_withoutvalue/makedict/after.json b/tests/dictionaries/30mandatory_withoutvalue/makedict/after.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/30mandatory_withoutvalue/makedict/base.json b/tests/dictionaries/30mandatory_withoutvalue/makedict/base.json deleted file mode 100644 index ab81a62f5..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/30mandatory_withoutvalue/makedict/before.json b/tests/dictionaries/30mandatory_withoutvalue/makedict/before.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/30mandatory_withoutvalue/makedict/mandatory.json b/tests/dictionaries/30mandatory_withoutvalue/makedict/mandatory.json deleted file mode 100644 index 89fb354f2..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["rougail.general.mode_conteneur_actif"] \ No newline at end of file diff --git a/tests/dictionaries/30mandatory_withoutvalue/tiramisu/base.py b/tests/dictionaries/30mandatory_withoutvalue/tiramisu/base.py deleted file mode 100644 index 12ae6a35a..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/30mandatory_withoutvalue/tiramisu/multi.py b/tests/dictionaries/30mandatory_withoutvalue/tiramisu/multi.py deleted file mode 100644 index 8854fb457..000000000 --- a/tests/dictionaries/30mandatory_withoutvalue/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", properties=frozenset({"basic", "mandatory"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"basic"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", properties=frozenset({"basic", "mandatory"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/__init__.py b/tests/dictionaries/30mandatory_withoutvaluecalc/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/dictionaries/rougail/00-base.yml b/tests/dictionaries/30mandatory_withoutvaluecalc/dictionaries/rougail/00-base.yml deleted file mode 100644 index 07da869b4..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ "value" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/after.json b/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/after.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/base.json b/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/base.json deleted file mode 100644 index 904ffb4eb..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "value" -} diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/before.json b/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/before.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/mandatory.json b/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/base.py b/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/base.py deleted file mode 100644 index 6aa51ccfb..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/multi.py b/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/multi.py deleted file mode 100644 index e0672b5c8..000000000 --- a/tests/dictionaries/30mandatory_withoutvaluecalc/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/30mandatory_withvalue/__init__.py b/tests/dictionaries/30mandatory_withvalue/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/30mandatory_withvalue/dictionaries/rougail/00-base.yml b/tests/dictionaries/30mandatory_withvalue/dictionaries/rougail/00-base.yml deleted file mode 100644 index 5b7b86f1f..000000000 --- a/tests/dictionaries/30mandatory_withvalue/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: value -version: '1.0' diff --git a/tests/dictionaries/30mandatory_withvalue/makedict/after.json b/tests/dictionaries/30mandatory_withvalue/makedict/after.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withvalue/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withvalue/makedict/base.json b/tests/dictionaries/30mandatory_withvalue/makedict/base.json deleted file mode 100644 index 904ffb4eb..000000000 --- a/tests/dictionaries/30mandatory_withvalue/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "value" -} diff --git a/tests/dictionaries/30mandatory_withvalue/makedict/before.json b/tests/dictionaries/30mandatory_withvalue/makedict/before.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withvalue/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withvalue/makedict/mandatory.json b/tests/dictionaries/30mandatory_withvalue/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/30mandatory_withvalue/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/30mandatory_withvalue/tiramisu/base.py b/tests/dictionaries/30mandatory_withvalue/tiramisu/base.py deleted file mode 100644 index 3946df4c4..000000000 --- a/tests/dictionaries/30mandatory_withvalue/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="value", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/30mandatory_withvalue/tiramisu/multi.py b/tests/dictionaries/30mandatory_withvalue/tiramisu/multi.py deleted file mode 100644 index f21efa7d8..000000000 --- a/tests/dictionaries/30mandatory_withvalue/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="value", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default="value", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/30mandatory_withvaluecalc/__init__.py b/tests/dictionaries/30mandatory_withvaluecalc/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/30mandatory_withvaluecalc/dictionaries/rougail/00-base.yml b/tests/dictionaries/30mandatory_withvaluecalc/dictionaries/rougail/00-base.yml deleted file mode 100644 index 938ad41df..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ "value" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/30mandatory_withvaluecalc/makedict/after.json b/tests/dictionaries/30mandatory_withvaluecalc/makedict/after.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withvaluecalc/makedict/base.json b/tests/dictionaries/30mandatory_withvaluecalc/makedict/base.json deleted file mode 100644 index 904ffb4eb..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "value" -} diff --git a/tests/dictionaries/30mandatory_withvaluecalc/makedict/before.json b/tests/dictionaries/30mandatory_withvaluecalc/makedict/before.json deleted file mode 100644 index 6f4a21e7d..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "value" - } -} diff --git a/tests/dictionaries/30mandatory_withvaluecalc/makedict/mandatory.json b/tests/dictionaries/30mandatory_withvaluecalc/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/base.py b/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/base.py deleted file mode 100644 index 9f9bf20cb..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/multi.py b/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/multi.py deleted file mode 100644 index 65e68f87f..000000000 --- a/tests/dictionaries/30mandatory_withvaluecalc/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"value\" | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable/__init__.py b/tests/dictionaries/40_0leadership/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_variable/__init__.py rename to tests/dictionaries/40_0leadership/__init__.py diff --git a/tests/dictionaries/40_0leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..465a39d3e --- /dev/null +++ b/tests/dictionaries/40_0leadership/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + follower1: # a follower + follower2: # an other follower diff --git a/tests/dictionaries/40_0leadership/makedict/after.json b/tests/dictionaries/40_0leadership/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership/makedict/base.json b/tests/dictionaries/40_0leadership/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership/makedict/before.json b/tests/dictionaries/40_0leadership/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership/makedict/mandatory.json b/tests/dictionaries/40_0leadership/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/40_0leadership/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/40_0leadership/tiramisu/base.py b/tests/dictionaries/40_0leadership/tiramisu/base.py new file mode 100644 index 000000000..6a7fc43ec --- /dev/null +++ b/tests/dictionaries/40_0leadership/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership/tiramisu/multi.py b/tests/dictionaries/40_0leadership/tiramisu/multi.py new file mode 100644 index 000000000..d6e5f5caa --- /dev/null +++ b/tests/dictionaries/40_0leadership/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_11 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_12 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = Leadership(name="leader", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/__init__.py b/tests/dictionaries/40_0leadership_diff_name/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_variable2/__init__.py rename to tests/dictionaries/40_0leadership_diff_name/__init__.py diff --git a/tests/dictionaries/40_0leadership_diff_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_diff_name/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0ce22170e --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +leadership: + description: a leadership + type: leadership + leader: [] # a leader + follower1: # a follower + follower2: # an other follower diff --git a/tests/dictionaries/40_0leadership_diff_name/makedict/after.json b/tests/dictionaries/40_0leadership_diff_name/makedict/after.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership_diff_name/makedict/base.json b/tests/dictionaries/40_0leadership_diff_name/makedict/base.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_diff_name/makedict/before.json b/tests/dictionaries/40_0leadership_diff_name/makedict/before.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership_diff_name/makedict/mandatory.json b/tests/dictionaries/40_0leadership_diff_name/makedict/mandatory.json new file mode 100644 index 000000000..d8a4dfa31 --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leadership.leader"] \ No newline at end of file diff --git a/tests/dictionaries/40_0leadership_diff_name/tiramisu/base.py b/tests/dictionaries/40_0leadership_diff_name/tiramisu/base.py new file mode 100644 index 000000000..d5a282313 --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leadership", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership_diff_name/tiramisu/multi.py b/tests/dictionaries/40_0leadership_diff_name/tiramisu/multi.py new file mode 100644 index 000000000..bedf30a19 --- /dev/null +++ b/tests/dictionaries/40_0leadership_diff_name/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leadership", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_11 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_12 = StrOption(name="follower2", doc="an other follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = Leadership(name="leadership", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback/__init__.py b/tests/dictionaries/40_0leadership_empty/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_not_in_fallback/__init__.py rename to tests/dictionaries/40_0leadership_empty/__init__.py diff --git a/tests/dictionaries/40_0leadership_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_empty/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..550a20746 --- /dev/null +++ b/tests/dictionaries/40_0leadership_empty/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +empty_leader: + type: leadership diff --git a/tests/dictionaries/20family_disabled/makedict/after.json b/tests/dictionaries/40_0leadership_empty/makedict/after.json similarity index 100% rename from tests/dictionaries/20family_disabled/makedict/after.json rename to tests/dictionaries/40_0leadership_empty/makedict/after.json diff --git a/tests/dictionaries/20family_disabled/makedict/base.json b/tests/dictionaries/40_0leadership_empty/makedict/base.json similarity index 100% rename from tests/dictionaries/20family_disabled/makedict/base.json rename to tests/dictionaries/40_0leadership_empty/makedict/base.json diff --git a/tests/dictionaries/20family_disabled/makedict/before.json b/tests/dictionaries/40_0leadership_empty/makedict/before.json similarity index 100% rename from tests/dictionaries/20family_disabled/makedict/before.json rename to tests/dictionaries/40_0leadership_empty/makedict/before.json diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in/makedict/mandatory.json b/tests/dictionaries/40_0leadership_empty/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden_if_in/makedict/mandatory.json rename to tests/dictionaries/40_0leadership_empty/makedict/mandatory.json diff --git a/tests/dictionaries/10leadership_empty/tiramisu/base.py b/tests/dictionaries/40_0leadership_empty/tiramisu/base.py similarity index 100% rename from tests/dictionaries/10leadership_empty/tiramisu/base.py rename to tests/dictionaries/40_0leadership_empty/tiramisu/base.py diff --git a/tests/dictionaries/10leadership_empty/tiramisu/multi.py b/tests/dictionaries/40_0leadership_empty/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/10leadership_empty/tiramisu/multi.py rename to tests/dictionaries/40_0leadership_empty/tiramisu/multi.py diff --git a/tests/dictionaries/10load_disabled_if_not_in_fallback_force/__init__.py b/tests/dictionaries/40_0leadership_follower_default_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabled_if_not_in_fallback_force/__init__.py rename to tests/dictionaries/40_0leadership_follower_default_calculation/__init__.py diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_follower_default_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..42da800b1 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: # a leader + follower1: value # a follower + follower2: + description: a second follower + default: + type: jinja + jinja: | + {{ _.follower1 }} + description: returns follower1 value diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/after.json b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/base.json b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/before.json b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/mandatory.json b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/base.py b/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/base.py new file mode 100644 index 000000000..e0eed72a8 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.leader.follower2'] = "{{ _.follower1 }}\n" +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="a follower", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="follower2", doc="a second follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.follower1': ParamOption(option_4)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/multi.py b/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/multi.py new file mode 100644 index 000000000..a196b624f --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_calculation/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.leader.follower2'] = "{{ _.follower1 }}\n" +dict_env['default_2.rougail.leader.follower2'] = "{{ _.follower1 }}\n" +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="a follower", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="follower2", doc="a second follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.follower1': ParamOption(option_5)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_11 = StrOption(name="follower1", doc="a follower", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +option_12 = StrOption(name="follower2", doc="a second follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leader.follower2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.follower1': ParamOption(option_11)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = Leadership(name="leader", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_fallback/__init__.py b/tests/dictionaries/40_0leadership_follower_default_submulti/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabledifin_fallback/__init__.py rename to tests/dictionaries/40_0leadership_follower_default_submulti/__init__.py diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_follower_default_submulti/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f0099503f --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: # a leader + - leader + follower1: # a follower1 + - value + follower2: # a follower2 + - value1 + - value2 diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/after.json b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/after.json new file mode 100644 index 000000000..47da444af --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/after.json @@ -0,0 +1,29 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "leader" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default" + ], + "value": [ + [ + "value1", + "value2" + ] + ] + } +} diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/base.json b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/base.json new file mode 100644 index 000000000..1b63ab163 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/base.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/makedict/before.json b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/before.json new file mode 100644 index 000000000..47da444af --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/before.json @@ -0,0 +1,29 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "leader" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default" + ], + "value": [ + [ + "value1", + "value2" + ] + ] + } +} diff --git a/tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/mandatory.json b/tests/dictionaries/40_0leadership_follower_default_submulti/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_leader_hidden_if_in_name/makedict/mandatory.json rename to tests/dictionaries/40_0leadership_follower_default_submulti/makedict/mandatory.json diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/base.py b/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/base.py new file mode 100644 index 000000000..4aa819092 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="follower1", doc="a follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="follower2", doc="a follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/multi.py b/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/multi.py new file mode 100644 index 000000000..115994979 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="follower1", doc="a follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="follower2", doc="a follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_10 = StrOption(name="leader", doc="a leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="follower1", doc="a follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_12 = StrOption(name="follower2", doc="a follower2", multi=submulti, default_multi=["value1", "value2"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_9 = Leadership(name="leader", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_fallback_force/__init__.py b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabledifin_fallback_force/__init__.py rename to tests/dictionaries/40_0leadership_follower_default_submulti_calculation/__init__.py diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..24ad28adf --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,15 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: # the leader + - leader + follower1: # the follower1 + - value + follower2: + description: the follower2 + multi: true + default: + type: variable + variable: _.follower1 diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/after.json b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/after.json new file mode 100644 index 000000000..45c2c2a6e --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/after.json @@ -0,0 +1,28 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "leader" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + } +} diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/base.json b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/base.json new file mode 100644 index 000000000..c6ed0b45e --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/base.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_submulti_calculation/makedict/before.json b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/before.json new file mode 100644 index 000000000..45c2c2a6e --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/before.json @@ -0,0 +1,28 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "leader" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default" + ], + "value": [ + [ + "value" + ] + ] + } +} diff --git a/tests/dictionaries/10leadership_mandatoryfollower/makedict/mandatory.json b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_mandatoryfollower/makedict/mandatory.json rename to tests/dictionaries/40_0leadership_follower_default_submulti_calculation/makedict/mandatory.json diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/base.py b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/base.py new file mode 100644 index 000000000..6a08283f8 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +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, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="follower1", doc="the follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="follower2", doc="the follower2", multi=submulti, default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/multi.py b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/multi.py new file mode 100644 index 000000000..506d7bedd --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_submulti_calculation/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="the leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="follower1", doc="the follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="follower2", doc="the follower2", multi=submulti, default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_10 = StrOption(name="leader", doc="the leader", multi=True, default=["leader"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="follower1", doc="the follower1", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_12 = StrOption(name="follower2", doc="the follower2", multi=submulti, default=Calculation(func['calc_value'], Params((ParamOption(option_11)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_9 = Leadership(name="leader", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_disabledifin_whithouttype/__init__.py b/tests/dictionaries/40_0leadership_follower_default_value/__init__.py similarity index 100% rename from tests/dictionaries/10load_disabledifin_whithouttype/__init__.py rename to tests/dictionaries/40_0leadership_follower_default_value/__init__.py diff --git a/tests/dictionaries/40_0leadership_follower_default_value/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_0leadership_follower_default_value/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..4c267a661 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + mandatory: false + follower1: value # a follower with default value diff --git a/tests/dictionaries/40_0leadership_follower_default_value/makedict/after.json b/tests/dictionaries/40_0leadership_follower_default_value/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_0leadership_follower_default_value/makedict/base.json b/tests/dictionaries/40_0leadership_follower_default_value/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_0leadership_follower_default_value/makedict/before.json b/tests/dictionaries/40_0leadership_follower_default_value/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/10leadership_mandatoryfollower_value/makedict/mandatory.json b/tests/dictionaries/40_0leadership_follower_default_value/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_mandatoryfollower_value/makedict/mandatory.json rename to tests/dictionaries/40_0leadership_follower_default_value/makedict/mandatory.json diff --git a/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/base.py b/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/base.py new file mode 100644 index 000000000..c9df4c6c7 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_4 = StrOption(name="follower1", doc="a follower with default value", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/multi.py b/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/multi.py new file mode 100644 index 000000000..a7ee15b92 --- /dev/null +++ b/tests/dictionaries/40_0leadership_follower_default_value/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_5 = StrOption(name="follower1", doc="a follower with default value", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_10 = StrOption(name="follower1", doc="a follower with default value", multi=True, default_multi="value", properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_frozenifin/__init__.py b/tests/dictionaries/40_1leadership_append_follower/__init__.py similarity index 100% rename from tests/dictionaries/10load_frozenifin/__init__.py rename to tests/dictionaries/40_1leadership_append_follower/__init__.py diff --git a/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..919145af5 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: the leader + multi: true + follower1: + description: the follower1 + follower2: + description: the follower2 diff --git a/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/01-base.yml b/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..55e010997 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +leader: + follower3: + description: the follower3 diff --git a/tests/dictionaries/40_1leadership_append_follower/makedict/after.json b/tests/dictionaries/40_1leadership_append_follower/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_1leadership_append_follower/makedict/base.json b/tests/dictionaries/40_1leadership_append_follower/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/40_1leadership_append_follower/makedict/before.json b/tests/dictionaries/40_1leadership_append_follower/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_1leadership_append_follower/makedict/mandatory.json b/tests/dictionaries/40_1leadership_append_follower/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/40_1leadership_append_follower/tiramisu/base.py b/tests/dictionaries/40_1leadership_append_follower/tiramisu/base.py new file mode 100644 index 000000000..97e9d3f74 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +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({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="follower3", doc="the follower3", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_1leadership_append_follower/tiramisu/multi.py b/tests/dictionaries/40_1leadership_append_follower/tiramisu/multi.py new file mode 100644 index 000000000..4c9257437 --- /dev/null +++ b/tests/dictionaries/40_1leadership_append_follower/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="the leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +option_7 = StrOption(name="follower3", doc="the follower3", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6, option_7], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_11 = StrOption(name="leader", doc="the leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_12 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "mandatory"})) +option_13 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +option_14 = StrOption(name="follower3", doc="the follower3", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_10 = Leadership(name="leader", doc="a leadership", children=[option_11, option_12, option_13, option_14], properties=frozenset({"basic"})) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10load_frozenifin_auto/__init__.py b/tests/dictionaries/40_2leadership_calculation_index/__init__.py similarity index 100% rename from tests/dictionaries/10load_frozenifin_auto/__init__.py rename to tests/dictionaries/40_2leadership_calculation_index/__init__.py diff --git a/tests/dictionaries/40_2leadership_calculation_index/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_2leadership_calculation_index/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..17989d181 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_index/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: # a leader + - a + - b + - c + follower1: + description: a follower + type: number + default: + type: index diff --git a/tests/dictionaries/10leadership_auto_index/makedict/after.json b/tests/dictionaries/40_2leadership_calculation_index/makedict/after.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index/makedict/after.json rename to tests/dictionaries/40_2leadership_calculation_index/makedict/after.json diff --git a/tests/dictionaries/10leadership_auto_index/makedict/base.json b/tests/dictionaries/40_2leadership_calculation_index/makedict/base.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index/makedict/base.json rename to tests/dictionaries/40_2leadership_calculation_index/makedict/base.json diff --git a/tests/dictionaries/10leadership_auto_index/makedict/before.json b/tests/dictionaries/40_2leadership_calculation_index/makedict/before.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index/makedict/before.json rename to tests/dictionaries/40_2leadership_calculation_index/makedict/before.json diff --git a/tests/dictionaries/10leadership_multi/makedict/mandatory.json b/tests/dictionaries/40_2leadership_calculation_index/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10leadership_multi/makedict/mandatory.json rename to tests/dictionaries/40_2leadership_calculation_index/makedict/mandatory.json diff --git a/tests/dictionaries/40_2leadership_calculation_index/tiramisu/base.py b/tests/dictionaries/40_2leadership_calculation_index/tiramisu/base.py new file mode 100644 index 000000000..e65225acd --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_index/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_2leadership_calculation_index/tiramisu/multi.py b/tests/dictionaries/40_2leadership_calculation_index/tiramisu/multi.py new file mode 100644 index 000000000..569f344e7 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_index/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['calc_value'], Params((ParamIndex()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_frozenifin_multiparam/__init__.py b/tests/dictionaries/40_2leadership_calculation_param_index/__init__.py similarity index 100% rename from tests/dictionaries/10load_frozenifin_multiparam/__init__.py rename to tests/dictionaries/40_2leadership_calculation_param_index/__init__.py diff --git a/tests/dictionaries/40_2leadership_calculation_param_index/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_2leadership_calculation_param_index/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..a54737c32 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_param_index/dictionaries/rougail/00-base.yml @@ -0,0 +1,19 @@ +--- +version: '1.1' +leader: + description: leadership + type: leadership + leader: # a leader + - a + - b + - c + follower1: + description: a follower + type: number + default: + type: jinja + jinja: '{{ index }}' + params: + index: + type: index + description: returns index diff --git a/tests/dictionaries/10leadership_auto_index_param/makedict/after.json b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/after.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index_param/makedict/after.json rename to tests/dictionaries/40_2leadership_calculation_param_index/makedict/after.json diff --git a/tests/dictionaries/10leadership_auto_index_param/makedict/base.json b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/base.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index_param/makedict/base.json rename to tests/dictionaries/40_2leadership_calculation_param_index/makedict/base.json diff --git a/tests/dictionaries/10leadership_auto_index_param/makedict/before.json b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/before.json similarity index 100% rename from tests/dictionaries/10leadership_auto_index_param/makedict/before.json rename to tests/dictionaries/40_2leadership_calculation_param_index/makedict/before.json diff --git a/tests/dictionaries/10load_disabled_if_in/makedict/mandatory.json b/tests/dictionaries/40_2leadership_calculation_param_index/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in/makedict/mandatory.json rename to tests/dictionaries/40_2leadership_calculation_param_index/makedict/mandatory.json diff --git a/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/base.py b/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/base.py new file mode 100644 index 000000000..ffa30ac31 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.leader.follower1'] = "{{ index }}" +option_3 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'index': ParamIndex()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = Leadership(name="leader", doc="leadership", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/multi.py b/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/multi.py new file mode 100644 index 000000000..086a21487 --- /dev/null +++ b/tests/dictionaries/40_2leadership_calculation_param_index/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.leader.follower1'] = "{{ index }}" +dict_env['default_2.rougail.leader.follower1'] = "{{ index }}" +option_4 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'index': ParamIndex()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = Leadership(name="leader", doc="leadership", children=[option_4, option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, default=["a", "b", "c"], properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = IntOption(name="follower1", doc="a follower", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leader.follower1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'index': ParamIndex()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = Leadership(name="leader", doc="leadership", children=[option_9, option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_frozenifin_variable/__init__.py b/tests/dictionaries/40_2leadership_leader_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10load_frozenifin_variable/__init__.py rename to tests/dictionaries/40_2leadership_leader_calculation/__init__.py diff --git a/tests/dictionaries/40_2leadership_leader_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_2leadership_leader_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..36f395c6f --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + default: + type: jinja + jinja: | + val1 + val2 + description: returns val1 and val2 + follower1: # a first follower + follower2: # a second follower diff --git a/tests/dictionaries/40_2leadership_leader_calculation/makedict/after.json b/tests/dictionaries/40_2leadership_leader_calculation/makedict/after.json new file mode 100644 index 000000000..425cc9db0 --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/makedict/after.json @@ -0,0 +1,29 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + } +} diff --git a/tests/dictionaries/40_2leadership_leader_calculation/makedict/base.json b/tests/dictionaries/40_2leadership_leader_calculation/makedict/base.json new file mode 100644 index 000000000..79bae0fba --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/makedict/base.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_2leadership_leader_calculation/makedict/before.json b/tests/dictionaries/40_2leadership_leader_calculation/makedict/before.json new file mode 100644 index 000000000..425cc9db0 --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/makedict/before.json @@ -0,0 +1,29 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.leader.follower1": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + }, + "rougail.leader.follower2": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + } +} diff --git a/tests/dictionaries/40_2leadership_leader_calculation/makedict/mandatory.json b/tests/dictionaries/40_2leadership_leader_calculation/makedict/mandatory.json new file mode 100644 index 000000000..9fe688717 --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.follower1", "rougail.leader.follower2", "rougail.leader.follower1", "rougail.leader.follower2"] \ No newline at end of file diff --git a/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/base.py b/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/base.py new file mode 100644 index 000000000..779cb9dca --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.leader.leader'] = "val1\nval2\n" +option_3 = StrOption(name="leader", doc="a leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="follower1", doc="a first follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="follower2", doc="a second follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/multi.py b/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/multi.py new file mode 100644 index 000000000..11b47f42c --- /dev/null +++ b/tests/dictionaries/40_2leadership_leader_calculation/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.leader.leader'] = "val1\nval2\n" +dict_env['default_2.rougail.leader.leader'] = "val1\nval2\n" +option_4 = StrOption(name="leader", doc="a leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="follower1", doc="a first follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="follower2", doc="a second follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="a leader", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="follower1", doc="a first follower", multi=True, properties=frozenset({"basic", "mandatory"})) +option_12 = StrOption(name="follower2", doc="a second follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = Leadership(name="leader", doc="a leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_frozenifnotin/__init__.py b/tests/dictionaries/40_6leadership_follower_multi/__init__.py similarity index 100% rename from tests/dictionaries/10load_frozenifnotin/__init__.py rename to tests/dictionaries/40_6leadership_follower_multi/__init__.py diff --git a/tests/dictionaries/40_6leadership_follower_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_6leadership_follower_multi/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..7bac09d76 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: '1.0' +leadership: + description: A leadership + type: leadership + leader: + description: The leader + multi: true + follower1: + description: The first follower + multi: true + follower2: + description: The second follower + multi: true + default: + - 'value' diff --git a/tests/dictionaries/40_6leadership_follower_multi/makedict/after.json b/tests/dictionaries/40_6leadership_follower_multi/makedict/after.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_6leadership_follower_multi/makedict/base.json b/tests/dictionaries/40_6leadership_follower_multi/makedict/base.json new file mode 100644 index 000000000..f41852aed --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leadership.leader": [] +} diff --git a/tests/dictionaries/40_6leadership_follower_multi/makedict/before.json b/tests/dictionaries/40_6leadership_follower_multi/makedict/before.json new file mode 100644 index 000000000..91fe36340 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leadership.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/40_6leadership_follower_multi/makedict/mandatory.json b/tests/dictionaries/40_6leadership_follower_multi/makedict/mandatory.json new file mode 100644 index 000000000..d8a4dfa31 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leadership.leader"] \ No newline at end of file diff --git a/tests/dictionaries/40_6leadership_follower_multi/tiramisu/base.py b/tests/dictionaries/40_6leadership_follower_multi/tiramisu/base.py new file mode 100644 index 000000000..06a0cc144 --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +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({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="The first follower", multi=submulti, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower2", doc="The second follower", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = Leadership(name="leadership", doc="A leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_6leadership_follower_multi/tiramisu/multi.py b/tests/dictionaries/40_6leadership_follower_multi/tiramisu/multi.py new file mode 100644 index 000000000..6f12c73ca --- /dev/null +++ b/tests/dictionaries/40_6leadership_follower_multi/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="The first follower", multi=submulti, properties=frozenset({"basic", "mandatory", "notempty"})) +option_6 = StrOption(name="follower2", doc="The second follower", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_3 = Leadership(name="leadership", doc="A leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_11 = StrOption(name="follower1", doc="The first follower", multi=submulti, properties=frozenset({"basic", "mandatory", "notempty"})) +option_12 = StrOption(name="follower2", doc="The second follower", multi=submulti, default_multi=["value"], properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_9 = Leadership(name="leadership", doc="A leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_hidden_if_empty_family/__init__.py b/tests/dictionaries/40_8calculation_boolean/__init__.py similarity index 100% rename from tests/dictionaries/10load_hidden_if_empty_family/__init__.py rename to tests/dictionaries/40_8calculation_boolean/__init__.py diff --git a/tests/dictionaries/40_8calculation_boolean/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_boolean/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..091ed9d65 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/dictionaries/rougail/00-base.yml @@ -0,0 +1,31 @@ +--- +version: '1.1' +bool: false # a boolean variable +multi1: + description: a first multi variable + type: boolean + multi: true + default: + type: jinja + jinja: | + {% if _.bool %} + True + False + {% else %} + False + {% endif %} + description: a calculation +multi2: + description: a second multi variable + type: boolean + multi: true + default: + type: jinja + jinja: | + {% if not _.bool %} + True + False + {% else %} + False + {% endif %} + description: a calculation diff --git a/tests/dictionaries/40_8calculation_boolean/makedict/after.json b/tests/dictionaries/40_8calculation_boolean/makedict/after.json new file mode 100644 index 000000000..67bd26b75 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/makedict/after.json @@ -0,0 +1,19 @@ +{ + "rougail.bool": { + "owner": "default", + "value": false + }, + "rougail.multi1": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.multi2": { + "owner": "default", + "value": [ + true, + false + ] + } +} diff --git a/tests/dictionaries/40_8calculation_boolean/makedict/base.json b/tests/dictionaries/40_8calculation_boolean/makedict/base.json new file mode 100644 index 000000000..199f470ff --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/makedict/base.json @@ -0,0 +1,10 @@ +{ + "rougail.bool": false, + "rougail.multi1": [ + false + ], + "rougail.multi2": [ + true, + false + ] +} diff --git a/tests/dictionaries/40_8calculation_boolean/makedict/before.json b/tests/dictionaries/40_8calculation_boolean/makedict/before.json new file mode 100644 index 000000000..67bd26b75 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/makedict/before.json @@ -0,0 +1,19 @@ +{ + "rougail.bool": { + "owner": "default", + "value": false + }, + "rougail.multi1": { + "owner": "default", + "value": [ + false + ] + }, + "rougail.multi2": { + "owner": "default", + "value": [ + true, + false + ] + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_fill/makedict/mandatory.json b/tests/dictionaries/40_8calculation_boolean/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_fill/makedict/mandatory.json rename to tests/dictionaries/40_8calculation_boolean/makedict/mandatory.json diff --git a/tests/dictionaries/40_8calculation_boolean/tiramisu/base.py b/tests/dictionaries/40_8calculation_boolean/tiramisu/base.py new file mode 100644 index 000000000..f511d59d7 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.multi1'] = "{% if _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +dict_env['default_rougail.multi2'] = "{% if not _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +option_2 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_3 = BoolOption(name="multi1", doc="a first multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_2)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = BoolOption(name="multi2", doc="a second multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_2)})), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_boolean/tiramisu/multi.py b/tests/dictionaries/40_8calculation_boolean/tiramisu/multi.py new file mode 100644 index 000000000..9644690e0 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.multi1'] = "{% if _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +dict_env['default_1.rougail.multi2'] = "{% if not _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +dict_env['default_2.rougail.multi1'] = "{% if _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +dict_env['default_2.rougail.multi2'] = "{% if not _.bool %}\nTrue\nFalse\n{% else %}\nFalse\n{% endif %}\n" +option_3 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_4 = BoolOption(name="multi1", doc="a first multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_3)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = BoolOption(name="multi2", doc="a second multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_3)})), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_9 = BoolOption(name="multi1", doc="a first multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.multi1"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_8)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = BoolOption(name="multi2", doc="a second multi variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.multi2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(True), '_.bool': ParamOption(option_8)})), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_hidden_if_family/__init__.py b/tests/dictionaries/40_8calculation_boolean_return_none/__init__.py similarity index 100% rename from tests/dictionaries/10load_hidden_if_family/__init__.py rename to tests/dictionaries/40_8calculation_boolean_return_none/__init__.py diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_boolean_return_none/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..d5399f707 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.1' +var1: 'yes' # a first variable +var2: + description: a second variable + type: boolean + default: + type: jinja + jinja: | + {% if rougail.var1 == 'no' %} + false + {% endif %} + description: return false if the value of var1 is "no" diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/makedict/after.json b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/after.json new file mode 100644 index 000000000..31a5e26ec --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "yes" + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/makedict/base.json b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/base.json new file mode 100644 index 000000000..78b819413 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var1": "yes", + "rougail.var2": null +} diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/makedict/before.json b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/before.json new file mode 100644 index 000000000..31a5e26ec --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": { + "owner": "default", + "value": "yes" + }, + "rougail.var2": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/makedict/mandatory.json b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/mandatory.json new file mode 100644 index 000000000..4fb69ce52 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.var2"] \ No newline at end of file diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/base.py b/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/base.py new file mode 100644 index 000000000..3e09d3619 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" +option_2 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_3 = BoolOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/multi.py b/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/multi.py new file mode 100644 index 000000000..508bd5616 --- /dev/null +++ b/tests/dictionaries/40_8calculation_boolean_return_none/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" +dict_env['default_2.rougail.var2'] = "{% if rougail.var1 == 'no' %}\nfalse\n{% endif %}\n" +option_3 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_4 = BoolOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_7 = StrOption(name="var1", doc="a first variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_8 = BoolOption(name="var2", doc="a second variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("boolean"), '__internal_multi': ParamValue(False), 'rougail.var1': ParamOption(option_7)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[option_7, option_8], properties=frozenset({"standard"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10load_hidden_if_family2/__init__.py b/tests/dictionaries/40_8calculation_integer/__init__.py similarity index 100% rename from tests/dictionaries/10load_hidden_if_family2/__init__.py rename to tests/dictionaries/40_8calculation_integer/__init__.py diff --git a/tests/dictionaries/40_8calculation_integer/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_integer/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..1ca8b2de6 --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/dictionaries/rougail/00-base.yml @@ -0,0 +1,19 @@ +--- +version: '1.1' +bool: false # a boolean variable +int1: + description: first integer variable + type: number + default: + type: jinja + jinja: | + {% if rougail.bool %}1{% else %}2{% endif %} + description: if bool returns 1 otherwise return 2 +int2: + description: second integer variable + type: number + default: + type: jinja + jinja: | + {% if not rougail.bool %}3{% else %}4{% endif %} + description: if bool returns 3 otherwise return 4 diff --git a/tests/dictionaries/40_8calculation_integer/makedict/after.json b/tests/dictionaries/40_8calculation_integer/makedict/after.json new file mode 100644 index 000000000..ccf5515ea --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/makedict/after.json @@ -0,0 +1,14 @@ +{ + "rougail.bool": { + "owner": "default", + "value": false + }, + "rougail.int1": { + "owner": "default", + "value": 2 + }, + "rougail.int2": { + "owner": "default", + "value": 3 + } +} diff --git a/tests/dictionaries/40_8calculation_integer/makedict/base.json b/tests/dictionaries/40_8calculation_integer/makedict/base.json new file mode 100644 index 000000000..260362645 --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/makedict/base.json @@ -0,0 +1,5 @@ +{ + "rougail.bool": false, + "rougail.int1": 2, + "rougail.int2": 3 +} diff --git a/tests/dictionaries/40_8calculation_integer/makedict/before.json b/tests/dictionaries/40_8calculation_integer/makedict/before.json new file mode 100644 index 000000000..ccf5515ea --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/makedict/before.json @@ -0,0 +1,14 @@ +{ + "rougail.bool": { + "owner": "default", + "value": false + }, + "rougail.int1": { + "owner": "default", + "value": 2 + }, + "rougail.int2": { + "owner": "default", + "value": 3 + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_list_optional/makedict/mandatory.json b/tests/dictionaries/40_8calculation_integer/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_list_optional/makedict/mandatory.json rename to tests/dictionaries/40_8calculation_integer/makedict/mandatory.json diff --git a/tests/dictionaries/40_8calculation_integer/tiramisu/base.py b/tests/dictionaries/40_8calculation_integer/tiramisu/base.py new file mode 100644 index 000000000..732a55f61 --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}\n" +dict_env['default_rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}\n" +option_2 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_3 = IntOption(name="int1", doc="first integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard"})) +option_4 = IntOption(name="int2", doc="second integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_2)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_integer/tiramisu/multi.py b/tests/dictionaries/40_8calculation_integer/tiramisu/multi.py new file mode 100644 index 000000000..b1ac9d7f4 --- /dev/null +++ b/tests/dictionaries/40_8calculation_integer/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}\n" +dict_env['default_1.rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}\n" +dict_env['default_2.rougail.int1'] = "{% if rougail.bool %}1{% else %}2{% endif %}\n" +dict_env['default_2.rougail.int2'] = "{% if not rougail.bool %}3{% else %}4{% endif %}\n" +option_3 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_4 = IntOption(name="int1", doc="first integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard"})) +option_5 = IntOption(name="int2", doc="second integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_3)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = BoolOption(name="bool", doc="a boolean variable", default=False, properties=frozenset({"mandatory", "standard"})) +option_9 = IntOption(name="int1", doc="first integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int1"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"mandatory", "standard"})) +option_10 = IntOption(name="int2", doc="second integer variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.int2"), '__internal_type': ParamValue("number"), '__internal_multi': ParamValue(False), 'rougail.bool': ParamOption(option_8)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_hidden_if_family3/__init__.py b/tests/dictionaries/40_8calculation_multi_variable/__init__.py similarity index 100% rename from tests/dictionaries/10load_hidden_if_family3/__init__.py rename to tests/dictionaries/40_8calculation_multi_variable/__init__.py diff --git a/tests/dictionaries/40_8calculation_multi_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_multi_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..02a7bdc8f --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +var: + description: a first variable + default: + - type: variable + variable: _.var2 + - type: variable + variable: _.var3 +var2: "no" # a second variable +var3: "yes" # a third variable diff --git a/tests/dictionaries/40_8calculation_multi_variable/makedict/after.json b/tests/dictionaries/40_8calculation_multi_variable/makedict/after.json new file mode 100644 index 000000000..7d02ada00 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/makedict/after.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "no", + "yes" + ] + }, + "rougail.var2": { + "owner": "default", + "value": "no" + }, + "rougail.var3": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/40_8calculation_multi_variable/makedict/base.json b/tests/dictionaries/40_8calculation_multi_variable/makedict/base.json new file mode 100644 index 000000000..e2e3fdd72 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/makedict/base.json @@ -0,0 +1,8 @@ +{ + "rougail.var": [ + "no", + "yes" + ], + "rougail.var2": "no", + "rougail.var3": "yes" +} diff --git a/tests/dictionaries/40_8calculation_multi_variable/makedict/before.json b/tests/dictionaries/40_8calculation_multi_variable/makedict/before.json new file mode 100644 index 000000000..7d02ada00 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/makedict/before.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "no", + "yes" + ] + }, + "rougail.var2": { + "owner": "default", + "value": "no" + }, + "rougail.var3": { + "owner": "default", + "value": "yes" + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param/makedict/mandatory.json b/tests/dictionaries/40_8calculation_multi_variable/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param/makedict/mandatory.json rename to tests/dictionaries/40_8calculation_multi_variable/makedict/mandatory.json diff --git a/tests/dictionaries/40_8calculation_multi_variable/tiramisu/base.py b/tests/dictionaries/40_8calculation_multi_variable/tiramisu/base.py new file mode 100644 index 000000000..53c1f9e6c --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var3", doc="a third variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_2 = StrOption(name="var", doc="a first variable", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_3)))), Calculation(func['calc_value'], Params((ParamOption(option_4))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_3)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_multi_variable/tiramisu/multi.py b/tests/dictionaries/40_8calculation_multi_variable/tiramisu/multi.py new file mode 100644 index 000000000..d19087df3 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var3", doc="a third variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_3 = StrOption(name="var", doc="a first variable", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_4)))), Calculation(func['calc_value'], Params((ParamOption(option_5))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="var2", doc="a second variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="var3", doc="a third variable", default="yes", properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var", doc="a first variable", multi=True, default=[Calculation(func['calc_value'], Params((ParamOption(option_9)))), Calculation(func['calc_value'], Params((ParamOption(option_10))))], default_multi=Calculation(func['calc_value'], Params((ParamOption(option_9)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership/__init__.py b/tests/dictionaries/40_8calculation_multi_variable_parent/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership/__init__.py rename to tests/dictionaries/40_8calculation_multi_variable_parent/__init__.py diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_multi_variable_parent/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..803a59d31 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: '1.1' +var: "no" # a variable +fam1: # a family + var: + description: a calculated variable + default: + type: variable + variable: __.var diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/after.json b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/after.json new file mode 100644 index 000000000..c9b111ce2 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.var": { + "owner": "default", + "value": "no" + }, + "rougail.fam1.var": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/base.json b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/base.json new file mode 100644 index 000000000..10235eb9a --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.var": "no", + "rougail.fam1.var": "no" +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/before.json b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/before.json new file mode 100644 index 000000000..c9b111ce2 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.var": { + "owner": "default", + "value": "no" + }, + "rougail.fam1.var": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/mandatory.json b/tests/dictionaries/40_8calculation_multi_variable_parent/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param2/makedict/mandatory.json rename to tests/dictionaries/40_8calculation_multi_variable_parent/makedict/mandatory.json diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/base.py b/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/base.py new file mode 100644 index 000000000..9c61c32a0 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="var", doc="a calculated variable", default=Calculation(func['calc_value'], Params((ParamOption(option_2)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = OptionDescription(name="fam1", doc="a family", children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/multi.py b/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/multi.py new file mode 100644 index 000000000..1219ab54d --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var", doc="a calculated variable", default=Calculation(func['calc_value'], Params((ParamOption(option_3)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = OptionDescription(name="fam1", doc="a family", children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="var", doc="a calculated variable", default=Calculation(func['calc_value'], Params((ParamOption(option_8)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = OptionDescription(name="fam1", doc="a family", children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership_default_multi/__init__.py b/tests/dictionaries/40_8calculation_multi_variable_parent2/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_default_multi/__init__.py rename to tests/dictionaries/40_8calculation_multi_variable_parent2/__init__.py diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/dictionaries/rougail/00-base.yml b/tests/dictionaries/40_8calculation_multi_variable_parent2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6f89d5017 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.1' +fam1: # first family + var: "no" # a variable +fam2: # second family + var: + description: a varaible + default: + type: variable + variable: __.fam1.var diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/after.json b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/after.json new file mode 100644 index 000000000..b6d7f5bda --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.fam1.var": { + "owner": "default", + "value": "no" + }, + "rougail.fam2.var": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/base.json b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/base.json new file mode 100644 index 000000000..3c5c036a0 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.fam1.var": "no", + "rougail.fam2.var": "no" +} diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/before.json b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/before.json new file mode 100644 index 000000000..b6d7f5bda --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.fam1.var": { + "owner": "default", + "value": "no" + }, + "rougail.fam2.var": { + "owner": "default", + "value": "no" + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/mandatory.json b/tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param3/makedict/mandatory.json rename to tests/dictionaries/40_8calculation_multi_variable_parent2/makedict/mandatory.json diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/base.py b/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/base.py new file mode 100644 index 000000000..b1199f5d6 --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="fam1", doc="first family", children=[option_3], properties=frozenset({"standard"})) +option_5 = StrOption(name="var", doc="a varaible", default=Calculation(func['calc_value'], Params((ParamOption(option_3)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = OptionDescription(name="fam2", doc="second family", children=[option_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/multi.py b/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/multi.py new file mode 100644 index 000000000..d7acb456d --- /dev/null +++ b/tests/dictionaries/40_8calculation_multi_variable_parent2/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = OptionDescription(name="fam1", doc="first family", children=[option_4], properties=frozenset({"standard"})) +option_6 = StrOption(name="var", doc="a varaible", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="fam2", doc="second family", children=[option_6], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_10 = StrOption(name="var", doc="a variable", default="no", properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = OptionDescription(name="fam1", doc="first family", children=[option_10], properties=frozenset({"standard"})) +option_12 = StrOption(name="var", doc="a varaible", default=Calculation(func['calc_value'], Params((ParamOption(option_10)))), properties=frozenset({"mandatory", "standard"})) +optiondescription_11 = OptionDescription(name="fam2", doc="second family", children=[option_12], properties=frozenset({"standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/40condition_base/__init__.py b/tests/dictionaries/40condition_base/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40condition_base/dictionaries/rougail/00-base.yml b/tests/dictionaries/40condition_base/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0a4f5ea86..000000000 --- a/tests/dictionaries/40condition_base/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: No change - default: non - mode_conteneur_actif1: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/40condition_base/makedict/after.json b/tests/dictionaries/40condition_base/makedict/after.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/40condition_base/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40condition_base/makedict/base.json b/tests/dictionaries/40condition_base/makedict/base.json deleted file mode 100644 index e21c64e6f..000000000 --- a/tests/dictionaries/40condition_base/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/40condition_base/makedict/before.json b/tests/dictionaries/40condition_base/makedict/before.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/40condition_base/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40condition_base/makedict/mandatory.json b/tests/dictionaries/40condition_base/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40condition_base/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40condition_base/tiramisu/base.py b/tests/dictionaries/40condition_base/tiramisu/base.py deleted file mode 100644 index 86b1e6864..000000000 --- a/tests/dictionaries/40condition_base/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40condition_base/tiramisu/multi.py b/tests/dictionaries/40condition_base/tiramisu/multi.py deleted file mode 100644 index ac66d5847..000000000 --- a/tests/dictionaries/40condition_base/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -option_7 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_13 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -option_14 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/40condition_base_add/__init__.py b/tests/dictionaries/40condition_base_add/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40condition_base_add/dictionaries/rougail/00-base.yml b/tests/dictionaries/40condition_base_add/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0a4f5ea86..000000000 --- a/tests/dictionaries/40condition_base_add/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: No change - default: non - mode_conteneur_actif1: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - condition is oui - {% endif %} diff --git a/tests/dictionaries/40condition_base_add/dictionaries/rougail/01-base.yml b/tests/dictionaries/40condition_base_add/dictionaries/rougail/01-base.yml deleted file mode 100644 index d80321891..000000000 --- a/tests/dictionaries/40condition_base_add/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - condition: - redefine: true - hidden: false - disabled: false - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/40condition_base_add/makedict/after.json b/tests/dictionaries/40condition_base_add/makedict/after.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/40condition_base_add/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40condition_base_add/makedict/base.json b/tests/dictionaries/40condition_base_add/makedict/base.json deleted file mode 100644 index e21c64e6f..000000000 --- a/tests/dictionaries/40condition_base_add/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/40condition_base_add/makedict/before.json b/tests/dictionaries/40condition_base_add/makedict/before.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/40condition_base_add/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40condition_base_add/makedict/mandatory.json b/tests/dictionaries/40condition_base_add/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40condition_base_add/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40condition_base_add/tiramisu/base.py b/tests/dictionaries/40condition_base_add/tiramisu/base.py deleted file mode 100644 index e043ba07a..000000000 --- a/tests/dictionaries/40condition_base_add/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40condition_base_add/tiramisu/multi.py b/tests/dictionaries/40condition_base_add/tiramisu/multi.py deleted file mode 100644 index 6c1e80656..000000000 --- a/tests/dictionaries/40condition_base_add/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_1.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif1'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif2'] = "{% if rougail.general.condition == \"oui\" %}\ncondition is oui\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -option_7 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -option_14 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_12)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/40empty_param/__init__.py b/tests/dictionaries/40empty_param/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40empty_param/dictionaries/rougail/00_base.yml b/tests/dictionaries/40empty_param/dictionaries/rougail/00_base.yml deleted file mode 100644 index f3768e84a..000000000 --- a/tests/dictionaries/40empty_param/dictionaries/rougail/00_base.yml +++ /dev/null @@ -1,16 +0,0 @@ -proxy_authentifie: - description: proxy authentifié - toto1: - type: port - description: Port d'écoute du proxy - mode: advanced - default: - type: jinja - jinja: '{{ null | calc_multi_condition }}' - mandatory: false - toto2: - type: port - description: Port d'écoute du proxy NTLM - mode: advanced - default: '3127' -version: '1.0' diff --git a/tests/dictionaries/40empty_param/makedict/after.json b/tests/dictionaries/40empty_param/makedict/after.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40empty_param/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40empty_param/makedict/base.json b/tests/dictionaries/40empty_param/makedict/base.json deleted file mode 100644 index 36d66f3d7..000000000 --- a/tests/dictionaries/40empty_param/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": null, - "rougail.proxy_authentifie.toto2": "3127" -} diff --git a/tests/dictionaries/40empty_param/makedict/before.json b/tests/dictionaries/40empty_param/makedict/before.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40empty_param/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40empty_param/makedict/mandatory.json b/tests/dictionaries/40empty_param/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40empty_param/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40empty_param/tiramisu/base.py b/tests/dictionaries/40empty_param/tiramisu/base.py deleted file mode 100644 index 72701606f..000000000 --- a/tests/dictionaries/40empty_param/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -option_3 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_4 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_3, option_4], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40empty_param/tiramisu/multi.py b/tests/dictionaries/40empty_param/tiramisu/multi.py deleted file mode 100644 index 0922ac04b..000000000 --- a/tests/dictionaries/40empty_param/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -dict_env['default_2.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -option_4 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_5 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_4, option_5], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_9 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_10 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_8 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_9, option_10], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"advanced"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/40empty_param2/__init__.py b/tests/dictionaries/40empty_param2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40empty_param2/dictionaries/rougail/00_base.yml b/tests/dictionaries/40empty_param2/dictionaries/rougail/00_base.yml deleted file mode 100644 index f3768e84a..000000000 --- a/tests/dictionaries/40empty_param2/dictionaries/rougail/00_base.yml +++ /dev/null @@ -1,16 +0,0 @@ -proxy_authentifie: - description: proxy authentifié - toto1: - type: port - description: Port d'écoute du proxy - mode: advanced - default: - type: jinja - jinja: '{{ null | calc_multi_condition }}' - mandatory: false - toto2: - type: port - description: Port d'écoute du proxy NTLM - mode: advanced - default: '3127' -version: '1.0' diff --git a/tests/dictionaries/40empty_param2/makedict/after.json b/tests/dictionaries/40empty_param2/makedict/after.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40empty_param2/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40empty_param2/makedict/base.json b/tests/dictionaries/40empty_param2/makedict/base.json deleted file mode 100644 index 36d66f3d7..000000000 --- a/tests/dictionaries/40empty_param2/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": null, - "rougail.proxy_authentifie.toto2": "3127" -} diff --git a/tests/dictionaries/40empty_param2/makedict/before.json b/tests/dictionaries/40empty_param2/makedict/before.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40empty_param2/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40empty_param2/makedict/mandatory.json b/tests/dictionaries/40empty_param2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40empty_param2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40empty_param2/tiramisu/base.py b/tests/dictionaries/40empty_param2/tiramisu/base.py deleted file mode 100644 index 72701606f..000000000 --- a/tests/dictionaries/40empty_param2/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -option_3 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_4 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_3, option_4], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40empty_param2/tiramisu/multi.py b/tests/dictionaries/40empty_param2/tiramisu/multi.py deleted file mode 100644 index 0922ac04b..000000000 --- a/tests/dictionaries/40empty_param2/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -dict_env['default_2.rougail.proxy_authentifie.toto1'] = "{{ null | calc_multi_condition }}" -option_4 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_5 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_4, option_5], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_9 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_10 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_8 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_9, option_10], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"advanced"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/40family_underscode/dictionaries/rougail/00-base.yml b/tests/dictionaries/40family_underscode/dictionaries/rougail/00-base.yml deleted file mode 100644 index ea50b9c74..000000000 --- a/tests/dictionaries/40family_underscode/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -version: '1.0' -my_family: - _type: family - _description: This is a great family - _help: This is a great family - _mode: basic - _hidden: true - _disabled: true - type: - type: family - my_variable: - description: - description: This is a other great family - my_variable: - help: - help: This is a other great family - my_variable: - mode: - mode: advanced - my_variable: - mandatory: false - hidden: - hidden: true - my_variable: - disabled: - disabled: true - my_variable: diff --git a/tests/dictionaries/40family_underscode/makedict/after.json b/tests/dictionaries/40family_underscode/makedict/after.json deleted file mode 100644 index 0967ef424..000000000 --- a/tests/dictionaries/40family_underscode/makedict/after.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/dictionaries/40family_underscode/makedict/base.json b/tests/dictionaries/40family_underscode/makedict/base.json deleted file mode 100644 index 0967ef424..000000000 --- a/tests/dictionaries/40family_underscode/makedict/base.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/dictionaries/40family_underscode/makedict/before.json b/tests/dictionaries/40family_underscode/makedict/before.json deleted file mode 100644 index 0967ef424..000000000 --- a/tests/dictionaries/40family_underscode/makedict/before.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/tests/dictionaries/40family_underscode/makedict/mandatory.json b/tests/dictionaries/40family_underscode/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40family_underscode/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40family_unique_not_same_family/__init__.py b/tests/dictionaries/40family_unique_not_same_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40family_unique_not_same_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/40family_unique_not_same_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index ddc41f041..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - general: - my_variable: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/40family_unique_not_same_family/errno_55 b/tests/dictionaries/40family_unique_not_same_family/errno_55 deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40family_unique_not_same_family/makedict/after.json b/tests/dictionaries/40family_unique_not_same_family/makedict/after.json deleted file mode 100644 index 4c3efe8ae..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/40family_unique_not_same_family/makedict/base.json b/tests/dictionaries/40family_unique_not_same_family/makedict/base.json deleted file mode 100644 index ae2261e1d..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.general.my_variable": null -} diff --git a/tests/dictionaries/40family_unique_not_same_family/makedict/before.json b/tests/dictionaries/40family_unique_not_same_family/makedict/before.json deleted file mode 100644 index 4c3efe8ae..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.general.my_variable": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/40family_unique_not_same_family/makedict/mandatory.json b/tests/dictionaries/40family_unique_not_same_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40family_unique_not_same_family/tiramisu/base.py b/tests/dictionaries/40family_unique_not_same_family/tiramisu/base.py deleted file mode 100644 index 9ab6374cd..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40family_unique_not_same_family/tiramisu/multi.py b/tests/dictionaries/40family_unique_not_same_family/tiramisu/multi.py deleted file mode 100644 index a0bff2b09..000000000 --- a/tests/dictionaries/40family_unique_not_same_family/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_5 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="general", doc="general", children=[option_5], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[optiondescription_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/40ifin_leadership/__init__.py b/tests/dictionaries/40ifin_leadership/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_leadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index 820cd2af9..000000000 --- a/tests/dictionaries/40ifin_leadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: condition - default: oui - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - mandatory: false - follower1: - type: string - description: follower1 - disabled: - type: jinja - jinja: '{% if rougail.general.condition == "oui" %}true{% else %}false{% endif - %}' - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/40ifin_leadership/makedict/after.json b/tests/dictionaries/40ifin_leadership/makedict/after.json deleted file mode 100644 index becfaca7d..000000000 --- a/tests/dictionaries/40ifin_leadership/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "oui" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/40ifin_leadership/makedict/base.json b/tests/dictionaries/40ifin_leadership/makedict/base.json deleted file mode 100644 index 2d556ddec..000000000 --- a/tests/dictionaries/40ifin_leadership/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.condition": "oui", - "rougail.general.leader.leader": [] -} diff --git a/tests/dictionaries/40ifin_leadership/makedict/before.json b/tests/dictionaries/40ifin_leadership/makedict/before.json deleted file mode 100644 index becfaca7d..000000000 --- a/tests/dictionaries/40ifin_leadership/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "oui" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/40ifin_leadership/makedict/mandatory.json b/tests/dictionaries/40ifin_leadership/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_leadership/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_leadership/tiramisu/base.py b/tests/dictionaries/40ifin_leadership/tiramisu/base.py deleted file mode 100644 index c2c5a9a8f..000000000 --- a/tests/dictionaries/40ifin_leadership/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.leader.follower1'] = "{% if rougail.general.condition == \"oui\" %}true{% else %}false{% endif %}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition", doc="condition", default="oui", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_7 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_5 = Leadership(name="leader", doc="leader", children=[option_6, option_7, option_8], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40ifin_leadership/tiramisu/multi.py b/tests/dictionaries/40ifin_leadership/tiramisu/multi.py deleted file mode 100644 index e43a51d9e..000000000 --- a/tests/dictionaries/40ifin_leadership/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.leader.follower1'] = "{% if rougail.general.condition == \"oui\" %}true{% else %}false{% endif %}" -dict_env['disabled_2.rougail.general.leader.follower1'] = "{% if rougail.general.condition == \"oui\" %}true{% else %}false{% endif %}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition", doc="condition", default="oui", properties=frozenset({"mandatory", "standard"})) -option_7 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_8 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -option_9 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_6 = Leadership(name="leader", doc="leader", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, optiondescription_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_14 = StrOption(name="condition", doc="condition", default="oui", properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"standard"})) -option_17 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.leader.follower1"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.condition': ParamOption(option_14)}), help_function=func['jinja_to_property_help'])})) -option_18 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) -optiondescription_15 = Leadership(name="leader", doc="leader", children=[option_16, option_17, option_18], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="general", doc="general", children=[option_13, option_14, optiondescription_15], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_12], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/40ifin_leadershipauto/__init__.py b/tests/dictionaries/40ifin_leadershipauto/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_leadershipauto/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_leadershipauto/dictionaries/rougail/00-base.yml deleted file mode 100644 index f9161863a..000000000 --- a/tests/dictionaries/40ifin_leadershipauto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: condition - default: oui - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - default: - - a - follower1: - type: string - description: follower1 - hidden: true - disabled: - type: jinja - jinja: '{% if rougail.general.condition == "oui" %} - - condition is oui - - {% endif %} - - ' - default: - type: jinja - jinja: '{{ "valfill" | calc_val }}' - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false diff --git a/tests/dictionaries/40ifin_leadershipauto/makedict/mandatory.json b/tests/dictionaries/40ifin_leadershipauto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_leadershipauto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/__init__.py b/tests/dictionaries/40ifin_leadershipauto_follower/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_leadershipauto_follower/dictionaries/rougail/00-base.yml deleted file mode 100644 index 0151b9688..000000000 --- a/tests/dictionaries/40ifin_leadershipauto_follower/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: condition - default: oui - leader: - description: leader - type: leadership - leader: - type: string - description: leader - multi: true - default: - - a - - b - follower1: - type: string - description: follower1 - disabled: - type: jinja - jinja: '{% if rougail.general.leader.leader == "a" %} - - the value of "leader" is "a" - - {% endif %} - - ' - default: - type: jinja - jinja: '{{ calc_val() }}' - mandatory: false - follower2: - type: string - description: follower2 - mandatory: false diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/after.json b/tests/dictionaries/40ifin_leadershipauto_follower/makedict/after.json deleted file mode 100644 index 761b3c38a..000000000 --- a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/after.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "oui" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "a", - "b" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "error", - "default" - ], - "value": [ - "cannot access to option \"follower1\" because has property \"disabled\" (the value of \"leader\" is \"a\")", - null - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default", - "default" - ], - "value": [ - null, - null - ] - } -} diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/before.json b/tests/dictionaries/40ifin_leadershipauto_follower/makedict/before.json deleted file mode 100644 index 761b3c38a..000000000 --- a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/before.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "oui" - }, - "rougail.general.leader.leader": { - "owner": "default", - "value": [ - "a", - "b" - ] - }, - "rougail.general.leader.follower1": { - "owner": [ - "error", - "default" - ], - "value": [ - "cannot access to option \"follower1\" because has property \"disabled\" (the value of \"leader\" is \"a\")", - null - ] - }, - "rougail.general.leader.follower2": { - "owner": [ - "default", - "default" - ], - "value": [ - null, - null - ] - } -} diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/mandatory.json b/tests/dictionaries/40ifin_leadershipauto_follower/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_multi/__init__.py b/tests/dictionaries/40ifin_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index 53dc6d06f..000000000 --- a/tests/dictionaries/40ifin_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -general2: - hidden: true - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - mode_conteneur_actif3: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general2.mode_conteneur_actif2 == "oui" %} - mode_conteneur_actif2 is oui - {% endif %} diff --git a/tests/dictionaries/40ifin_multi/makedict/after.json b/tests/dictionaries/40ifin_multi/makedict/after.json deleted file mode 100644 index a4edb4943..000000000 --- a/tests/dictionaries/40ifin_multi/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40ifin_multi/makedict/base.json b/tests/dictionaries/40ifin_multi/makedict/base.json deleted file mode 100644 index 79c299489..000000000 --- a/tests/dictionaries/40ifin_multi/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general2.mode_conteneur_actif2": "non", - "rougail.general2.mode_conteneur_actif3": "non" -} diff --git a/tests/dictionaries/40ifin_multi/makedict/before.json b/tests/dictionaries/40ifin_multi/makedict/before.json deleted file mode 100644 index a4edb4943..000000000 --- a/tests/dictionaries/40ifin_multi/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/40ifin_multi/makedict/mandatory.json b/tests/dictionaries/40ifin_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_multi/tiramisu/base.py b/tests/dictionaries/40ifin_multi/tiramisu/base.py deleted file mode 100644 index a814f3760..000000000 --- a/tests/dictionaries/40ifin_multi/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="general2", doc="general2", children=[option_5, option_6], properties=frozenset({"hidden", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40ifin_multi/tiramisu/multi.py b/tests/dictionaries/40ifin_multi/tiramisu/multi.py deleted file mode 100644 index fd9034202..000000000 --- a/tests/dictionaries/40ifin_multi/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_6)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="general2", doc="general2", children=[option_6, option_7], properties=frozenset({"hidden", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_14 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_12 = OptionDescription(name="general2", doc="general2", children=[option_13, option_14], properties=frozenset({"hidden", "standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/40ifin_multi2/__init__.py b/tests/dictionaries/40ifin_multi2/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_multi2/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_multi2/dictionaries/rougail/00-base.yml deleted file mode 100644 index 52eeaeb3f..000000000 --- a/tests/dictionaries/40ifin_multi2/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -general2: - hidden: true - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: oui - mode_conteneur_actif3: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general2.mode_conteneur_actif2 == "oui" %} - mode_conteneur_actif2 is oui - {% endif %} diff --git a/tests/dictionaries/40ifin_multi2/makedict/after.json b/tests/dictionaries/40ifin_multi2/makedict/after.json deleted file mode 100644 index 4efa6e2f4..000000000 --- a/tests/dictionaries/40ifin_multi2/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/40ifin_multi2/makedict/base.json b/tests/dictionaries/40ifin_multi2/makedict/base.json deleted file mode 100644 index ec1b5d8c2..000000000 --- a/tests/dictionaries/40ifin_multi2/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general2.mode_conteneur_actif2": "oui" -} diff --git a/tests/dictionaries/40ifin_multi2/makedict/before.json b/tests/dictionaries/40ifin_multi2/makedict/before.json deleted file mode 100644 index 4efa6e2f4..000000000 --- a/tests/dictionaries/40ifin_multi2/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/40ifin_multi2/makedict/mandatory.json b/tests/dictionaries/40ifin_multi2/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_multi2/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_multi2/tiramisu/base.py b/tests/dictionaries/40ifin_multi2/tiramisu/base.py deleted file mode 100644 index 4808c62ca..000000000 --- a/tests/dictionaries/40ifin_multi2/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_5)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="general2", doc="general2", children=[option_5, option_6], properties=frozenset({"hidden", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40ifin_multi2/tiramisu/multi.py b/tests/dictionaries/40ifin_multi2/tiramisu/multi.py deleted file mode 100644 index c06ef8330..000000000 --- a/tests/dictionaries/40ifin_multi2/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general2.mode_conteneur_actif3'] = "{% if rougail.general2.mode_conteneur_actif2 == \"oui\" %}\nmode_conteneur_actif2 is oui\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_7 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_6)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="general2", doc="general2", children=[option_6, option_7], properties=frozenset({"hidden", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_14 = StrOption(name="mode_conteneur_actif3", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general2.mode_conteneur_actif3"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif2': ParamOption(option_13)}), help_function=func['jinja_to_property_help'])})) -optiondescription_12 = OptionDescription(name="general2", doc="general2", children=[option_13, option_14], properties=frozenset({"hidden", "standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/40ifin_validenum/__init__.py b/tests/dictionaries/40ifin_validenum/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40ifin_validenum/dictionaries/rougail/00-base.yml b/tests/dictionaries/40ifin_validenum/dictionaries/rougail/00-base.yml deleted file mode 100644 index 7ef259366..000000000 --- a/tests/dictionaries/40ifin_validenum/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general2.mode_conteneur_actif3 == "d" %} - mode_conteneur_actif3 is d - {% endif %} -general2: - hidden: true - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general2.mode_conteneur_actif3 != "d" %} - mode_conteneur_actif3 is d - {% endif %} - mode_conteneur_actif3: - type: choice - description: No change - default: a - choices: - - a - - b - - c diff --git a/tests/dictionaries/40ifin_validenum/makedict/after.json b/tests/dictionaries/40ifin_validenum/makedict/after.json deleted file mode 100644 index d06f94067..000000000 --- a/tests/dictionaries/40ifin_validenum/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/40ifin_validenum/makedict/base.json b/tests/dictionaries/40ifin_validenum/makedict/base.json deleted file mode 100644 index 16d3139d1..000000000 --- a/tests/dictionaries/40ifin_validenum/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general2.mode_conteneur_actif3": "a" -} diff --git a/tests/dictionaries/40ifin_validenum/makedict/before.json b/tests/dictionaries/40ifin_validenum/makedict/before.json deleted file mode 100644 index d06f94067..000000000 --- a/tests/dictionaries/40ifin_validenum/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif3": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/40ifin_validenum/makedict/mandatory.json b/tests/dictionaries/40ifin_validenum/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40ifin_validenum/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40ifin_validenum/tiramisu/base.py b/tests/dictionaries/40ifin_validenum/tiramisu/base.py deleted file mode 100644 index 1b47c49e7..000000000 --- a/tests/dictionaries/40ifin_validenum/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general.mode_conteneur_actif'] = "{% if rougail.general2.mode_conteneur_actif3 == \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -dict_env['disabled_rougail.general2.mode_conteneur_actif2'] = "{% if rougail.general2.mode_conteneur_actif3 != \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -option_6 = ChoiceOption(name="mode_conteneur_actif3", doc="No change", values=("a", "b", "c"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_6)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general2.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_6)}), help_function=func['jinja_to_property_help'])})) -optiondescription_4 = OptionDescription(name="general2", doc="general2", children=[option_5, option_6], properties=frozenset({"hidden", "standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40ifin_validenum/tiramisu/multi.py b/tests/dictionaries/40ifin_validenum/tiramisu/multi.py deleted file mode 100644 index 4a4c230a8..000000000 --- a/tests/dictionaries/40ifin_validenum/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general.mode_conteneur_actif'] = "{% if rougail.general2.mode_conteneur_actif3 == \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -dict_env['disabled_1.rougail.general2.mode_conteneur_actif2'] = "{% if rougail.general2.mode_conteneur_actif3 != \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -dict_env['disabled_2.rougail.general.mode_conteneur_actif'] = "{% if rougail.general2.mode_conteneur_actif3 == \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -dict_env['disabled_2.rougail.general2.mode_conteneur_actif2'] = "{% if rougail.general2.mode_conteneur_actif3 != \"d\" %}\nmode_conteneur_actif3 is d\n{% endif %}\n" -option_7 = ChoiceOption(name="mode_conteneur_actif3", doc="No change", values=("a", "b", "c"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general2.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_7)}), help_function=func['jinja_to_property_help'])})) -optiondescription_5 = OptionDescription(name="general2", doc="general2", children=[option_6, option_7], properties=frozenset({"hidden", "standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_14 = ChoiceOption(name="mode_conteneur_actif3", doc="No change", values=("a", "b", "c"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_14)}), help_function=func['jinja_to_property_help'])})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11], properties=frozenset({"standard"})) -option_13 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general2.mode_conteneur_actif2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general2.mode_conteneur_actif3': ParamOption(option_14)}), help_function=func['jinja_to_property_help'])})) -optiondescription_12 = OptionDescription(name="general2", doc="general2", children=[option_13, option_14], properties=frozenset({"hidden", "standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10, optiondescription_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/40space_param/__init__.py b/tests/dictionaries/40space_param/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/40space_param/dictionaries/rougail/00_base.yml b/tests/dictionaries/40space_param/dictionaries/rougail/00_base.yml deleted file mode 100644 index f167567e5..000000000 --- a/tests/dictionaries/40space_param/dictionaries/rougail/00_base.yml +++ /dev/null @@ -1,16 +0,0 @@ -proxy_authentifie: - description: proxy authentifié - toto1: - type: port - description: Port d'écoute du proxy - mode: advanced - default: - type: jinja - jinja: '{{ " " | calc_multi_condition }}' - mandatory: false - toto2: - type: port - description: Port d'écoute du proxy NTLM - mode: advanced - default: '3127' -version: '1.0' diff --git a/tests/dictionaries/40space_param/makedict/after.json b/tests/dictionaries/40space_param/makedict/after.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40space_param/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40space_param/makedict/base.json b/tests/dictionaries/40space_param/makedict/base.json deleted file mode 100644 index 36d66f3d7..000000000 --- a/tests/dictionaries/40space_param/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": null, - "rougail.proxy_authentifie.toto2": "3127" -} diff --git a/tests/dictionaries/40space_param/makedict/before.json b/tests/dictionaries/40space_param/makedict/before.json deleted file mode 100644 index b88ddc479..000000000 --- a/tests/dictionaries/40space_param/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.proxy_authentifie.toto1": { - "owner": "default", - "value": null - }, - "rougail.proxy_authentifie.toto2": { - "owner": "default", - "value": "3127" - } -} diff --git a/tests/dictionaries/40space_param/makedict/mandatory.json b/tests/dictionaries/40space_param/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/40space_param/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/40space_param/tiramisu/base.py b/tests/dictionaries/40space_param/tiramisu/base.py deleted file mode 100644 index a6d031e6c..000000000 --- a/tests/dictionaries/40space_param/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.proxy_authentifie.toto1'] = "{{ \" \" | calc_multi_condition }}" -option_3 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_4 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_2 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_3, option_4], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40space_param/tiramisu/multi.py b/tests/dictionaries/40space_param/tiramisu/multi.py deleted file mode 100644 index 320d20c8c..000000000 --- a/tests/dictionaries/40space_param/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.proxy_authentifie.toto1'] = "{{ \" \" | calc_multi_condition }}" -dict_env['default_2.rougail.proxy_authentifie.toto1'] = "{{ \" \" | calc_multi_condition }}" -option_4 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_5 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_3 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_4, option_5], properties=frozenset({"advanced"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"advanced"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"advanced"})) -option_9 = PortOption(name="toto1", doc="Port d'écoute du proxy", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.proxy_authentifie.toto1"), '__internal_type': ParamValue("port"), '__internal_multi': ParamValue(False)})), allow_private=True, properties=frozenset({"advanced"})) -option_10 = PortOption(name="toto2", doc="Port d'écoute du proxy NTLM", default="3127", allow_private=True, properties=frozenset({"advanced", "mandatory"})) -optiondescription_8 = OptionDescription(name="proxy_authentifie", doc="proxy authentifié", children=[option_9, option_10], properties=frozenset({"advanced"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"advanced"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"advanced"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/40version_underscode/dictionaries/rougail/00-base.yml b/tests/dictionaries/40version_underscode/dictionaries/rougail/00-base.yml deleted file mode 100644 index cddd9c701..000000000 --- a/tests/dictionaries/40version_underscode/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -_version: '1.0' -version: diff --git a/tests/dictionaries/40version_underscode/tiramisu/base.py b/tests/dictionaries/40version_underscode/tiramisu/base.py deleted file mode 100644 index 60144f6be..000000000 --- a/tests/dictionaries/40version_underscode/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="version", doc="version", properties=frozenset({"basic", "mandatory"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/40version_underscode/tiramisu/multi.py b/tests/dictionaries/40version_underscode/tiramisu/multi.py deleted file mode 100644 index c6276640d..000000000 --- a/tests/dictionaries/40version_underscode/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="version", doc="version", properties=frozenset({"basic", "mandatory"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_6 = StrOption(name="version", doc="version", properties=frozenset({"basic", "mandatory"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"basic"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10load_leadership_default_multi_auto/__init__.py b/tests/dictionaries/41_0choice_leader/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_default_multi_auto/__init__.py rename to tests/dictionaries/41_0choice_leader/__init__.py diff --git a/tests/dictionaries/41_0choice_leader/dictionaries/rougail/00-base.yml b/tests/dictionaries/41_0choice_leader/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..26b5e3c19 --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: '1.0' +leader: + description: The leadership + type: leadership + leader: + description: The leader + multi: true + mandatory: false + follower1: + type: choice + description: A follower + choices: + - a + - b + - c diff --git a/tests/dictionaries/41_0choice_leader/makedict/after.json b/tests/dictionaries/41_0choice_leader/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/41_0choice_leader/makedict/base.json b/tests/dictionaries/41_0choice_leader/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/41_0choice_leader/makedict/before.json b/tests/dictionaries/41_0choice_leader/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/mandatory.json b/tests/dictionaries/41_0choice_leader/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param4/makedict/mandatory.json rename to tests/dictionaries/41_0choice_leader/makedict/mandatory.json diff --git a/tests/dictionaries/41_0choice_leader/tiramisu/base.py b/tests/dictionaries/41_0choice_leader/tiramisu/base.py new file mode 100644 index 000000000..56bdea646 --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +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"})) +option_4 = ChoiceOption(name="follower1", doc="A follower", values=("a", "b", "c"), multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="The leadership", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/41_0choice_leader/tiramisu/multi.py b/tests/dictionaries/41_0choice_leader/tiramisu/multi.py new file mode 100644 index 000000000..6bba4c2ee --- /dev/null +++ b/tests/dictionaries/41_0choice_leader/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"standard"})) +option_5 = ChoiceOption(name="follower1", doc="A follower", values=("a", "b", "c"), multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="The leadership", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="The leader", multi=True, properties=frozenset({"standard"})) +option_10 = ChoiceOption(name="follower1", doc="A follower", values=("a", "b", "c"), multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_8 = Leadership(name="leader", doc="The leadership", children=[option_9, option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership_default_submulti/__init__.py b/tests/dictionaries/44_0leadership_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_default_submulti/__init__.py rename to tests/dictionaries/44_0leadership_hidden/__init__.py diff --git a/tests/dictionaries/44_0leadership_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_0leadership_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..89eff44a0 --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,8 @@ +--- +version: '1.1' +leader: + description: a leadership + hidden: true + type: leadership + leader: [] # a leader + follower: # a follower diff --git a/tests/dictionaries/44_0leadership_hidden/makedict/after.json b/tests/dictionaries/44_0leadership_hidden/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_0leadership_hidden/makedict/base.json b/tests/dictionaries/44_0leadership_hidden/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_0leadership_hidden/makedict/before.json b/tests/dictionaries/44_0leadership_hidden/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_0leadership_hidden/makedict/mandatory.json b/tests/dictionaries/44_0leadership_hidden/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_0leadership_hidden/tiramisu/base.py b/tests/dictionaries/44_0leadership_hidden/tiramisu/base.py new file mode 100644 index 000000000..5f75499b6 --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_4 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"basic", "hidden"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_0leadership_hidden/tiramisu/multi.py b/tests/dictionaries/44_0leadership_hidden/tiramisu/multi.py new file mode 100644 index 000000000..3ba4dc7cd --- /dev/null +++ b/tests/dictionaries/44_0leadership_hidden/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic", "hidden"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_10 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"basic", "hidden"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership_default_submulti_auto/__init__.py b/tests/dictionaries/44_0leadership_leader_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_default_submulti_auto/__init__.py rename to tests/dictionaries/44_0leadership_leader_hidden/__init__.py diff --git a/tests/dictionaries/44_0leadership_leader_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_0leadership_leader_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..ebec5e4c5 --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + hidden: true + follower: # a follower diff --git a/tests/dictionaries/44_0leadership_leader_hidden/makedict/after.json b/tests/dictionaries/44_0leadership_leader_hidden/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_0leadership_leader_hidden/makedict/base.json b/tests/dictionaries/44_0leadership_leader_hidden/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_0leadership_leader_hidden/makedict/before.json b/tests/dictionaries/44_0leadership_leader_hidden/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_0leadership_leader_hidden/makedict/mandatory.json b/tests/dictionaries/44_0leadership_leader_hidden/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/base.py b/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/base.py new file mode 100644 index 000000000..5f75499b6 --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_4 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"basic", "hidden"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/multi.py b/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/multi.py new file mode 100644 index 000000000..3ba4dc7cd --- /dev/null +++ b/tests/dictionaries/44_0leadership_leader_hidden/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic", "hidden"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_10 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"basic", "hidden"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership_defaultmulti_leader/__init__.py b/tests/dictionaries/44_1leadership_append_hidden_follower/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_defaultmulti_leader/__init__.py rename to tests/dictionaries/44_1leadership_append_hidden_follower/__init__.py diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..b8d035cf9 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + hidden: true + follower1: # the follower1 + follower2: # the follower2 diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/01-base.yml b/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..396a466f5 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/dictionaries/rougail/01-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +leader: + follower3: # follower3 diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/after.json b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/base.json b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/before.json b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/mandatory.json b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/base.py b/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/base.py new file mode 100644 index 000000000..aa041f5a4 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_5 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_6 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4, option_5, option_6], properties=frozenset({"basic", "hidden"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/multi.py b/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/multi.py new file mode 100644 index 000000000..6a50a9e76 --- /dev/null +++ b/tests/dictionaries/44_1leadership_append_hidden_follower/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_6 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_7 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5, option_6, option_7], properties=frozenset({"basic", "hidden"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_11 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) +option_12 = StrOption(name="follower1", doc="the follower1", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_13 = StrOption(name="follower2", doc="the follower2", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +option_14 = StrOption(name="follower3", doc="follower3", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_10 = Leadership(name="leader", doc="a leadership", children=[option_11, option_12, option_13, option_14], properties=frozenset({"basic", "hidden"})) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10load_leadership_description/__init__.py b/tests/dictionaries/44_4disabled_calcultion_follower/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_description/__init__.py rename to tests/dictionaries/44_4disabled_calcultion_follower/__init__.py diff --git a/tests/dictionaries/44_4disabled_calcultion_follower/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_4disabled_calcultion_follower/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..404cbf90d --- /dev/null +++ b/tests/dictionaries/44_4disabled_calcultion_follower/dictionaries/rougail/00-base.yml @@ -0,0 +1,19 @@ +--- +version: '1.1' +condition: true # a condition +leader: + description: a leadership + type: leadership + leader: + description: aleader + default: + - a + follower: + description: a follower + disabled: + type: jinja + jinja: | + {% if rougail.condition == "yes" %} + condition is yes + {% endif %} + description: if condition is yes diff --git a/tests/dictionaries/40ifin_leadershipauto/makedict/after.json b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/after.json similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/makedict/after.json rename to tests/dictionaries/44_4disabled_calcultion_follower/makedict/after.json diff --git a/tests/dictionaries/40ifin_leadershipauto/makedict/base.json b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/base.json similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/makedict/base.json rename to tests/dictionaries/44_4disabled_calcultion_follower/makedict/base.json diff --git a/tests/dictionaries/40ifin_leadershipauto/makedict/before.json b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/before.json similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/makedict/before.json rename to tests/dictionaries/44_4disabled_calcultion_follower/makedict/before.json diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/mandatory.json b/tests/dictionaries/44_4disabled_calcultion_follower/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param5/makedict/mandatory.json rename to tests/dictionaries/44_4disabled_calcultion_follower/makedict/mandatory.json diff --git a/tests/dictionaries/40ifin_leadershipauto/result/etc/mailname b/tests/dictionaries/44_4disabled_calcultion_follower/result/etc/mailname similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/result/etc/mailname rename to tests/dictionaries/44_4disabled_calcultion_follower/result/etc/mailname diff --git a/tests/dictionaries/40ifin_leadershipauto/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/44_4disabled_calcultion_follower/result/tmpfiles.d/0rougail.conf similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/result/tmpfiles.d/0rougail.conf rename to tests/dictionaries/44_4disabled_calcultion_follower/result/tmpfiles.d/0rougail.conf diff --git a/tests/dictionaries/40ifin_leadershipauto/tiramisu/base.py b/tests/dictionaries/44_4disabled_calcultion_follower/tiramisu/base.py similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/tiramisu/base.py rename to tests/dictionaries/44_4disabled_calcultion_follower/tiramisu/base.py diff --git a/tests/dictionaries/40ifin_leadershipauto/tiramisu/multi.py b/tests/dictionaries/44_4disabled_calcultion_follower/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/tiramisu/multi.py rename to tests/dictionaries/44_4disabled_calcultion_follower/tiramisu/multi.py diff --git a/tests/dictionaries/40ifin_leadershipauto/tmpl/mailname b/tests/dictionaries/44_4disabled_calcultion_follower/tmpl/mailname similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto/tmpl/mailname rename to tests/dictionaries/44_4disabled_calcultion_follower/tmpl/mailname diff --git a/tests/dictionaries/10load_leadership_name/__init__.py b/tests/dictionaries/44_4leadership_mandatory/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_name/__init__.py rename to tests/dictionaries/44_4leadership_mandatory/__init__.py diff --git a/tests/dictionaries/44_4leadership_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_4leadership_mandatory/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..bd69e701d --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + mandatory: true + follower1: + description: a follower + mandatory: false diff --git a/tests/dictionaries/44_4leadership_mandatory/makedict/after.json b/tests/dictionaries/44_4leadership_mandatory/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_4leadership_mandatory/makedict/base.json b/tests/dictionaries/44_4leadership_mandatory/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_4leadership_mandatory/makedict/before.json b/tests/dictionaries/44_4leadership_mandatory/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_4leadership_mandatory/makedict/mandatory.json b/tests/dictionaries/44_4leadership_mandatory/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_4leadership_mandatory/tiramisu/base.py b/tests/dictionaries/44_4leadership_mandatory/tiramisu/base.py new file mode 100644 index 000000000..ef60992ce --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"standard"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_4leadership_mandatory/tiramisu/multi.py b/tests/dictionaries/44_4leadership_mandatory/tiramisu/multi.py new file mode 100644 index 000000000..ca7254c12 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"standard"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_10 = StrOption(name="follower1", doc="a follower", multi=True, properties=frozenset({"standard"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_leadership_submulti/__init__.py b/tests/dictionaries/44_4leadership_mandatory_follower/__init__.py similarity index 100% rename from tests/dictionaries/10load_leadership_submulti/__init__.py rename to tests/dictionaries/44_4leadership_mandatory_follower/__init__.py diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_4leadership_mandatory_follower/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..1273a3d70 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.0' +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + mandatory: false + follower: + description: a follower + mandatory: true diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/makedict/after.json b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/after.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/after.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/makedict/base.json b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/base.json new file mode 100644 index 000000000..772473e91 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/base.json @@ -0,0 +1,3 @@ +{ + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/makedict/before.json b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/before.json new file mode 100644 index 000000000..8e2cc2c2a --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/before.json @@ -0,0 +1,6 @@ +{ + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/mandatory.json b/tests/dictionaries/44_4leadership_mandatory_follower/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param6/makedict/mandatory.json rename to tests/dictionaries/44_4leadership_mandatory_follower/makedict/mandatory.json diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/base.py b/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/base.py new file mode 100644 index 000000000..883dc7eb1 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_4 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="a leadership", children=[option_3, option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/multi.py b/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/multi.py new file mode 100644 index 000000000..4a8dda279 --- /dev/null +++ b/tests/dictionaries/44_4leadership_mandatory_follower/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"standard"})) +option_10 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_8 = Leadership(name="leader", doc="a leadership", children=[option_9, option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_mandatory_relative_path/__init__.py b/tests/dictionaries/44_5leadership_leader_hidden_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10load_mandatory_relative_path/__init__.py rename to tests/dictionaries/44_5leadership_leader_hidden_calculation/__init__.py diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_5leadership_leader_hidden_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..a5666061c --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,17 @@ +--- +version: '1.1' +condition: 'no' # a condition +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + hidden: + type: jinja + jinja: | + {% if __.condition == "no" %} + condition is no + {% endif %} + description: if condition is no + follower: # a follower diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/after.json b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/after.json new file mode 100644 index 000000000..d124c51d1 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/base.json b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/base.json new file mode 100644 index 000000000..8650b7768 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "no", + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/before.json b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/before.json new file mode 100644 index 000000000..d124c51d1 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "no" + }, + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/mandatory.json b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/base.py b/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/base.py new file mode 100644 index 000000000..5ca451b33 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['frozen_rougail.leader.follower'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['hidden_rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", "notempty", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/multi.py b/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/multi.py new file mode 100644 index 000000000..ad82d2381 --- /dev/null +++ b/tests/dictionaries/44_5leadership_leader_hidden_calculation/tiramisu/multi.py @@ -0,0 +1,26 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_1.rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['frozen_1.rougail.leader.follower'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['hidden_1.rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['frozen_2.rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['frozen_2.rougail.leader.follower'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +dict_env['hidden_2.rougail.leader.leader'] = "{% if __.condition == \"no\" %}\ncondition is no\n{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", "notempty", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +option_6 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = Leadership(name="leader", doc="a leadership", children=[option_5, option_6], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="condition", doc="a condition", default="no", properties=frozenset({"mandatory", "standard"})) +option_11 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", "notempty", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) +option_12 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) +optiondescription_10 = Leadership(name="leader", doc="a leadership", children=[option_11, option_12], properties=frozenset({"basic", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.leader.leader"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_mandatory_relative_path_variable/__init__.py b/tests/dictionaries/44_6leadership_follower_disabled_calculation/__init__.py similarity index 100% rename from tests/dictionaries/10load_mandatory_relative_path_variable/__init__.py rename to tests/dictionaries/44_6leadership_follower_disabled_calculation/__init__.py diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_6leadership_follower_disabled_calculation/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..417a00ac5 --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: '1.1' +condition: "yes" # a condition +leader: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + follower: + description: a follower + disabled: + type: jinja + jinja: | + {% if __.condition == "yes" %}true{% else %}false{% endif %} + description: if condition is yes diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/after.json b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/after.json new file mode 100644 index 000000000..22b9dffa4 --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/after.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "yes" + }, + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/base.json b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/base.json new file mode 100644 index 000000000..092fe27a9 --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/base.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": "yes", + "rougail.leader.leader": [] +} diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/before.json b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/before.json new file mode 100644 index 000000000..22b9dffa4 --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/before.json @@ -0,0 +1,10 @@ +{ + "rougail.condition": { + "owner": "default", + "value": "yes" + }, + "rougail.leader.leader": { + "owner": "default", + "value": [] + } +} diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/mandatory.json b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/mandatory.json new file mode 100644 index 000000000..8e267443d --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.leader.leader"] \ No newline at end of file diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/base.py b/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/base.py new file mode 100644 index 000000000..0b5d6135b --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_rougail.leader.follower'] = "{% if __.condition == \"yes\" %}true{% else %}false{% endif %}\n" +option_2 = StrOption(name="condition", doc="a condition", default="yes", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_3 = Leadership(name="leader", doc="a leadership", children=[option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/multi.py b/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/multi.py new file mode 100644 index 000000000..f06c0176a --- /dev/null +++ b/tests/dictionaries/44_6leadership_follower_disabled_calculation/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_1.rougail.leader.follower'] = "{% if __.condition == \"yes\" %}true{% else %}false{% endif %}\n" +dict_env['disabled_2.rougail.leader.follower'] = "{% if __.condition == \"yes\" %}true{% else %}false{% endif %}\n" +option_3 = StrOption(name="condition", doc="a condition", default="yes", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_6 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = Leadership(name="leader", doc="a leadership", children=[option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="condition", doc="a condition", default="yes", properties=frozenset({"mandatory", "standard"})) +option_11 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_12 = StrOption(name="follower", doc="a follower", multi=True, properties=frozenset({"basic", "mandatory", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.leader.follower"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.condition': ParamOption(option_9)}), help_function=func['jinja_to_property_help'])})) +optiondescription_10 = Leadership(name="leader", doc="a leadership", children=[option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10load_mandatoryifin/__init__.py b/tests/dictionaries/44_9calculated_default_leadership_leader/__init__.py similarity index 100% rename from tests/dictionaries/10load_mandatoryifin/__init__.py rename to tests/dictionaries/44_9calculated_default_leadership_leader/__init__.py diff --git a/tests/dictionaries/44_9calculated_default_leadership_leader/dictionaries/rougail/00-base.yml b/tests/dictionaries/44_9calculated_default_leadership_leader/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..384df12dc --- /dev/null +++ b/tests/dictionaries/44_9calculated_default_leadership_leader/dictionaries/rougail/00-base.yml @@ -0,0 +1,20 @@ +--- +version: 1.1 +leader: + description: leader + type: leadership + leader: # a leader + - a + - b + follower: + description: a follower + disabled: + type: jinja + jinja: | + {% if _.leader == "a" %} + the value of "leader" is "a" + {% endif %} + description: if the value of "leader" is "a" + default: + type: variable + variable: _.leader diff --git a/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/after.json b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/after.json new file mode 100644 index 000000000..6b6cf66a3 --- /dev/null +++ b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/after.json @@ -0,0 +1,37 @@ +{ + "rougail.general.mode_conteneur_actif": { + "owner": "default", + "value": "non" + }, + "rougail.general.condition": { + "owner": "default", + "value": "oui" + }, + "rougail.general.leader.leader": { + "owner": "default", + "value": [ + "a", + "b" + ] + }, + "rougail.general.leader.follower2": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + }, + "rougail.general.leader.follower1": { + "owner": [ + "error", + "default" + ], + "value": [ + "cannot access to option \"follower1\" because has property \"disabled\" (the value of \"leader\" is \"a\")", + null + ] + } +} diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/makedict/base.json b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/base.json similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/makedict/base.json rename to tests/dictionaries/44_9calculated_default_leadership_leader/makedict/base.json diff --git a/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/before.json b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/before.json new file mode 100644 index 000000000..6b6cf66a3 --- /dev/null +++ b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/before.json @@ -0,0 +1,37 @@ +{ + "rougail.general.mode_conteneur_actif": { + "owner": "default", + "value": "non" + }, + "rougail.general.condition": { + "owner": "default", + "value": "oui" + }, + "rougail.general.leader.leader": { + "owner": "default", + "value": [ + "a", + "b" + ] + }, + "rougail.general.leader.follower2": { + "owner": [ + "default", + "default" + ], + "value": [ + null, + null + ] + }, + "rougail.general.leader.follower1": { + "owner": [ + "error", + "default" + ], + "value": [ + "cannot access to option \"follower1\" because has property \"disabled\" (the value of \"leader\" is \"a\")", + null + ] + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/mandatory.json b/tests/dictionaries/44_9calculated_default_leadership_leader/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_multi_param_disabled/makedict/mandatory.json rename to tests/dictionaries/44_9calculated_default_leadership_leader/makedict/mandatory.json diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/result/etc/mailname b/tests/dictionaries/44_9calculated_default_leadership_leader/result/etc/mailname similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/result/etc/mailname rename to tests/dictionaries/44_9calculated_default_leadership_leader/result/etc/mailname diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/result/etc/mailname2 b/tests/dictionaries/44_9calculated_default_leadership_leader/result/etc/mailname2 similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/result/etc/mailname2 rename to tests/dictionaries/44_9calculated_default_leadership_leader/result/etc/mailname2 diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/44_9calculated_default_leadership_leader/result/tmpfiles.d/0rougail.conf similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/result/tmpfiles.d/0rougail.conf rename to tests/dictionaries/44_9calculated_default_leadership_leader/result/tmpfiles.d/0rougail.conf diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/tiramisu/base.py b/tests/dictionaries/44_9calculated_default_leadership_leader/tiramisu/base.py similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/tiramisu/base.py rename to tests/dictionaries/44_9calculated_default_leadership_leader/tiramisu/base.py diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/tiramisu/multi.py b/tests/dictionaries/44_9calculated_default_leadership_leader/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/tiramisu/multi.py rename to tests/dictionaries/44_9calculated_default_leadership_leader/tiramisu/multi.py diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/tmpl/mailname b/tests/dictionaries/44_9calculated_default_leadership_leader/tmpl/mailname similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/tmpl/mailname rename to tests/dictionaries/44_9calculated_default_leadership_leader/tmpl/mailname diff --git a/tests/dictionaries/40ifin_leadershipauto_follower/tmpl/mailname2 b/tests/dictionaries/44_9calculated_default_leadership_leader/tmpl/mailname2 similarity index 100% rename from tests/dictionaries/40ifin_leadershipauto_follower/tmpl/mailname2 rename to tests/dictionaries/44_9calculated_default_leadership_leader/tmpl/mailname2 diff --git a/tests/dictionaries/45extra_without_family/__init__.py b/tests/dictionaries/45extra_without_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45extra_without_family/dictionaries/extra/00-base.yml b/tests/dictionaries/45extra_without_family/dictionaries/extra/00-base.yml deleted file mode 100644 index 018715312..000000000 --- a/tests/dictionaries/45extra_without_family/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -my_var: - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/45extra_without_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/45extra_without_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index dd35e17ad..000000000 --- a/tests/dictionaries/45extra_without_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ -my_var: - default: rougail -version: '1.0' diff --git a/tests/dictionaries/45extra_without_family/makedict/mandatory.json b/tests/dictionaries/45extra_without_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45extra_without_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45extra_without_family/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/45extra_without_family/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 1bc5dfc34..000000000 --- a/tests/dictionaries/45extra_without_family/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1 +0,0 @@ -C /etc/file 0644 root root - /usr/local/lib/etc/file diff --git a/tests/dictionaries/45multi_family/__init__.py b/tests/dictionaries/45multi_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45multi_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/45multi_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 409181ef0..000000000 --- a/tests/dictionaries/45multi_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -version: '1.0' -base: - subfamily: - variable: - mandatory: false diff --git a/tests/dictionaries/45multi_family/makedict/mandatory.json b/tests/dictionaries/45multi_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45multi_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45multi_family_basic/__init__.py b/tests/dictionaries/45multi_family_basic/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45multi_family_basic/dictionaries/rougail/00-base.yml b/tests/dictionaries/45multi_family_basic/dictionaries/rougail/00-base.yml deleted file mode 100644 index 3670e3c24..000000000 --- a/tests/dictionaries/45multi_family_basic/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -base: - subfamily: - variable: - mode: basic - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/45multi_family_basic/makedict/mandatory.json b/tests/dictionaries/45multi_family_basic/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45multi_family_basic/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45multi_family_expert/__init__.py b/tests/dictionaries/45multi_family_expert/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45multi_family_expert/dictionaries/rougail/00-base.yml b/tests/dictionaries/45multi_family_expert/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9e6e9efed..000000000 --- a/tests/dictionaries/45multi_family_expert/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -base: - mode: advanced - subfamily: - variable: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/45multi_family_expert/makedict/mandatory.json b/tests/dictionaries/45multi_family_expert/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45multi_family_expert/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45multi_family_order/__init__.py b/tests/dictionaries/45multi_family_order/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45multi_family_order/dictionaries/rougail/00-base.yml b/tests/dictionaries/45multi_family_order/dictionaries/rougail/00-base.yml deleted file mode 100644 index add446d74..000000000 --- a/tests/dictionaries/45multi_family_order/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -variable1: - mandatory: false -base: - variable2: - mandatory: false - subfamily: - variable3: - mandatory: false - variable4: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/45multi_family_order/makedict/mandatory.json b/tests/dictionaries/45multi_family_order/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45multi_family_order/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45without_family/__init__.py b/tests/dictionaries/45without_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/45without_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/45without_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 5a86c1b1f..000000000 --- a/tests/dictionaries/45without_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ -variable: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/45without_family/makedict/mandatory.json b/tests/dictionaries/45without_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/45without_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/45without_family/tiramisu/base.py b/tests/dictionaries/45without_family/tiramisu/base.py deleted file mode 100644 index 6c6a99012..000000000 --- a/tests/dictionaries/45without_family/tiramisu/base.py +++ /dev/null @@ -1,10 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_2 = StrOption(name="variable", doc="variable", properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/45without_family/tiramisu/multi.py b/tests/dictionaries/45without_family/tiramisu/multi.py deleted file mode 100644 index ad5703274..000000000 --- a/tests/dictionaries/45without_family/tiramisu/multi.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="variable", doc="variable", properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = StrOption(name="variable", doc="variable", properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="rougail", doc="rougail", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="2", doc="2", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/50exists_exists/__init__.py b/tests/dictionaries/50exists_exists/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/50exists_exists/dictionaries/rougail/00-base.yml b/tests/dictionaries/50exists_exists/dictionaries/rougail/00-base.yml deleted file mode 100644 index 98b2ee4ba..000000000 --- a/tests/dictionaries/50exists_exists/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Description - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/50exists_exists/dictionaries/rougail/01-base.yml b/tests/dictionaries/50exists_exists/dictionaries/rougail/01-base.yml deleted file mode 100644 index 5942a802a..000000000 --- a/tests/dictionaries/50exists_exists/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: New description - exists: false - default: oui -version: '1.0' diff --git a/tests/dictionaries/50exists_exists/makedict/after.json b/tests/dictionaries/50exists_exists/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/50exists_exists/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/50exists_exists/makedict/base.json b/tests/dictionaries/50exists_exists/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/50exists_exists/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/50exists_exists/makedict/before.json b/tests/dictionaries/50exists_exists/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/50exists_exists/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/50exists_exists/makedict/mandatory.json b/tests/dictionaries/50exists_exists/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/50exists_exists/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/50exists_exists/tiramisu/base.py b/tests/dictionaries/50exists_exists/tiramisu/base.py deleted file mode 100644 index ae2c56be1..000000000 --- a/tests/dictionaries/50exists_exists/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/50exists_exists/tiramisu/multi.py b/tests/dictionaries/50exists_exists/tiramisu/multi.py deleted file mode 100644 index 5231b4662..000000000 --- a/tests/dictionaries/50exists_exists/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/50redefine_description/__init__.py b/tests/dictionaries/50redefine_description/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/50redefine_description/dictionaries/rougail/00-base.yml b/tests/dictionaries/50redefine_description/dictionaries/rougail/00-base.yml deleted file mode 100644 index da1ea3c58..000000000 --- a/tests/dictionaries/50redefine_description/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/50redefine_description/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/50redefine_description/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index 24ab230e5..000000000 --- a/tests/dictionaries/50redefine_description/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - description: Redefined -version: '1.0' diff --git a/tests/dictionaries/50redefine_description/makedict/after.json b/tests/dictionaries/50redefine_description/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/50redefine_description/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/50redefine_description/makedict/base.json b/tests/dictionaries/50redefine_description/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/50redefine_description/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/50redefine_description/makedict/before.json b/tests/dictionaries/50redefine_description/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/50redefine_description/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/50redefine_description/makedict/mandatory.json b/tests/dictionaries/50redefine_description/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/50redefine_description/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/50redefine_description/tiramisu/base.py b/tests/dictionaries/50redefine_description/tiramisu/base.py deleted file mode 100644 index 0ec1ea3e3..000000000 --- a/tests/dictionaries/50redefine_description/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefined", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/50redefine_description/tiramisu/multi.py b/tests/dictionaries/50redefine_description/tiramisu/multi.py deleted file mode 100644 index ddfbb9220..000000000 --- a/tests/dictionaries/50redefine_description/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefined", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefined", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51exists_nonexists/__init__.py b/tests/dictionaries/51exists_nonexists/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51exists_nonexists/dictionaries/rougail/00-base.yml b/tests/dictionaries/51exists_nonexists/dictionaries/rougail/00-base.yml deleted file mode 100644 index f3ac44820..000000000 --- a/tests/dictionaries/51exists_nonexists/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Description - default: non - mode_conteneur_actif1: - type: string - description: Description - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51exists_nonexists/dictionaries/rougail/01-base.yml b/tests/dictionaries/51exists_nonexists/dictionaries/rougail/01-base.yml deleted file mode 100644 index 4ebe57964..000000000 --- a/tests/dictionaries/51exists_nonexists/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif2: - type: string - description: New description - exists: false - default: oui -version: '1.0' diff --git a/tests/dictionaries/51exists_nonexists/makedict/after.json b/tests/dictionaries/51exists_nonexists/makedict/after.json deleted file mode 100644 index b9d4ee936..000000000 --- a/tests/dictionaries/51exists_nonexists/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51exists_nonexists/makedict/base.json b/tests/dictionaries/51exists_nonexists/makedict/base.json deleted file mode 100644 index 4eee7b615..000000000 --- a/tests/dictionaries/51exists_nonexists/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "oui" -} diff --git a/tests/dictionaries/51exists_nonexists/makedict/before.json b/tests/dictionaries/51exists_nonexists/makedict/before.json deleted file mode 100644 index b9d4ee936..000000000 --- a/tests/dictionaries/51exists_nonexists/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51exists_nonexists/makedict/mandatory.json b/tests/dictionaries/51exists_nonexists/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51exists_nonexists/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51exists_nonexists/tiramisu/base.py b/tests/dictionaries/51exists_nonexists/tiramisu/base.py deleted file mode 100644 index 5971440f6..000000000 --- a/tests/dictionaries/51exists_nonexists/tiramisu/base.py +++ /dev/null @@ -1,13 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="New description", default="oui", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51exists_nonexists/tiramisu/multi.py b/tests/dictionaries/51exists_nonexists/tiramisu/multi.py deleted file mode 100644 index c114893cd..000000000 --- a/tests/dictionaries/51exists_nonexists/tiramisu/multi.py +++ /dev/null @@ -1,20 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="New description", default="oui", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="mode_conteneur_actif1", doc="Description", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="New description", default="oui", properties=frozenset({"mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10, option_11, option_12], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/51exists_redefine/__init__.py b/tests/dictionaries/51exists_redefine/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51exists_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/51exists_redefine/dictionaries/rougail/00-base.yml deleted file mode 100644 index 98b2ee4ba..000000000 --- a/tests/dictionaries/51exists_redefine/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Description - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51exists_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/51exists_redefine/dictionaries/rougail/01-base.yml deleted file mode 100644 index 238b1bb47..000000000 --- a/tests/dictionaries/51exists_redefine/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - exists: true - default: oui - mode_conteneur_actif1: - redefine: true - exists: true - default: oui -version: '1.0' diff --git a/tests/dictionaries/51exists_redefine/makedict/after.json b/tests/dictionaries/51exists_redefine/makedict/after.json deleted file mode 100644 index 3a4c09536..000000000 --- a/tests/dictionaries/51exists_redefine/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51exists_redefine/makedict/base.json b/tests/dictionaries/51exists_redefine/makedict/base.json deleted file mode 100644 index 50112b177..000000000 --- a/tests/dictionaries/51exists_redefine/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui" -} diff --git a/tests/dictionaries/51exists_redefine/makedict/before.json b/tests/dictionaries/51exists_redefine/makedict/before.json deleted file mode 100644 index 3a4c09536..000000000 --- a/tests/dictionaries/51exists_redefine/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51exists_redefine/makedict/mandatory.json b/tests/dictionaries/51exists_redefine/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51exists_redefine/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51exists_redefine/tiramisu/base.py b/tests/dictionaries/51exists_redefine/tiramisu/base.py deleted file mode 100644 index 7be861c1a..000000000 --- a/tests/dictionaries/51exists_redefine/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51exists_redefine/tiramisu/multi.py b/tests/dictionaries/51exists_redefine/tiramisu/multi.py deleted file mode 100644 index 89f6ca9e1..000000000 --- a/tests/dictionaries/51exists_redefine/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_auto/__init__.py b/tests/dictionaries/51redefine_auto/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_auto/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_auto/dictionaries/rougail/00-base.yml deleted file mode 100644 index 9be8e0010..000000000 --- a/tests/dictionaries/51redefine_auto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ "non" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/51redefine_auto/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_auto/dictionaries/rougail/01-base.yml deleted file mode 100644 index 3dd4c3524..000000000 --- a/tests/dictionaries/51redefine_auto/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - default: - type: jinja - jinja: '{{ "non" | concat }}' -version: '1.0' diff --git a/tests/dictionaries/51redefine_auto/makedict/after.json b/tests/dictionaries/51redefine_auto/makedict/after.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_auto/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_auto/makedict/base.json b/tests/dictionaries/51redefine_auto/makedict/base.json deleted file mode 100644 index ab81a62f5..000000000 --- a/tests/dictionaries/51redefine_auto/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/51redefine_auto/makedict/before.json b/tests/dictionaries/51redefine_auto/makedict/before.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_auto/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_auto/makedict/mandatory.json b/tests/dictionaries/51redefine_auto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_auto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_auto/tiramisu/base.py b/tests/dictionaries/51redefine_auto/tiramisu/base.py deleted file mode 100644 index 7a173de4c..000000000 --- a/tests/dictionaries/51redefine_auto/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_auto/tiramisu/multi.py b/tests/dictionaries/51redefine_auto/tiramisu/multi.py deleted file mode 100644 index 3ea053f7a..000000000 --- a/tests/dictionaries/51redefine_auto/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_autofill/__init__.py b/tests/dictionaries/51redefine_autofill/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_autofill/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_autofill/dictionaries/rougail/00-base.yml deleted file mode 100644 index faa8252d3..000000000 --- a/tests/dictionaries/51redefine_autofill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ "oui" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/51redefine_autofill/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_autofill/dictionaries/rougail/01-base.yml deleted file mode 100644 index 5fe628160..000000000 --- a/tests/dictionaries/51redefine_autofill/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - hidden: false - default: - type: jinja - jinja: '{{ "non" | concat }}' -version: '1.0' diff --git a/tests/dictionaries/51redefine_autofill/makedict/after.json b/tests/dictionaries/51redefine_autofill/makedict/after.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_autofill/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_autofill/makedict/base.json b/tests/dictionaries/51redefine_autofill/makedict/base.json deleted file mode 100644 index ab81a62f5..000000000 --- a/tests/dictionaries/51redefine_autofill/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/51redefine_autofill/makedict/before.json b/tests/dictionaries/51redefine_autofill/makedict/before.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_autofill/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_autofill/makedict/mandatory.json b/tests/dictionaries/51redefine_autofill/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_autofill/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_autofill/tiramisu/base.py b/tests/dictionaries/51redefine_autofill/tiramisu/base.py deleted file mode 100644 index c5058b009..000000000 --- a/tests/dictionaries/51redefine_autofill/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_autofill/tiramisu/multi.py b/tests/dictionaries/51redefine_autofill/tiramisu/multi.py deleted file mode 100644 index 6da4ff4d0..000000000 --- a/tests/dictionaries/51redefine_autofill/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_family/__init__.py b/tests/dictionaries/51redefine_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 96a6e829e..000000000 --- a/tests/dictionaries/51redefine_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -general2: - hidden: true - mode_conteneur_actif2: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.mode_conteneur_actif == "oui" %} - mode_conteneur_actif is oui - {% endif %} diff --git a/tests/dictionaries/51redefine_family/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_family/dictionaries/rougail/01-base.yml deleted file mode 100644 index 84dcc917c..000000000 --- a/tests/dictionaries/51redefine_family/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51redefine_family/makedict/after.json b/tests/dictionaries/51redefine_family/makedict/after.json deleted file mode 100644 index 18c09ea33..000000000 --- a/tests/dictionaries/51redefine_family/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_family/makedict/base.json b/tests/dictionaries/51redefine_family/makedict/base.json deleted file mode 100644 index 1b9934fc6..000000000 --- a/tests/dictionaries/51redefine_family/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general2.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/51redefine_family/makedict/before.json b/tests/dictionaries/51redefine_family/makedict/before.json deleted file mode 100644 index 18c09ea33..000000000 --- a/tests/dictionaries/51redefine_family/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general2.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_family/makedict/mandatory.json b/tests/dictionaries/51redefine_family/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_family/tiramisu/base.py b/tests/dictionaries/51redefine_family/tiramisu/base.py deleted file mode 100644 index 70b185044..000000000 --- a/tests/dictionaries/51redefine_family/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_rougail.general2'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_4 = OptionDescription(name="general2", doc="general2", children=[option_5], properties=frozenset({"hidden", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2, optiondescription_4], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_family/tiramisu/multi.py b/tests/dictionaries/51redefine_family/tiramisu/multi.py deleted file mode 100644 index ab0a213ad..000000000 --- a/tests/dictionaries/51redefine_family/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['disabled_1.rougail.general2'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -dict_env['disabled_2.rougail.general2'] = "{% if rougail.general.mode_conteneur_actif == \"oui\" %}\nmode_conteneur_actif is oui\n{% endif %}\n" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="general2", doc="general2", children=[option_6], properties=frozenset({"hidden", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3, optiondescription_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_10 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_9 = OptionDescription(name="general", doc="general", children=[option_10], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_11 = OptionDescription(name="general2", doc="general2", children=[option_12], properties=frozenset({"hidden", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.general2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.general.mode_conteneur_actif': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) -optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9, optiondescription_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/51redefine_fill/__init__.py b/tests/dictionaries/51redefine_fill/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_fill/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_fill/dictionaries/rougail/00-base.yml deleted file mode 100644 index faa8252d3..000000000 --- a/tests/dictionaries/51redefine_fill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: - type: jinja - jinja: '{{ "oui" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/51redefine_fill/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_fill/dictionaries/rougail/01-base.yml deleted file mode 100644 index 3dd4c3524..000000000 --- a/tests/dictionaries/51redefine_fill/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - default: - type: jinja - jinja: '{{ "non" | concat }}' -version: '1.0' diff --git a/tests/dictionaries/51redefine_fill/makedict/after.json b/tests/dictionaries/51redefine_fill/makedict/after.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_fill/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_fill/makedict/base.json b/tests/dictionaries/51redefine_fill/makedict/base.json deleted file mode 100644 index ab81a62f5..000000000 --- a/tests/dictionaries/51redefine_fill/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/51redefine_fill/makedict/before.json b/tests/dictionaries/51redefine_fill/makedict/before.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_fill/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_fill/makedict/mandatory.json b/tests/dictionaries/51redefine_fill/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_fill/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_fill/tiramisu/base.py b/tests/dictionaries/51redefine_fill/tiramisu/base.py deleted file mode 100644 index 7a173de4c..000000000 --- a/tests/dictionaries/51redefine_fill/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_fill/tiramisu/multi.py b/tests/dictionaries/51redefine_fill/tiramisu/multi.py deleted file mode 100644 index 3ea053f7a..000000000 --- a/tests/dictionaries/51redefine_fill/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_fillauto/__init__.py b/tests/dictionaries/51redefine_fillauto/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/00-base.yml deleted file mode 100644 index cd26f3250..000000000 --- a/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ "oui" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/01-base.yml deleted file mode 100644 index df07c6509..000000000 --- a/tests/dictionaries/51redefine_fillauto/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - hidden: true - default: - type: jinja - jinja: '{{ "non" | concat }}' -version: '1.0' diff --git a/tests/dictionaries/51redefine_fillauto/makedict/after.json b/tests/dictionaries/51redefine_fillauto/makedict/after.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_fillauto/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_fillauto/makedict/base.json b/tests/dictionaries/51redefine_fillauto/makedict/base.json deleted file mode 100644 index ab81a62f5..000000000 --- a/tests/dictionaries/51redefine_fillauto/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": null -} diff --git a/tests/dictionaries/51redefine_fillauto/makedict/before.json b/tests/dictionaries/51redefine_fillauto/makedict/before.json deleted file mode 100644 index da5b8acce..000000000 --- a/tests/dictionaries/51redefine_fillauto/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/51redefine_fillauto/makedict/mandatory.json b/tests/dictionaries/51redefine_fillauto/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_fillauto/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_fillauto/tiramisu/base.py b/tests/dictionaries/51redefine_fillauto/tiramisu/base.py deleted file mode 100644 index 7a173de4c..000000000 --- a/tests/dictionaries/51redefine_fillauto/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_fillauto/tiramisu/multi.py b/tests/dictionaries/51redefine_fillauto/tiramisu/multi.py deleted file mode 100644 index 3ea053f7a..000000000 --- a/tests/dictionaries/51redefine_fillauto/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -dict_env['default_2.rougail.general.mode_conteneur_actif'] = "{{ \"non\" | concat }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.general.mode_conteneur_actif"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False)})), properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_help/__init__.py b/tests/dictionaries/51redefine_help/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_help/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_help/dictionaries/rougail/00-base.yml deleted file mode 100644 index 82e0cbe88..000000000 --- a/tests/dictionaries/51redefine_help/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.0' -general: - help: redefine help family - mode_conteneur_actif: - type: string - description: redefine help - hidden: true - help: redefine help - default: non diff --git a/tests/dictionaries/51redefine_help/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_help/dictionaries/rougail/01-base.yml deleted file mode 100644 index 04e5a572f..000000000 --- a/tests/dictionaries/51redefine_help/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.0' -general: - redefine: true - help: redefine help family ok - mode_conteneur_actif: - redefine: true - hidden: true - help: redefine help ok - default: non diff --git a/tests/dictionaries/51redefine_help/makedict/after.json b/tests/dictionaries/51redefine_help/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_help/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_help/makedict/base.json b/tests/dictionaries/51redefine_help/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/51redefine_help/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/51redefine_help/makedict/before.json b/tests/dictionaries/51redefine_help/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_help/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_help/makedict/mandatory.json b/tests/dictionaries/51redefine_help/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_help/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_help/tiramisu/base.py b/tests/dictionaries/51redefine_help/tiramisu/base.py deleted file mode 100644 index 29b6f555e..000000000 --- a/tests/dictionaries/51redefine_help/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="redefine help", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"}), informations={'help': 'redefine help ok'}) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"}), informations={'help': 'redefine help family ok'}) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_help/tiramisu/multi.py b/tests/dictionaries/51redefine_help/tiramisu/multi.py deleted file mode 100644 index cfb38f231..000000000 --- a/tests/dictionaries/51redefine_help/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="redefine help", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"}), informations={'help': 'redefine help ok'}) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"}), informations={'help': 'redefine help family ok'}) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="redefine help", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"}), informations={'help': 'redefine help ok'}) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"}), informations={'help': 'redefine help family ok'}) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_hidden/__init__.py b/tests/dictionaries/51redefine_hidden/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index 01b94adff..000000000 --- a/tests/dictionaries/51redefine_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine hidden - default: non -version: '1.0' diff --git a/tests/dictionaries/51redefine_hidden/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_hidden/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index a98fe3a5a..000000000 --- a/tests/dictionaries/51redefine_hidden/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - hidden: true -version: '1.0' diff --git a/tests/dictionaries/51redefine_hidden/makedict/after.json b/tests/dictionaries/51redefine_hidden/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_hidden/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_hidden/makedict/base.json b/tests/dictionaries/51redefine_hidden/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/51redefine_hidden/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/51redefine_hidden/makedict/before.json b/tests/dictionaries/51redefine_hidden/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_hidden/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_hidden/makedict/mandatory.json b/tests/dictionaries/51redefine_hidden/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_hidden/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_hidden/tiramisu/base.py b/tests/dictionaries/51redefine_hidden/tiramisu/base.py deleted file mode 100644 index f1f01dc0e..000000000 --- a/tests/dictionaries/51redefine_hidden/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_hidden/tiramisu/multi.py b/tests/dictionaries/51redefine_hidden/tiramisu/multi.py deleted file mode 100644 index aae2a5eb1..000000000 --- a/tests/dictionaries/51redefine_hidden/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_hidden_inverse/__init__.py b/tests/dictionaries/51redefine_hidden_inverse/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/00-base.yml deleted file mode 100644 index 709c26c30..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine hidden - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index b695912b8..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - hidden: false -version: '1.0' diff --git a/tests/dictionaries/51redefine_hidden_inverse/makedict/after.json b/tests/dictionaries/51redefine_hidden_inverse/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_hidden_inverse/makedict/base.json b/tests/dictionaries/51redefine_hidden_inverse/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/51redefine_hidden_inverse/makedict/before.json b/tests/dictionaries/51redefine_hidden_inverse/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_hidden_inverse/makedict/mandatory.json b/tests/dictionaries/51redefine_hidden_inverse/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_hidden_inverse/tiramisu/base.py b/tests/dictionaries/51redefine_hidden_inverse/tiramisu/base.py deleted file mode 100644 index 102ffacc1..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_hidden_inverse/tiramisu/multi.py b/tests/dictionaries/51redefine_hidden_inverse/tiramisu/multi.py deleted file mode 100644 index ad4337f11..000000000 --- a/tests/dictionaries/51redefine_hidden_inverse/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_leadership/__init__.py b/tests/dictionaries/51redefine_leadership/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_leadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index b86f9db8a..000000000 --- a/tests/dictionaries/51redefine_leadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -version: '1.0' -leader: - type: leadership - leader: - multi: true - follower: diff --git a/tests/dictionaries/51redefine_leadership/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_leadership/dictionaries/rougail/01-base.yml deleted file mode 100644 index ea26d3e22..000000000 --- a/tests/dictionaries/51redefine_leadership/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -version: '1.0' -leader: - redefine: true - hidden: true diff --git a/tests/dictionaries/51redefine_leadership/tiramisu/base.py b/tests/dictionaries/51redefine_leadership/tiramisu/base.py deleted file mode 100644 index ffbaa1bed..000000000 --- a/tests/dictionaries/51redefine_leadership/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) -option_4 = StrOption(name="follower", doc="follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) -optiondescription_2 = Leadership(name="leader", doc="leader", children=[option_3, option_4], properties=frozenset({"basic", "hidden"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_leadership/tiramisu/multi.py b/tests/dictionaries/51redefine_leadership/tiramisu/multi.py deleted file mode 100644 index b5ac8511a..000000000 --- a/tests/dictionaries/51redefine_leadership/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) -option_5 = StrOption(name="follower", doc="follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) -optiondescription_3 = Leadership(name="leader", doc="leader", children=[option_4, option_5], properties=frozenset({"basic", "hidden"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) -option_9 = StrOption(name="leader", doc="leader", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory", "notempty"})) -option_10 = StrOption(name="follower", doc="follower", multi=True, properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) -optiondescription_8 = Leadership(name="leader", doc="leader", children=[option_9, option_10], properties=frozenset({"basic", "hidden"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/51redefine_multi/__init__.py b/tests/dictionaries/51redefine_multi/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_multi/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_multi/dictionaries/rougail/00-base.yml deleted file mode 100644 index a0d8d32af..000000000 --- a/tests/dictionaries/51redefine_multi/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: Redefine description - hidden: true - default: non diff --git a/tests/dictionaries/51redefine_multi/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_multi/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index cf1082232..000000000 --- a/tests/dictionaries/51redefine_multi/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - redefine: true - multi: true - default: - - non diff --git a/tests/dictionaries/51redefine_multi/makedict/after.json b/tests/dictionaries/51redefine_multi/makedict/after.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/51redefine_multi/makedict/after.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/51redefine_multi/makedict/base.json b/tests/dictionaries/51redefine_multi/makedict/base.json deleted file mode 100644 index feedadc62..000000000 --- a/tests/dictionaries/51redefine_multi/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": [ - "non" - ] -} diff --git a/tests/dictionaries/51redefine_multi/makedict/before.json b/tests/dictionaries/51redefine_multi/makedict/before.json deleted file mode 100644 index cfec4b1fc..000000000 --- a/tests/dictionaries/51redefine_multi/makedict/before.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": [ - "non" - ] - } -} diff --git a/tests/dictionaries/51redefine_multi/makedict/mandatory.json b/tests/dictionaries/51redefine_multi/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_multi/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_multi/tiramisu/base.py b/tests/dictionaries/51redefine_multi/tiramisu/base.py deleted file mode 100644 index 4d358650d..000000000 --- a/tests/dictionaries/51redefine_multi/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_multi/tiramisu/multi.py b/tests/dictionaries/51redefine_multi/tiramisu/multi.py deleted file mode 100644 index 082cdc41d..000000000 --- a/tests/dictionaries/51redefine_multi/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine description", multi=True, default=["non"], default_multi="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "notempty", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_remove_condition/__init__.py b/tests/dictionaries/51redefine_remove_condition/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/00-base.yml deleted file mode 100644 index f3480810d..000000000 --- a/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: non - condition: - type: string - description: No change - default: non - mode_conteneur_actif1: - type: string - description: No change - hidden: true - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - true - {% else %} - false - {% endif %} - mode_conteneur_actif2: - type: string - description: No change - default: non - disabled: - type: jinja - jinja: | - {% if rougail.general.condition == "oui" %} - true - {% else %} - false - {% endif %} diff --git a/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/01-base.yml b/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/01-base.yml deleted file mode 100644 index c73de3632..000000000 --- a/tests/dictionaries/51redefine_remove_condition/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif1: - redefine: true - disabled: false - mode_conteneur_actif2: - redefine: true - disabled: false diff --git a/tests/dictionaries/51redefine_remove_condition/makedict/after.json b/tests/dictionaries/51redefine_remove_condition/makedict/after.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/51redefine_remove_condition/makedict/after.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_remove_condition/makedict/base.json b/tests/dictionaries/51redefine_remove_condition/makedict/base.json deleted file mode 100644 index e21c64e6f..000000000 --- a/tests/dictionaries/51redefine_remove_condition/makedict/base.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.condition": "non", - "rougail.general.mode_conteneur_actif1": "non", - "rougail.general.mode_conteneur_actif2": "non" -} diff --git a/tests/dictionaries/51redefine_remove_condition/makedict/before.json b/tests/dictionaries/51redefine_remove_condition/makedict/before.json deleted file mode 100644 index c1303c5d0..000000000 --- a/tests/dictionaries/51redefine_remove_condition/makedict/before.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.condition": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif2": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_remove_condition/makedict/mandatory.json b/tests/dictionaries/51redefine_remove_condition/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_remove_condition/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_remove_condition/tiramisu/base.py b/tests/dictionaries/51redefine_remove_condition/tiramisu/base.py deleted file mode 100644 index e0ac1d9dc..000000000 --- a/tests/dictionaries/51redefine_remove_condition/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_remove_condition/tiramisu/multi.py b/tests/dictionaries/51redefine_remove_condition/tiramisu/multi.py deleted file mode 100644 index bd2023093..000000000 --- a/tests/dictionaries/51redefine_remove_condition/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_6 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_7 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_12 = StrOption(name="condition", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_13 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_14 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="general", children=[option_11, option_12, option_13, option_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/51redefine_validenum/__init__.py b/tests/dictionaries/51redefine_validenum/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_validenum/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_validenum/dictionaries/rougail/00-base.yml deleted file mode 100644 index fef3650ba..000000000 --- a/tests/dictionaries/51redefine_validenum/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -general: - mode_conteneur_actif: - type: choice - description: Redefine description - hidden: true - default: a - choices: - - a - - b - - c -version: '1.0' diff --git a/tests/dictionaries/51redefine_validenum/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_validenum/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index 8babcec2f..000000000 --- a/tests/dictionaries/51redefine_validenum/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,9 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true - validators: null - default: a - choices: - - a - - b -version: '1.0' diff --git a/tests/dictionaries/51redefine_validenum/makedict/after.json b/tests/dictionaries/51redefine_validenum/makedict/after.json deleted file mode 100644 index c043df359..000000000 --- a/tests/dictionaries/51redefine_validenum/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/51redefine_validenum/makedict/base.json b/tests/dictionaries/51redefine_validenum/makedict/base.json deleted file mode 100644 index 7ca93417c..000000000 --- a/tests/dictionaries/51redefine_validenum/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "a" -} diff --git a/tests/dictionaries/51redefine_validenum/makedict/before.json b/tests/dictionaries/51redefine_validenum/makedict/before.json deleted file mode 100644 index c043df359..000000000 --- a/tests/dictionaries/51redefine_validenum/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "a" - } -} diff --git a/tests/dictionaries/51redefine_validenum/makedict/mandatory.json b/tests/dictionaries/51redefine_validenum/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_validenum/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_validenum/tiramisu/base.py b/tests/dictionaries/51redefine_validenum/tiramisu/base.py deleted file mode 100644 index 6c9fd92df..000000000 --- a/tests/dictionaries/51redefine_validenum/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = ChoiceOption(name="mode_conteneur_actif", doc="Redefine description", values=("a", "b"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_validenum/tiramisu/multi.py b/tests/dictionaries/51redefine_validenum/tiramisu/multi.py deleted file mode 100644 index d023b6353..000000000 --- a/tests/dictionaries/51redefine_validenum/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = ChoiceOption(name="mode_conteneur_actif", doc="Redefine description", values=("a", "b"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = ChoiceOption(name="mode_conteneur_actif", doc="Redefine description", values=("a", "b"), default="a", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51redefine_value/__init__.py b/tests/dictionaries/51redefine_value/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_value/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_value/dictionaries/rougail/00-base.yml deleted file mode 100644 index 74c33aee8..000000000 --- a/tests/dictionaries/51redefine_value/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine value - default: non - mode_conteneur_actif1: - type: string - description: Redefine value - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51redefine_value/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_value/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index c9908834d..000000000 --- a/tests/dictionaries/51redefine_value/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,5 +0,0 @@ -general: - mode_conteneur_actif1: - redefine: true - default: oui -version: '1.0' diff --git a/tests/dictionaries/51redefine_value/makedict/after.json b/tests/dictionaries/51redefine_value/makedict/after.json deleted file mode 100644 index 08d514d4e..000000000 --- a/tests/dictionaries/51redefine_value/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51redefine_value/makedict/base.json b/tests/dictionaries/51redefine_value/makedict/base.json deleted file mode 100644 index 993bf2df5..000000000 --- a/tests/dictionaries/51redefine_value/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.mode_conteneur_actif1": "oui" -} diff --git a/tests/dictionaries/51redefine_value/makedict/before.json b/tests/dictionaries/51redefine_value/makedict/before.json deleted file mode 100644 index 08d514d4e..000000000 --- a/tests/dictionaries/51redefine_value/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/51redefine_value/makedict/mandatory.json b/tests/dictionaries/51redefine_value/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_value/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_value/tiramisu/base.py b/tests/dictionaries/51redefine_value/tiramisu/base.py deleted file mode 100644 index f503ac499..000000000 --- a/tests/dictionaries/51redefine_value/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine value", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="Redefine value", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_value/tiramisu/multi.py b/tests/dictionaries/51redefine_value/tiramisu/multi.py deleted file mode 100644 index ca92bb544..000000000 --- a/tests/dictionaries/51redefine_value/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine value", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="Redefine value", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="Redefine value", default="non", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="Redefine value", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/51redefine_without_hidden/__init__.py b/tests/dictionaries/51redefine_without_hidden/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/00-base.yml deleted file mode 100644 index 709c26c30..000000000 --- a/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,7 +0,0 @@ -general: - mode_conteneur_actif: - type: string - description: Redefine hidden - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/01-redefine.yml b/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/01-redefine.yml deleted file mode 100644 index 7c59b7f2b..000000000 --- a/tests/dictionaries/51redefine_without_hidden/dictionaries/rougail/01-redefine.yml +++ /dev/null @@ -1,4 +0,0 @@ -general: - mode_conteneur_actif: - redefine: true -version: '1.0' diff --git a/tests/dictionaries/51redefine_without_hidden/makedict/after.json b/tests/dictionaries/51redefine_without_hidden/makedict/after.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_without_hidden/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_without_hidden/makedict/base.json b/tests/dictionaries/51redefine_without_hidden/makedict/base.json deleted file mode 100644 index 25056378d..000000000 --- a/tests/dictionaries/51redefine_without_hidden/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non" -} diff --git a/tests/dictionaries/51redefine_without_hidden/makedict/before.json b/tests/dictionaries/51redefine_without_hidden/makedict/before.json deleted file mode 100644 index 2e6c541d0..000000000 --- a/tests/dictionaries/51redefine_without_hidden/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51redefine_without_hidden/makedict/mandatory.json b/tests/dictionaries/51redefine_without_hidden/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51redefine_without_hidden/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51redefine_without_hidden/tiramisu/base.py b/tests/dictionaries/51redefine_without_hidden/tiramisu/base.py deleted file mode 100644 index f1f01dc0e..000000000 --- a/tests/dictionaries/51redefine_without_hidden/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51redefine_without_hidden/tiramisu/multi.py b/tests/dictionaries/51redefine_without_hidden/tiramisu/multi.py deleted file mode 100644 index aae2a5eb1..000000000 --- a/tests/dictionaries/51redefine_without_hidden/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Redefine hidden", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/51remove_fill/__init__.py b/tests/dictionaries/51remove_fill/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/51remove_fill/dictionaries/rougail/00-base.yml b/tests/dictionaries/51remove_fill/dictionaries/rougail/00-base.yml deleted file mode 100644 index e7e386956..000000000 --- a/tests/dictionaries/51remove_fill/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: No change - default: - type: jinja - jinja: '{{ rougail.general.mode_conteneur_actif1 | calc_val }}' - mode_conteneur_actif1: - type: string - description: No change - default: non diff --git a/tests/dictionaries/51remove_fill/dictionaries/rougail/01-base.yml b/tests/dictionaries/51remove_fill/dictionaries/rougail/01-base.yml deleted file mode 100644 index f179d9505..000000000 --- a/tests/dictionaries/51remove_fill/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - redefine: true - default: oui diff --git a/tests/dictionaries/51remove_fill/makedict/after.json b/tests/dictionaries/51remove_fill/makedict/after.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/51remove_fill/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51remove_fill/makedict/base.json b/tests/dictionaries/51remove_fill/makedict/base.json deleted file mode 100644 index a13f65aab..000000000 --- a/tests/dictionaries/51remove_fill/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui", - "rougail.general.mode_conteneur_actif1": "non" -} diff --git a/tests/dictionaries/51remove_fill/makedict/before.json b/tests/dictionaries/51remove_fill/makedict/before.json deleted file mode 100644 index f0a909af9..000000000 --- a/tests/dictionaries/51remove_fill/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - }, - "rougail.general.mode_conteneur_actif1": { - "owner": "default", - "value": "non" - } -} diff --git a/tests/dictionaries/51remove_fill/makedict/mandatory.json b/tests/dictionaries/51remove_fill/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/51remove_fill/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/51remove_fill/tiramisu/base.py b/tests/dictionaries/51remove_fill/tiramisu/base.py deleted file mode 100644 index dcab80f7d..000000000 --- a/tests/dictionaries/51remove_fill/tiramisu/base.py +++ /dev/null @@ -1,12 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/51remove_fill/tiramisu/multi.py b/tests/dictionaries/51remove_fill/tiramisu/multi.py deleted file mode 100644 index 04ea838e1..000000000 --- a/tests/dictionaries/51remove_fill/tiramisu/multi.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_9 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="general", doc="general", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/52exists_redefine/__init__.py b/tests/dictionaries/52exists_redefine/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/52exists_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/52exists_redefine/dictionaries/rougail/00-base.yml deleted file mode 100644 index fcc9ec7c6..000000000 --- a/tests/dictionaries/52exists_redefine/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - type: string - description: Description - hidden: true - default: oui diff --git a/tests/dictionaries/52exists_redefine/dictionaries/rougail/01-base.yml b/tests/dictionaries/52exists_redefine/dictionaries/rougail/01-base.yml deleted file mode 100644 index c4ce6062e..000000000 --- a/tests/dictionaries/52exists_redefine/dictionaries/rougail/01-base.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: '1.0' -general: - mode_conteneur_actif: - description: New description - exists: false - redefine: true - default: non diff --git a/tests/dictionaries/52exists_redefine/makedict/after.json b/tests/dictionaries/52exists_redefine/makedict/after.json deleted file mode 100644 index 3a4c09536..000000000 --- a/tests/dictionaries/52exists_redefine/makedict/after.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/52exists_redefine/makedict/base.json b/tests/dictionaries/52exists_redefine/makedict/base.json deleted file mode 100644 index 50112b177..000000000 --- a/tests/dictionaries/52exists_redefine/makedict/base.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "oui" -} diff --git a/tests/dictionaries/52exists_redefine/makedict/before.json b/tests/dictionaries/52exists_redefine/makedict/before.json deleted file mode 100644 index 3a4c09536..000000000 --- a/tests/dictionaries/52exists_redefine/makedict/before.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "oui" - } -} diff --git a/tests/dictionaries/52exists_redefine/makedict/mandatory.json b/tests/dictionaries/52exists_redefine/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/52exists_redefine/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/52exists_redefine/tiramisu/base.py b/tests/dictionaries/52exists_redefine/tiramisu/base.py deleted file mode 100644 index 7be861c1a..000000000 --- a/tests/dictionaries/52exists_redefine/tiramisu/base.py +++ /dev/null @@ -1,11 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/52exists_redefine/tiramisu/multi.py b/tests/dictionaries/52exists_redefine/tiramisu/multi.py deleted file mode 100644 index 89f6ca9e1..000000000 --- a/tests/dictionaries/52exists_redefine/tiramisu/multi.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="mode_conteneur_actif", doc="Description", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="general", doc="general", children=[option_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10load_multivalue/__init__.py b/tests/dictionaries/60_0family_dynamic/__init__.py similarity index 100% rename from tests/dictionaries/10load_multivalue/__init__.py rename to tests/dictionaries/60_0family_dynamic/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..c867f2851 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/dictionaries/rougail/00-base.yml @@ -0,0 +1,12 @@ +--- +version: '1.1' +var: # A suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: A dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: # A dynamic variable diff --git a/tests/dictionaries/60_0family_dynamic/makedict/after.json b/tests/dictionaries/60_0family_dynamic/makedict/after.json new file mode 100644 index 000000000..e72db9d1d --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/makedict/after.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.var": { + "owner": "default", + "value": null + }, + "rougail.dynval2.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_0family_dynamic/makedict/base.json b/tests/dictionaries/60_0family_dynamic/makedict/base.json new file mode 100644 index 000000000..475b83369 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/makedict/base.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/makedict/before.json b/tests/dictionaries/60_0family_dynamic/makedict/before.json new file mode 100644 index 000000000..e72db9d1d --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/makedict/before.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.var": { + "owner": "default", + "value": null + }, + "rougail.dynval2.var": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_0family_dynamic/makedict/mandatory.json b/tests/dictionaries/60_0family_dynamic/makedict/mandatory.json new file mode 100644 index 000000000..ab51d9ec5 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/makedict/mandatory.json @@ -0,0 +1 @@ +["rougail.dynval1.var", "rougail.dynval2.var"] \ No newline at end of file diff --git a/tests/dictionaries/60_0family_dynamic/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic/tiramisu/base.py new file mode 100644 index 000000000..3b85a389c --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic/tiramisu/multi.py new file mode 100644 index 000000000..3c7e162db --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8)))), children=[option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_param_relative/__init__.py b/tests/dictionaries/60_0family_dynamic_1_0/__init__.py similarity index 100% rename from tests/dictionaries/10load_param_relative/__init__.py rename to tests/dictionaries/60_0family_dynamic_1_0/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_1_0/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_1_0/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..01b1c3f5f --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/dictionaries/rougail/00-base.yml @@ -0,0 +1,14 @@ +--- +version: '1.0' +var: + description: A suffix variable + multi: true + default: + - val1 + - val2 +dyn: + type: dynamic + variable: rougail.var + vardyn: + description: Dynamic variable + mandatory: false diff --git a/tests/dictionaries/60_0family_dynamic_1_0/makedict/after.json b/tests/dictionaries/60_0family_dynamic_1_0/makedict/after.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/makedict/after.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0/makedict/base.json b/tests/dictionaries/60_0family_dynamic_1_0/makedict/base.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/makedict/base.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/makedict/before.json b/tests/dictionaries/60_0family_dynamic_1_0/makedict/before.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/makedict/before.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_none/makedict/mandatory.json b/tests/dictionaries/60_0family_dynamic_1_0/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_none/makedict/mandatory.json rename to tests/dictionaries/60_0family_dynamic_1_0/makedict/mandatory.json diff --git a/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/base.py new file mode 100644 index 000000000..4e6201aa5 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="vardyn", doc="Dynamic variable", properties=frozenset({"standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/multi.py new file mode 100644 index 000000000..eec7d9c83 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="vardyn", doc="Dynamic variable", properties=frozenset({"standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="vardyn", doc="Dynamic variable", properties=frozenset({"standard"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10load_param_unknown_relative/__init__.py b/tests/dictionaries/60_0family_dynamic_1_0_type/__init__.py similarity index 100% rename from tests/dictionaries/10load_param_unknown_relative/__init__.py rename to tests/dictionaries/60_0family_dynamic_1_0_type/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_1_0_type/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..0b2eadcce --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/dictionaries/rougail/00-base.yml @@ -0,0 +1,13 @@ +--- +version: '1.0' +var: + description: A suffix variable + multi: true + default: + - val1 + - val2 +dyn: + _type: dynamic + variable: rougail.var + vardyn: + description: A dyn variable diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/after.json b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/after.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/after.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/base.json b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/base.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/base.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/makedict/before.json b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/before.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/before.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/20family_dynamic_both/makedict/mandatory.json b/tests/dictionaries/60_0family_dynamic_1_0_type/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/20family_dynamic_both/makedict/mandatory.json rename to tests/dictionaries/60_0family_dynamic_1_0_type/makedict/mandatory.json diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/base.py new file mode 100644 index 000000000..f0a85a224 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="vardyn", doc="A dyn variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/multi.py new file mode 100644 index 000000000..c70ab7261 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_0_type/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="vardyn", doc="A dyn variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="vardyn", doc="A dyn variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_accent/__init__.py b/tests/dictionaries/60_0family_dynamic_1_1/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_accent/__init__.py rename to tests/dictionaries/60_0family_dynamic_1_1/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_1_1/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_1_1/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..518aff09e --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +var: # A suffix variable + - val1 + - val2 +dyn: + type: dynamic + description: A dynamic family + variable: _.var + vardyn: + description: A dynamic variable diff --git a/tests/dictionaries/60_0family_dynamic_1_1/makedict/after.json b/tests/dictionaries/60_0family_dynamic_1_1/makedict/after.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/makedict/after.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/60_0family_dynamic_1_1/makedict/base.json b/tests/dictionaries/60_0family_dynamic_1_1/makedict/base.json new file mode 100644 index 000000000..edd6414f0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/makedict/base.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/makedict/before.json b/tests/dictionaries/60_0family_dynamic_1_1/makedict/before.json new file mode 100644 index 000000000..1623f69e4 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/makedict/before.json @@ -0,0 +1,17 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + "val1", + "val2" + ] + }, + "rougail.dynval1.vardyn": { + "owner": "default", + "value": null + }, + "rougail.dynval2.vardyn": { + "owner": "default", + "value": null + } +} diff --git a/tests/dictionaries/20family_dynamic_static/makedict/mandatory.json b/tests/dictionaries/60_0family_dynamic_1_1/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/20family_dynamic_static/makedict/mandatory.json rename to tests/dictionaries/60_0family_dynamic_1_1/makedict/mandatory.json diff --git a/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/base.py new file mode 100644 index 000000000..fbe661e72 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="vardyn", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/multi.py new file mode 100644 index 000000000..1c004ff0a --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_1_1/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="vardyn", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="vardyn", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8, notraisepropertyerror=True)), kwargs={'allow_none': ParamValue(True)})), children=[option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_auto/__init__.py b/tests/dictionaries/60_0family_dynamic_jinja_number/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_auto/__init__.py rename to tests/dictionaries/60_0family_dynamic_jinja_number/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_jinja_number/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..ee78a38e0 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/dictionaries/rougail/00-base.yml @@ -0,0 +1,19 @@ +--- +version: '1.1' +var: # a suffix variable + - 1 + - 2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: val # a variable inside dynamic family +var2: + description: a variable + default: + type: jinja + jinja: | + {{ rougail.dyn1.var }} + description: get the value of rougail.dyn1.var diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/after.json b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/after.json new file mode 100644 index 000000000..e5d0bd47e --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/after.json @@ -0,0 +1,21 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + 1, + 2 + ] + }, + "rougail.dyn1.var": { + "owner": "default", + "value": "val" + }, + "rougail.dyn2.var": { + "owner": "default", + "value": "val" + }, + "rougail.var2": { + "owner": "default", + "value": "val" + } +} diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/base.json b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/base.json new file mode 100644 index 000000000..a54369369 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/base.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/makedict/before.json b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/before.json new file mode 100644 index 000000000..e5d0bd47e --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/before.json @@ -0,0 +1,21 @@ +{ + "rougail.var": { + "owner": "default", + "value": [ + 1, + 2 + ] + }, + "rougail.dyn1.var": { + "owner": "default", + "value": "val" + }, + "rougail.dyn2.var": { + "owner": "default", + "value": "val" + }, + "rougail.var2": { + "owner": "default", + "value": "val" + } +} diff --git a/tests/dictionaries/10load_disabled_if_in_twice/makedict/mandatory.json b/tests/dictionaries/60_0family_dynamic_jinja_number/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_twice/makedict/mandatory.json rename to tests/dictionaries/60_0family_dynamic_jinja_number/makedict/mandatory.json diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/base.py new file mode 100644 index 000000000..9228d36df --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{{ rougail.dyn1.var }}\n" +option_2 = IntOption(name="var", doc="a suffix variable", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +option_5 = StrOption(name="var2", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.var': ParamDynOption(option_4, ['1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/multi.py new file mode 100644 index 000000000..389f52f6d --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_jinja_number/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "{{ rougail.dyn1.var }}\n" +dict_env['default_2.rougail.var2'] = "{{ rougail.dyn1.var }}\n" +option_3 = IntOption(name="var", doc="a suffix variable", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +option_6 = StrOption(name="var2", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.var': ParamDynOption(option_5, ['1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = IntOption(name="var", doc="a suffix variable", multi=True, default=[1, 2], default_multi=1, properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9)))), children=[option_11], properties=frozenset({"standard"})) +option_12 = StrOption(name="var2", doc="a variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.dyn1.var': ParamDynOption(option_11, ['1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_base/__init__.py b/tests/dictionaries/60_0family_dynamic_static/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_base/__init__.py rename to tests/dictionaries/60_0family_dynamic_static/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_static/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_static/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..bf80238f5 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_static/dictionaries/rougail/00-base.yml @@ -0,0 +1,9 @@ +--- +version: '1.1' +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + - val1 + - val2 + var: # a variable inside a dynamic family diff --git a/tests/dictionaries/60_0family_dynamic_static/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_static/tiramisu/base.py new file mode 100644 index 000000000..fd225b752 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_static/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a variable inside a dynamic family", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", "val2"], children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_static/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_static/tiramisu/multi.py new file mode 100644 index 000000000..a595da957 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_static/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var", doc="a variable inside a dynamic family", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", "val2"], children=[option_4], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="a variable inside a dynamic family", properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", "val2"], children=[option_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_base_no_mandatory/__init__.py b/tests/dictionaries/60_0family_dynamic_variable_empty/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_base_no_mandatory/__init__.py rename to tests/dictionaries/60_0family_dynamic_variable_empty/__init__.py diff --git a/tests/dictionaries/60_0family_dynamic_variable_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_dynamic_variable_empty/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..ba4982e0a --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_empty/dictionaries/rougail/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.1' +var: [] # a suffix variable +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: val # a variable inside dynamic family diff --git a/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/base.py b/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/base.py new file mode 100644 index 000000000..25cf490d2 --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_4 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/multi.py b/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/multi.py new file mode 100644 index 000000000..f589aa1ad --- /dev/null +++ b/tests/dictionaries/60_0family_dynamic_variable_empty/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_5 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="a suffix variable", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_10 = StrOption(name="var", doc="a variable inside dynamic family", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8)))), children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_base_redefine/__init__.py b/tests/dictionaries/60_0family_empty/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_base_redefine/__init__.py rename to tests/dictionaries/60_0family_empty/__init__.py diff --git a/tests/dictionaries/60_0family_empty/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_empty/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..793c5ac06 --- /dev/null +++ b/tests/dictionaries/60_0family_empty/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.0' +general2: + type: family diff --git a/tests/dictionaries/60_0family_empty/tiramisu/base.py b/tests/dictionaries/60_0family_empty/tiramisu/base.py new file mode 100644 index 000000000..3735a8e25 --- /dev/null +++ b/tests/dictionaries/60_0family_empty/tiramisu/base.py @@ -0,0 +1,9 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[], properties=frozenset({"advanced"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_empty/tiramisu/multi.py b/tests/dictionaries/60_0family_empty/tiramisu/multi.py new file mode 100644 index 000000000..472635ec3 --- /dev/null +++ b/tests/dictionaries/60_0family_empty/tiramisu/multi.py @@ -0,0 +1,10 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +optiondescription_1 = OptionDescription(name="1", doc="1", children=[], properties=frozenset({"advanced"})) +optiondescription_4 = OptionDescription(name="2", doc="2", children=[], properties=frozenset({"advanced"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/10valid_enum_leader/__init__.py b/tests/dictionaries/60_0family_hidden/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_leader/__init__.py rename to tests/dictionaries/60_0family_hidden/__init__.py diff --git a/tests/dictionaries/60_0family_hidden/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_hidden/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..1112c77b3 --- /dev/null +++ b/tests/dictionaries/60_0family_hidden/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: '1.1' +family: # a family + var: # a variable diff --git a/tests/dictionaries/60_0family_hidden/dictionaries/rougail/01-base.yml b/tests/dictionaries/60_0family_hidden/dictionaries/rougail/01-base.yml new file mode 100644 index 000000000..5145fdba3 --- /dev/null +++ b/tests/dictionaries/60_0family_hidden/dictionaries/rougail/01-base.yml @@ -0,0 +1,5 @@ +--- +version: '1.1' +family: + redefine: true + hidden: true diff --git a/tests/dictionaries/60_0family_hidden/tiramisu/base.py b/tests/dictionaries/60_0family_hidden/tiramisu/base.py new file mode 100644 index 000000000..ef7406169 --- /dev/null +++ b/tests/dictionaries/60_0family_hidden/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_2 = OptionDescription(name="family", doc="a family", children=[option_3], properties=frozenset({"basic", "hidden"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_hidden/tiramisu/multi.py b/tests/dictionaries/60_0family_hidden/tiramisu/multi.py new file mode 100644 index 000000000..19baed125 --- /dev/null +++ b/tests/dictionaries/60_0family_hidden/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_3 = OptionDescription(name="family", doc="a family", children=[option_4], properties=frozenset({"basic", "hidden"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="a variable", properties=frozenset({"basic", "force_default_on_freeze", "frozen", "mandatory"})) +optiondescription_7 = OptionDescription(name="family", doc="a family", children=[option_8], properties=frozenset({"basic", "hidden"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_mandatory/__init__.py b/tests/dictionaries/60_0family_mode/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_mandatory/__init__.py rename to tests/dictionaries/60_0family_mode/__init__.py diff --git a/tests/dictionaries/60_0family_mode/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_0family_mode/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5e97e94d8 --- /dev/null +++ b/tests/dictionaries/60_0family_mode/dictionaries/rougail/00-base.yml @@ -0,0 +1,7 @@ +--- +version: '1.1' +family: # a family + var: + description: A variable + mode: basic + default: non diff --git a/tests/dictionaries/60_0family_mode/tiramisu/base.py b/tests/dictionaries/60_0family_mode/tiramisu/base.py new file mode 100644 index 000000000..b2d6d9a63 --- /dev/null +++ b/tests/dictionaries/60_0family_mode/tiramisu/base.py @@ -0,0 +1,11 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="A variable", default="non", properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = OptionDescription(name="family", doc="family", children=[option_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_0family_mode/tiramisu/multi.py b/tests/dictionaries/60_0family_mode/tiramisu/multi.py new file mode 100644 index 000000000..c25649f27 --- /dev/null +++ b/tests/dictionaries/60_0family_mode/tiramisu/multi.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="var", doc="A variable", default="non", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = OptionDescription(name="family", doc="family", children=[option_4], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="A variable", default="non", properties=frozenset({"basic", "mandatory"})) +optiondescription_7 = OptionDescription(name="family", doc="family", children=[option_8], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_7], properties=frozenset({"basic"})) +optiondescription_5 = OptionDescription(name="2", doc="2", children=[optiondescription_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/10valid_enum_multi/__init__.py b/tests/dictionaries/60_1family_dynamic_jinja/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_multi/__init__.py rename to tests/dictionaries/60_1family_dynamic_jinja/__init__.py diff --git a/tests/dictionaries/60_1family_dynamic_jinja/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_1family_dynamic_jinja/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..5c811b03a --- /dev/null +++ b/tests/dictionaries/60_1family_dynamic_jinja/dictionaries/rougail/00-base.yml @@ -0,0 +1,16 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: A dynamic family + type: dynamic + dynamic: + type: jinja + jinja: | + {% for val in _.var %} + {{ loop.index }} + {% endfor %} + description: index of suffix value + var: val # a dynamic variable diff --git a/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/base.py b/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/base.py new file mode 100644 index 000000000..02276ab64 --- /dev/null +++ b/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['dynamic_rougail.dyn{{ suffix }}'] = "{% for val in _.var %}\n{{ loop.index }}\n{% endfor %}\n" +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '_.var': ParamOption(option_2)})), children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/multi.py b/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/multi.py new file mode 100644 index 000000000..dfd86fb90 --- /dev/null +++ b/tests/dictionaries/60_1family_dynamic_jinja/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['dynamic_1.rougail.dyn{{ suffix }}'] = "{% for val in _.var %}\n{{ loop.index }}\n{% endfor %}\n" +dict_env['dynamic_2.rougail.dyn{{ suffix }}'] = "{% for val in _.var %}\n{{ loop.index }}\n{% endfor %}\n" +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_1.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '_.var': ParamOption(option_3)})), children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("dynamic_2.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '_.var': ParamOption(option_8)})), children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_none/__init__.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_none/__init__.py rename to tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/__init__.py diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e101e40be --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/dictionaries/rougail/00-base.yml @@ -0,0 +1,20 @@ +--- +version: '1.1' +var1: # a suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var1 + family: # a family + var: # with a variable +var2: + description: a second variable + default: + type: jinja + jinja: | + {{ _.dynval1.family.var }} + description: the value of var diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/base.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/base.py new file mode 100644 index 000000000..87df0a33a --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{{ _.dynval1.family.var }}\n" +option_2 = StrOption(name="var1", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="var", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = OptionDescription(name="family", doc="family", children=[option_5], properties=frozenset({"basic"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[optiondescription_4], properties=frozenset({"basic"})) +option_6 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_6], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/multi.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/multi.py new file mode 100644 index 000000000..fde8f22fe --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "{{ _.dynval1.family.var }}\n" +dict_env['default_2.rougail.var2'] = "{{ _.dynval1.family.var }}\n" +option_3 = StrOption(name="var1", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="var", doc="var", properties=frozenset({"basic", "mandatory"})) +optiondescription_5 = OptionDescription(name="family", doc="family", children=[option_6], properties=frozenset({"basic"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[optiondescription_5], properties=frozenset({"basic"})) +option_7 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_7], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="var1", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_13 = StrOption(name="var", doc="var", properties=frozenset({"basic", "mandatory"})) +optiondescription_12 = OptionDescription(name="family", doc="family", children=[option_13], properties=frozenset({"basic"})) +optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10)))), children=[optiondescription_12], properties=frozenset({"basic"})) +option_14 = StrOption(name="var2", doc="var2", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_13, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, optiondescription_11, option_14], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10valid_enum_number/__init__.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_number/__init__.py rename to tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/__init__.py diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..655921ff5 --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/dictionaries/rougail/00-base.yml @@ -0,0 +1,24 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + family: + description: a family inside dynamic family + var: + description: a dynamic variable + default: + type: 'suffix' +var2: + description: a varible outside dynamic family + default: + type: jinja + jinja: | + {{ _.dynval1.family.var }} + description: the value of var diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py new file mode 100644 index 000000000..11625efe4 --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{{ _.dynval1.family.var }}\n" +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a dynamic variable", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = OptionDescription(name="family", doc="a family inside dynamic family", children=[option_5], properties=frozenset({"standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[optiondescription_4], properties=frozenset({"standard"})) +option_6 = StrOption(name="var2", doc="a varible outside dynamic family", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py new file mode 100644 index 000000000..dcc7a44ad --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_jinja_fill_sub_group_2/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "{{ _.dynval1.family.var }}\n" +dict_env['default_2.rougail.var2'] = "{{ _.dynval1.family.var }}\n" +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="var", doc="a dynamic variable", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = OptionDescription(name="family", doc="a family inside dynamic family", children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[optiondescription_5], properties=frozenset({"standard"})) +option_7 = StrOption(name="var2", doc="a varible outside dynamic family", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_6, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_7], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_10 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_13 = StrOption(name="var", doc="a dynamic variable", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_12 = OptionDescription(name="family", doc="a family inside dynamic family", children=[option_13], properties=frozenset({"standard"})) +optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10)))), children=[optiondescription_12], properties=frozenset({"standard"})) +option_14 = StrOption(name="var2", doc="a varible outside dynamic family", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.family.var': ParamDynOption(option_13, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, optiondescription_11, option_14], properties=frozenset({"standard"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/10valid_enum_numberdefault/__init__.py b/tests/dictionaries/60_2family_dynamic_outside_calc/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_numberdefault/__init__.py rename to tests/dictionaries/60_2family_dynamic_outside_calc/__init__.py diff --git a/tests/dictionaries/60_2family_dynamic_outside_calc/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_2family_dynamic_outside_calc/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..cb401308f --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_outside_calc/dictionaries/rougail/00-base.yml @@ -0,0 +1,19 @@ +--- +version: '1.1' +var1: # a suffx variable + - val1 + - val2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var1 + var: val # a dynamic variable +newvar: + description: a second variable + default: + type: jinja + jinja: | + {{ _.dynval1.var }} + description: the value of var diff --git a/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/base.py b/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/base.py new file mode 100644 index 000000000..c79a7213b --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.newvar'] = "{{ _.dynval1.var }}\n" +option_2 = StrOption(name="var1", doc="a suffx variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +option_5 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.var': ParamDynOption(option_4, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/multi.py b/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/multi.py new file mode 100644 index 000000000..e8d611ce8 --- /dev/null +++ b/tests/dictionaries/60_2family_dynamic_outside_calc/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.newvar'] = "{{ _.dynval1.var }}\n" +dict_env['default_2.rougail.newvar'] = "{{ _.dynval1.var }}\n" +option_3 = StrOption(name="var1", doc="a suffx variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +option_6 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.var': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="var1", doc="a suffx variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="a dynamic variable", default="val", properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9)))), children=[option_11], properties=frozenset({"standard"})) +option_12 = StrOption(name="newvar", doc="newvar", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.newvar"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '_.dynval1.var': ParamDynOption(option_11, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_param_empty/__init__.py b/tests/dictionaries/60_5family_dynamic_calc2/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_param_empty/__init__.py rename to tests/dictionaries/60_5family_dynamic_calc2/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_calc2/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_calc2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..845a0e54b --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc2/dictionaries/rougail/00-base.yml @@ -0,0 +1,22 @@ +--- +version: '1.1' +var: # A suffix variable + - val1 + - val2 +var2: # a second variable +"dyn{{ suffix }}": + description: A dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + propertyerror: false + hidden: + type: jinja +#FIXME RELATIVE __.var2 + jinja: | + {% if rougail.var2 == "no" %} + var2 is no + {% endif %} + description: if var2 is no + vardyn: val # a dynamic variable diff --git a/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/base.py new file mode 100644 index 000000000..d425f69dc --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +dict_env['hidden_rougail.dyn{{ suffix }}'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_3 = StrOption(name="var2", doc="var2", properties=frozenset({"basic", "mandatory"})) +option_5 = StrOption(name="vardyn", doc="a dynamic variable", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, optiondescription_4], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/multi.py new file mode 100644 index 000000000..cf2084e1a --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc2/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['frozen_1.rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +dict_env['hidden_1.rougail.dyn{{ suffix }}'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +dict_env['frozen_2.rougail.dyn{{ suffix }}.vardyn'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +dict_env['hidden_2.rougail.dyn{{ suffix }}'] = "{% if rougail.var2 == \"no\" %}\nvar2 is no\n{% endif %}\n" +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var2", doc="var2", properties=frozenset({"basic", "mandatory"})) +option_6 = StrOption(name="vardyn", doc="a dynamic variable", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_1.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) +optiondescription_5 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_1.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_4)}), help_function=func['jinja_to_property_help'])})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, option_4, optiondescription_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var2", doc="var2", properties=frozenset({"basic", "mandatory"})) +option_12 = StrOption(name="vardyn", doc="a dynamic variable", default="val", properties=frozenset({"force_default_on_freeze", "mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("frozen")), kwargs={'__internal_jinja': ParamValue("frozen_2.rougail.dyn{{ suffix }}.vardyn"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) +optiondescription_11 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9, notraisepropertyerror=True)))), children=[option_12], properties=frozenset({"standard", Calculation(func['jinja_to_property'], Params((ParamValue("hidden")), kwargs={'__internal_jinja': ParamValue("hidden_2.rougail.dyn{{ suffix }}"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'rougail.var2': ParamOption(option_10)}), help_function=func['jinja_to_property_help'])})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, option_10, optiondescription_11], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_param_empty2/__init__.py b/tests/dictionaries/60_5family_dynamic_calc_suffix/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_param_empty2/__init__.py rename to tests/dictionaries/60_5family_dynamic_calc_suffix/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..9c85872c0 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix/dictionaries/rougail/00-base.yml @@ -0,0 +1,26 @@ +--- +version: '1.1' +var1: + description: A suffix variable + default: + - val1 + - val2 +"dyn{{ suffix }}": + type: dynamic + dynamic: + type: variable + variable: _.var1 + propertyerror: false + var: + description: A dynamic variable +var2: + description: A variable calculated + default: + type: jinja + jinja: | + {{ vardyn }} + params: + vardyn: + type: variable + variable: rougail.dynval1.var + description: from rougail.dynval1.var diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/base.py new file mode 100644 index 000000000..b64dc8449 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.var2'] = "{{ vardyn }}\n" +option_2 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[option_4], properties=frozenset({"basic"})) +option_5 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_4, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/multi.py new file mode 100644 index 000000000..55f76dfef --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.var2'] = "{{ vardyn }}\n" +dict_env['default_2.rougail.var2'] = "{{ vardyn }}\n" +option_3 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"basic"})) +option_6 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_5, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_10 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9, notraisepropertyerror=True)))), children=[option_11], properties=frozenset({"basic"})) +option_12 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.var2"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'vardyn': ParamDynOption(option_11, ['val1'])})), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/10valid_enum_quote/__init__.py b/tests/dictionaries/60_5family_dynamic_calc_suffix2/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_quote/__init__.py rename to tests/dictionaries/60_5family_dynamic_calc_suffix2/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix2/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_calc_suffix2/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..341b0bfa2 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix2/dictionaries/rougail/00-base.yml @@ -0,0 +1,15 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: + description: Suffix has value + default: + type: suffix diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/base.py new file mode 100644 index 000000000..75382f9b3 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="Suffix has value", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/multi.py new file mode 100644 index 000000000..84af66863 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix2/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="Suffix has value", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var", doc="Suffix has value", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8)))), children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/10valid_enum_value/__init__.py b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/__init__.py similarity index 100% rename from tests/dictionaries/10valid_enum_value/__init__.py rename to tests/dictionaries/60_5family_dynamic_calc_suffix_param/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..fb54fc8a8 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/dictionaries/rougail/00-base.yml @@ -0,0 +1,21 @@ +--- +version: '1.1' +var: # A suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: A dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: + description: A dynamic variable + default: + type: jinja + jinja: | + {{ suffix }} + params: + suffix: + type: suffix + description: from suffix diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/base.py new file mode 100644 index 000000000..6616f9412 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.dyn{{ suffix }}.var'] = "{{ suffix }}\n" +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="A dynamic variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'suffix': ParamSuffix()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/multi.py new file mode 100644 index 000000000..aac8381a8 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_suffix_param/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.dyn{{ suffix }}.var'] = "{{ suffix }}\n" +dict_env['default_2.rougail.dyn{{ suffix }}.var'] = "{{ suffix }}\n" +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="A dynamic variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'suffix': ParamSuffix()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_8 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_10 = StrOption(name="var", doc="A dynamic variable", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 'suffix': ParamSuffix()})), properties=frozenset({"mandatory", "standard"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_8)))), children=[option_10], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"standard"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/11autosave_hidden_frozenifin/__init__.py b/tests/dictionaries/60_5family_dynamic_calc_variable/__init__.py similarity index 100% rename from tests/dictionaries/11autosave_hidden_frozenifin/__init__.py rename to tests/dictionaries/60_5family_dynamic_calc_variable/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_calc_variable/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_calc_variable/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f11947bd9 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_variable/dictionaries/rougail/00-base.yml @@ -0,0 +1,20 @@ +--- +version: '1.1' +var1: + description: A suffix variable + default: + - val1 + - val2 +"dyn{{ suffix }}": + type: dynamic + dynamic: + type: variable + variable: _.var1 + propertyerror: false + var: + description: A dynamic variable +var2: + description: A variable calculated + default: + type: variable + variable: _.dynval1.var diff --git a/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/base.py new file mode 100644 index 000000000..25d341a10 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[option_4], properties=frozenset({"basic"})) +option_5 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/multi.py new file mode 100644 index 000000000..867eab1a2 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_calc_variable/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_5], properties=frozenset({"basic"})) +option_6 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_9 = StrOption(name="var1", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="A dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_10 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="dyn{{ suffix }}", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9, notraisepropertyerror=True)))), children=[option_11], properties=frozenset({"basic"})) +option_12 = StrOption(name="var2", doc="A variable calculated", default=Calculation(func['calc_value'], Params((ParamDynOption(option_11, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist/__init__.py b/tests/dictionaries/60_5family_dynamic_unknown_suffix/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist/__init__.py rename to tests/dictionaries/60_5family_dynamic_unknown_suffix/__init__.py diff --git a/tests/dictionaries/60_5family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..22233e8fd --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_unknown_suffix/dictionaries/rougail/00-base.yml @@ -0,0 +1,37 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 + +"{{ suffix }}_dyn": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var1: + description: a variable 1 + default: + type: suffix + var2: + description: a variable 2 + default: + type: variable + variable: rougail.{{ suffix }}_dyn.var1 + var3: + description: a variable 3 + default: + type: variable + variable: _.var1 + var4: + description: a variable 4 + default: + type: variable + variable: rougail.val4_dyn.var1 + disabled: + type: jinja + jinja: | + {% if 'val4' not in __.var %} + val4 is not a valid value + {% endif %} diff --git a/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/base.py new file mode 100644 index 000000000..b5060774d --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/base.py @@ -0,0 +1,16 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.var %}\nval4 is not a valid value\n{% endif %}\n" +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var1", doc="a variable 1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var2", doc="a variable 2", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="var3", doc="a variable 3", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var4", doc="a variable 4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.var': ParamOption(option_2)}), help_function=func['jinja_to_property_help'])})) +optiondescription_3 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/multi.py new file mode 100644 index 000000000..11c9b5a87 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_unknown_suffix/tiramisu/multi.py @@ -0,0 +1,26 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['disabled_1.rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.var %}\nval4 is not a valid value\n{% endif %}\n" +dict_env['disabled_2.rougail.{{ suffix }}_dyn.var4'] = "{% if 'val4' not in __.var %}\nval4 is not a valid value\n{% endif %}\n" +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var1", doc="a variable 1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="var2", doc="a variable 2", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var3", doc="a variable 3", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var4", doc="a variable 4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_1.rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.var': ParamOption(option_3)}), help_function=func['jinja_to_property_help'])})) +optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_11 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_13 = StrOption(name="var1", doc="a variable 1", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_14 = StrOption(name="var2", doc="a variable 2", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) +option_15 = StrOption(name="var3", doc="a variable 3", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) +option_16 = StrOption(name="var4", doc="a variable 4", default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val4'])))), properties=frozenset({"mandatory", "standard", Calculation(func['jinja_to_property'], Params((ParamValue("disabled")), kwargs={'__internal_jinja': ParamValue("disabled_2.rougail.{{ suffix }}_dyn.var4"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), '__.var': ParamOption(option_11)}), help_function=func['jinja_to_property_help'])})) +optiondescription_12 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_11)))), children=[option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, optiondescription_12], properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_variable_outside/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f98472ed3 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside/dictionaries/rougail/00-base.yml @@ -0,0 +1,22 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"my_dyn_family_{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: + description: a variable inside a dynamic family + default: + type: suffix + mandatory: false +var2: + description: a variable + multi: true + default: + type: variable + variable: "rougail.my_dyn_family_{{ suffix }}.var" diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/base.py new file mode 100644 index 000000000..a1d26e0fd --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="a variable inside a dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +option_5 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/multi.py new file mode 100644 index 000000000..26706b90f --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a variable inside a dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +option_6 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="a variable inside a dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"standard"})) +optiondescription_10 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9)))), children=[option_11], properties=frozenset({"standard"})) +option_12 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamOption(option_11)))), properties=frozenset({"mandatory", "notempty", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..145779dbe --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/dictionaries/rougail/00-base.yml @@ -0,0 +1,29 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"my_dyn_family_{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + propertyerror: false + "subdyn_{{ suffix }}": + description: a sub dynamic family + type: dynamic + dynamic: + type: variable + variable: rougail.var + var: + description: a variable inside a sub dynamic family + default: + type: suffix +var2: + description: a variable + mandatory: false + multi: true + default: + type: variable + variable: "rougail.my_dyn_family_val1.subdyn_{{ suffix }}.var" diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/base.py new file mode 100644 index 000000000..ded8893c0 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/base.py @@ -0,0 +1,14 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a variable inside a sub dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="a sub dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_5], properties=frozenset({"standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2, notraisepropertyerror=True)))), children=[optiondescription_4], properties=frozenset({"standard"})) +option_6 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1', None])))), properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_6], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py new file mode 100644 index 000000000..dc27faaef --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_sub_suffix/tiramisu/multi.py @@ -0,0 +1,22 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="var", doc="a variable inside a sub dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="a sub dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_6], properties=frozenset({"standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[optiondescription_5], properties=frozenset({"standard"})) +option_7 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_6, ['val1', None])))), properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_7], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_10 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_13 = StrOption(name="var", doc="a variable inside a sub dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_12 = ConvertDynOptionDescription(name="subdyn_{{ suffix }}", doc="a sub dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10)))), children=[option_13], properties=frozenset({"standard"})) +optiondescription_11 = ConvertDynOptionDescription(name="my_dyn_family_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_10, notraisepropertyerror=True)))), children=[optiondescription_12], properties=frozenset({"standard"})) +option_14 = StrOption(name="var2", doc="a variable", multi=True, default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val1', None])))), properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[option_10, optiondescription_11, option_14], properties=frozenset({"standard"})) +optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..6f7ca9f3a --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/dictionaries/rougail/00-base.yml @@ -0,0 +1,20 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"dyn_{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: + description: a variable inside dynamic family + default: + type: suffix +var2: + description: a variable + default: + type: variable + variable: _.dyn_val1.var diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/base.py b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/base.py new file mode 100644 index 000000000..2fa6edce3 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="a variable inside dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4], properties=frozenset({"standard"})) +option_5 = StrOption(name="var2", doc="a variable", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3, option_5], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/multi.py b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/multi.py new file mode 100644 index 000000000..0587a0c82 --- /dev/null +++ b/tests/dictionaries/60_5family_dynamic_variable_outside_suffix/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="a variable inside dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5], properties=frozenset({"standard"})) +option_6 = StrOption(name="var2", doc="a variable", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4, option_6], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_9 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_11 = StrOption(name="var", doc="a variable inside dynamic family", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +optiondescription_10 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_9)))), children=[option_11], properties=frozenset({"standard"})) +option_12 = StrOption(name="var2", doc="a variable", default=Calculation(func['calc_value'], Params((ParamDynOption(option_11, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[option_9, optiondescription_10, option_12], properties=frozenset({"standard"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean/__init__.py b/tests/dictionaries/60_6family_dynamic_inside/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist_boolean/__init__.py rename to tests/dictionaries/60_6family_dynamic_inside/__init__.py diff --git a/tests/dictionaries/60_6family_dynamic_inside/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_6family_dynamic_inside/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..d45b203ba --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_inside/dictionaries/rougail/00-base.yml @@ -0,0 +1,31 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 + +"{{ suffix }}_dyn": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var1: + description: value is suffix + default: + type: suffix + var2: + description: value is first variable + default: + type: variable + variable: rougail.{{ suffix }}_dyn.var1 + var3: + description: value is relative first variable + default: + type: variable + variable: _.var1 + var4: + description: value is first variable of val1 + default: + type: variable + variable: rougail.val1_dyn.var1 diff --git a/tests/dictionaries/60_6family_dynamic_inside/tiramisu/base.py b/tests/dictionaries/60_6family_dynamic_inside/tiramisu/base.py new file mode 100644 index 000000000..519a7fa83 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_inside/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var1", doc="value is suffix", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="var2", doc="value is first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="var3", doc="value is relative first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_4)))), properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var4", doc="value is first variable of val1", default=Calculation(func['calc_value'], Params((ParamDynOption(option_4, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4, option_5, option_6, option_7], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_6family_dynamic_inside/tiramisu/multi.py b/tests/dictionaries/60_6family_dynamic_inside/tiramisu/multi.py new file mode 100644 index 000000000..903e04450 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_inside/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var1", doc="value is suffix", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_6 = StrOption(name="var2", doc="value is first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var3", doc="value is relative first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_5)))), properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var4", doc="value is first variable of val1", default=Calculation(func['calc_value'], Params((ParamDynOption(option_5, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5, option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_11 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_13 = StrOption(name="var1", doc="value is suffix", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_14 = StrOption(name="var2", doc="value is first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) +option_15 = StrOption(name="var3", doc="value is relative first variable", default=Calculation(func['calc_value'], Params((ParamOption(option_13)))), properties=frozenset({"mandatory", "standard"})) +option_16 = StrOption(name="var4", doc="value is first variable of val1", default=Calculation(func['calc_value'], Params((ParamDynOption(option_13, ['val1'])))), properties=frozenset({"mandatory", "standard"})) +optiondescription_12 = ConvertDynOptionDescription(name="{{ suffix }}_dyn", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_11)))), children=[option_13, option_14, option_15, option_16], properties=frozenset({"standard"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, optiondescription_12], properties=frozenset({"standard"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_boolean2/__init__.py b/tests/dictionaries/60_6family_dynamic_leadership/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist_boolean2/__init__.py rename to tests/dictionaries/60_6family_dynamic_leadership/__init__.py diff --git a/tests/dictionaries/60_6family_dynamic_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_6family_dynamic_leadership/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..e9f2a1e04 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_leadership/dictionaries/rougail/00-base.yml @@ -0,0 +1,23 @@ +--- +version: '1.1' +var: # a suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: a dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + leadership: + description: a leadership + type: leadership + leader: + description: a leader + multi: true + follower1: + description: a follower1 + mandatory: false + follower2: + description: a follower2 + mandatory: false diff --git a/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/base.py b/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/base.py new file mode 100644 index 000000000..de889bf48 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/base.py @@ -0,0 +1,15 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_6 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) +optiondescription_4 = Leadership(name="leadership", doc="a leadership", children=[option_5, option_6, option_7], properties=frozenset({"basic"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/multi.py b/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/multi.py new file mode 100644 index 000000000..6468097f8 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_leadership/tiramisu/multi.py @@ -0,0 +1,24 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_7 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_8 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) +optiondescription_5 = Leadership(name="leadership", doc="a leadership", children=[option_6, option_7, option_8], properties=frozenset({"basic"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[optiondescription_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_11 = StrOption(name="var", doc="a suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_14 = StrOption(name="leader", doc="a leader", multi=True, properties=frozenset({"basic", "mandatory", "notempty"})) +option_15 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_16 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"standard"})) +optiondescription_13 = Leadership(name="leadership", doc="a leadership", children=[option_14, option_15, option_16], properties=frozenset({"basic"})) +optiondescription_12 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_11)))), children=[optiondescription_13], properties=frozenset({"basic"})) +optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[option_11, optiondescription_12], properties=frozenset({"basic"})) +optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_disabled/__init__.py b/tests/dictionaries/60_6family_dynamic_sub_dynamic/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist_disabled/__init__.py rename to tests/dictionaries/60_6family_dynamic_sub_dynamic/__init__.py diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_6family_dynamic_sub_dynamic/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..4e88baa0d --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic/dictionaries/rougail/00-base.yml @@ -0,0 +1,50 @@ +--- +version: '1.1' +var: # A suffix variable + - val1 + - val2 +"dyn{{ suffix }}": + description: A dynamic family + type: dynamic + dynamic: + type: variable + variable: _.var + var: + description: A dynamic variable + multi: true + default: + type: jinja + jinja: | + {% for val in __.var %} + t{{ val }} + {% endfor %} + description: add 't' to each var value + "dyn_{{ suffix }}": + description: a Second dynamic variable + type: dynamic + dynamic: + type: variable + variable: "rougail.dyn{{ suffix }}.var" + var: + description: A variable dynamic + default: + type: suffix + var_suffix: + description: suffix from first family + default: + type: suffix + suffix: 0 + var_suffixes: + description: merge suffixes + default: + type: jinja + jinja: | + {{ s1 }}-{{ s2 }} + params: + s1: + type: suffix + suffix: 0 + s2: + type: suffix + suffix: 1 + description: join suffix 1 et suffix 2 diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/base.py b/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/base.py new file mode 100644 index 000000000..f5c977bc2 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/base.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_rougail.dyn{{ suffix }}.var'] = "{% for val in __.var %}\nt{{ val }}\n{% endfor %}\n" +dict_env['default_rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes'] = "{{ s1 }}-{{ s2 }}\n" +option_2 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_4 = StrOption(name="var", doc="A dynamic variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '__.var': ParamOption(option_2)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_6 = StrOption(name="var", doc="A variable dynamic", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_7 = StrOption(name="var_suffix", doc="suffix from first family", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var_suffixes", doc="merge suffixes", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_5 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a Second dynamic variable", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_4)))), children=[option_6, option_7, option_8], properties=frozenset({"standard"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_2)))), children=[option_4, optiondescription_5], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/multi.py b/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/multi.py new file mode 100644 index 000000000..e69be0250 --- /dev/null +++ b/tests/dictionaries/60_6family_dynamic_sub_dynamic/tiramisu/multi.py @@ -0,0 +1,30 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +dict_env['default_1.rougail.dyn{{ suffix }}.var'] = "{% for val in __.var %}\nt{{ val }}\n{% endfor %}\n" +dict_env['default_1.rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes'] = "{{ s1 }}-{{ s2 }}\n" +dict_env['default_2.rougail.dyn{{ suffix }}.var'] = "{% for val in __.var %}\nt{{ val }}\n{% endfor %}\n" +dict_env['default_2.rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes'] = "{{ s1 }}-{{ s2 }}\n" +option_3 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_5 = StrOption(name="var", doc="A dynamic variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '__.var': ParamOption(option_3)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_7 = StrOption(name="var", doc="A variable dynamic", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_8 = StrOption(name="var_suffix", doc="suffix from first family", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) +option_9 = StrOption(name="var_suffixes", doc="merge suffixes", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_6 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a Second dynamic variable", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_5)))), children=[option_7, option_8, option_9], properties=frozenset({"standard"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_3)))), children=[option_5, optiondescription_6], properties=frozenset({"standard"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"standard"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"standard"})) +option_12 = StrOption(name="var", doc="A suffix variable", multi=True, default=["val1", "val2"], default_multi="val1", properties=frozenset({"mandatory", "notempty", "standard"})) +option_14 = StrOption(name="var", doc="A dynamic variable", multi=True, default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn{{ suffix }}.var"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(True), '__.var': ParamOption(option_12)})), properties=frozenset({"mandatory", "notempty", "standard"})) +option_16 = StrOption(name="var", doc="A variable dynamic", default=Calculation(func['calc_value'], Params((ParamSuffix()))), properties=frozenset({"mandatory", "standard"})) +option_17 = StrOption(name="var_suffix", doc="suffix from first family", default=Calculation(func['calc_value'], Params((ParamSuffix(suffix_index=0)))), properties=frozenset({"mandatory", "standard"})) +option_18 = StrOption(name="var_suffixes", doc="merge suffixes", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.rougail.dyn{{ suffix }}.dyn_{{ suffix }}.var_suffixes"), '__internal_type': ParamValue("string"), '__internal_multi': ParamValue(False), 's1': ParamSuffix(suffix_index=0), 's2': ParamSuffix(suffix_index=1)})), properties=frozenset({"mandatory", "standard"})) +optiondescription_15 = ConvertDynOptionDescription(name="dyn_{{ suffix }}", doc="a Second dynamic variable", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_14)))), children=[option_16, option_17, option_18], properties=frozenset({"standard"})) +optiondescription_13 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="A dynamic family", suffixes=Calculation(func['calc_value'], Params((ParamOption(option_12)))), children=[option_14, optiondescription_15], properties=frozenset({"standard"})) +optiondescription_11 = OptionDescription(name="rougail", doc="rougail", children=[option_12, optiondescription_13], properties=frozenset({"standard"})) +optiondescription_10 = OptionDescription(name="2", doc="2", children=[optiondescription_11], properties=frozenset({"standard"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_10]) diff --git a/tests/dictionaries/11disabled_if_in_filelist_multi/__init__.py b/tests/dictionaries/60_9extra_dynamic/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist_multi/__init__.py rename to tests/dictionaries/60_9extra_dynamic/__init__.py diff --git a/tests/dictionaries/60_9extra_dynamic/dictionaries/extra/00-base.yml b/tests/dictionaries/60_9extra_dynamic/dictionaries/extra/00-base.yml new file mode 100644 index 000000000..1740b2d9e --- /dev/null +++ b/tests/dictionaries/60_9extra_dynamic/dictionaries/extra/00-base.yml @@ -0,0 +1,8 @@ +--- +version: 1.1 +dyn_{{ suffix }}: + type: dynamic + dynamic: + type: variable + variable: rougail.var + var: diff --git a/tests/dictionaries/60_9extra_dynamic/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_9extra_dynamic/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..af1ce8860 --- /dev/null +++ b/tests/dictionaries/60_9extra_dynamic/dictionaries/rougail/00-base.yml @@ -0,0 +1,4 @@ +--- +version: 1.1 +var: # a variable + - a diff --git a/tests/dictionaries/61extra_dyn/makedict/after.json b/tests/dictionaries/60_9extra_dynamic/makedict/after.json similarity index 100% rename from tests/dictionaries/61extra_dyn/makedict/after.json rename to tests/dictionaries/60_9extra_dynamic/makedict/after.json diff --git a/tests/dictionaries/61extra_dyn/makedict/base.json b/tests/dictionaries/60_9extra_dynamic/makedict/base.json similarity index 100% rename from tests/dictionaries/61extra_dyn/makedict/base.json rename to tests/dictionaries/60_9extra_dynamic/makedict/base.json diff --git a/tests/dictionaries/61extra_dyn/makedict/before.json b/tests/dictionaries/60_9extra_dynamic/makedict/before.json similarity index 100% rename from tests/dictionaries/61extra_dyn/makedict/before.json rename to tests/dictionaries/60_9extra_dynamic/makedict/before.json diff --git a/tests/dictionaries/10load_disabled_if_in_variable/makedict/mandatory.json b/tests/dictionaries/60_9extra_dynamic/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_variable/makedict/mandatory.json rename to tests/dictionaries/60_9extra_dynamic/makedict/mandatory.json diff --git a/tests/dictionaries/61extra_dyn/tiramisu/base.py b/tests/dictionaries/60_9extra_dynamic/tiramisu/base.py similarity index 100% rename from tests/dictionaries/61extra_dyn/tiramisu/base.py rename to tests/dictionaries/60_9extra_dynamic/tiramisu/base.py diff --git a/tests/dictionaries/61extra_dyn/tiramisu/multi.py b/tests/dictionaries/60_9extra_dynamic/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/61extra_dyn/tiramisu/multi.py rename to tests/dictionaries/60_9extra_dynamic/tiramisu/multi.py diff --git a/tests/dictionaries/11disabled_if_in_filelist_same_name/__init__.py b/tests/dictionaries/60_9extra_dynamic_extra/__init__.py similarity index 100% rename from tests/dictionaries/11disabled_if_in_filelist_same_name/__init__.py rename to tests/dictionaries/60_9extra_dynamic_extra/__init__.py diff --git a/tests/dictionaries/60_9extra_dynamic_extra/dictionaries/extra/00-base.yml b/tests/dictionaries/60_9extra_dynamic_extra/dictionaries/extra/00-base.yml new file mode 100644 index 000000000..fbd09ed71 --- /dev/null +++ b/tests/dictionaries/60_9extra_dynamic_extra/dictionaries/extra/00-base.yml @@ -0,0 +1,10 @@ +--- +version: '1.1' +var: # a varaible + - a +"dyn_{{ suffix }}": + type: dynamic + dynamic: + type: variable + variable: _.var + var: diff --git a/tests/dictionaries/61extra_dyn_extra/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_9extra_dynamic_extra/dictionaries/rougail/00-base.yml similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/dictionaries/rougail/00-base.yml rename to tests/dictionaries/60_9extra_dynamic_extra/dictionaries/rougail/00-base.yml diff --git a/tests/dictionaries/61extra_dyn_extra/makedict/after.json b/tests/dictionaries/60_9extra_dynamic_extra/makedict/after.json similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/makedict/after.json rename to tests/dictionaries/60_9extra_dynamic_extra/makedict/after.json diff --git a/tests/dictionaries/61extra_dyn_extra/makedict/base.json b/tests/dictionaries/60_9extra_dynamic_extra/makedict/base.json similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/makedict/base.json rename to tests/dictionaries/60_9extra_dynamic_extra/makedict/base.json diff --git a/tests/dictionaries/61extra_dyn_extra/makedict/before.json b/tests/dictionaries/60_9extra_dynamic_extra/makedict/before.json similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/makedict/before.json rename to tests/dictionaries/60_9extra_dynamic_extra/makedict/before.json diff --git a/tests/dictionaries/10load_disabled_if_in_variable2/makedict/mandatory.json b/tests/dictionaries/60_9extra_dynamic_extra/makedict/mandatory.json similarity index 100% rename from tests/dictionaries/10load_disabled_if_in_variable2/makedict/mandatory.json rename to tests/dictionaries/60_9extra_dynamic_extra/makedict/mandatory.json diff --git a/tests/dictionaries/61extra_dyn_extra/tiramisu/base.py b/tests/dictionaries/60_9extra_dynamic_extra/tiramisu/base.py similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/tiramisu/base.py rename to tests/dictionaries/60_9extra_dynamic_extra/tiramisu/base.py diff --git a/tests/dictionaries/61extra_dyn_extra/tiramisu/multi.py b/tests/dictionaries/60_9extra_dynamic_extra/tiramisu/multi.py similarity index 100% rename from tests/dictionaries/61extra_dyn_extra/tiramisu/multi.py rename to tests/dictionaries/60_9extra_dynamic_extra/tiramisu/multi.py diff --git a/tests/dictionaries/11disabledifin_filelist_notexist/__init__.py b/tests/dictionaries/60_9family_dynamic_calc_both/__init__.py similarity index 100% rename from tests/dictionaries/11disabledifin_filelist_notexist/__init__.py rename to tests/dictionaries/60_9family_dynamic_calc_both/__init__.py diff --git a/tests/dictionaries/60_9family_dynamic_calc_both/dictionaries/rougail/00-base.yml b/tests/dictionaries/60_9family_dynamic_calc_both/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..f9cb51dd8 --- /dev/null +++ b/tests/dictionaries/60_9family_dynamic_calc_both/dictionaries/rougail/00-base.yml @@ -0,0 +1,11 @@ +--- +version: '1.1' +var: val2 # a suffix variable +"dyn{{ suffix }}": + type: dynamic + description: a dynamic family + dynamic: + - val1 + - type: variable + variable: _.var + vardyn: # a dynamic variable diff --git a/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/base.py b/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/base.py new file mode 100644 index 000000000..fc765465e --- /dev/null +++ b/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/base.py @@ -0,0 +1,12 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_2 = StrOption(name="var", doc="a suffix variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_4 = StrOption(name="vardyn", doc="a dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_2))))], children=[option_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, optiondescription_3], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/multi.py b/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/multi.py new file mode 100644 index 000000000..2638b005f --- /dev/null +++ b/tests/dictionaries/60_9family_dynamic_calc_both/tiramisu/multi.py @@ -0,0 +1,18 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="var", doc="a suffix variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_5 = StrOption(name="vardyn", doc="a dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_4 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_3))))], children=[option_5], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[option_3, optiondescription_4], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_8 = StrOption(name="var", doc="a suffix variable", default="val2", properties=frozenset({"mandatory", "standard"})) +option_10 = StrOption(name="vardyn", doc="a dynamic variable", properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = ConvertDynOptionDescription(name="dyn{{ suffix }}", doc="a dynamic family", suffixes=["val1", Calculation(func['calc_value'], Params((ParamOption(option_8))))], children=[option_10], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="rougail", doc="rougail", children=[option_8, optiondescription_9], properties=frozenset({"basic"})) +optiondescription_6 = OptionDescription(name="2", doc="2", children=[optiondescription_7], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/60action_external/__init__.py b/tests/dictionaries/60action_external/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60action_external/dictionaries/extra/00-base.yml b/tests/dictionaries/60action_external/dictionaries/extra/00-base.yml deleted file mode 100644 index 547753283..000000000 --- a/tests/dictionaries/60action_external/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,14 +0,0 @@ -test: - delay: - type: number - description: délai en minutes avant lancement - default: 0 - calc_url: - type: web_address - description: domain - hidden: true - default: - type: jinja - jinja: '{{ "http://localhost/" | calc_val }}' - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/60action_external/dictionaries/rougail/00-base.yml b/tests/dictionaries/60action_external/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1085cc1cc..000000000 --- a/tests/dictionaries/60action_external/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60action_external/makedict/after.json b/tests/dictionaries/60action_external/makedict/after.json deleted file mode 100644 index 8bb18d68c..000000000 --- a/tests/dictionaries/60action_external/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - }, - "extra.test.calc_url": { - "owner": "default", - "value": "http://localhost/" - } -} diff --git a/tests/dictionaries/60action_external/makedict/base.json b/tests/dictionaries/60action_external/makedict/base.json deleted file mode 100644 index 553f555e2..000000000 --- a/tests/dictionaries/60action_external/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "extra.test.delay": 0, - "extra.test.calc_url": "http://localhost/" -} diff --git a/tests/dictionaries/60action_external/makedict/before.json b/tests/dictionaries/60action_external/makedict/before.json deleted file mode 100644 index 8bb18d68c..000000000 --- a/tests/dictionaries/60action_external/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - }, - "extra.test.calc_url": { - "owner": "default", - "value": "http://localhost/" - } -} diff --git a/tests/dictionaries/60action_external/makedict/mandatory.json b/tests/dictionaries/60action_external/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60action_external/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60action_external/tiramisu/base.py b/tests/dictionaries/60action_external/tiramisu/base.py deleted file mode 100644 index 365952035..000000000 --- a/tests/dictionaries/60action_external/tiramisu/base.py +++ /dev/null @@ -1,16 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.test.calc_url'] = "{{ \"http://localhost/\" | calc_val }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_7 = URLOption(name="calc_url", doc="domain", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.test.calc_url"), '__internal_type': ParamValue("web_address"), '__internal_multi': ParamValue(False)})), allow_ip=False, allow_without_dot=True, properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_5 = OptionDescription(name="test", doc="test", children=[option_6, option_7], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="extra", doc="extra", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/60action_external/tiramisu/multi.py b/tests/dictionaries/60action_external/tiramisu/multi.py deleted file mode 100644 index ec417ebac..000000000 --- a/tests/dictionaries/60action_external/tiramisu/multi.py +++ /dev/null @@ -1,26 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.test.calc_url'] = "{{ \"http://localhost/\" | calc_val }}" -dict_env['default_2.extra.test.calc_url'] = "{{ \"http://localhost/\" | calc_val }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_7 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_8 = URLOption(name="calc_url", doc="domain", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.test.calc_url"), '__internal_type': ParamValue("web_address"), '__internal_multi': ParamValue(False)})), allow_ip=False, allow_without_dot=True, properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_6 = OptionDescription(name="test", doc="test", children=[option_7, option_8], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_5], properties=frozenset({"standard"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="général", children=[option_12], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -option_15 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_16 = URLOption(name="calc_url", doc="domain", default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.test.calc_url"), '__internal_type': ParamValue("web_address"), '__internal_multi': ParamValue(False)})), allow_ip=False, allow_without_dot=True, properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "standard"})) -optiondescription_14 = OptionDescription(name="test", doc="test", children=[option_15, option_16], properties=frozenset({"standard"})) -optiondescription_13 = OptionDescription(name="extra", doc="extra", children=[optiondescription_14], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10, optiondescription_13], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/60extra_basic/__init__.py b/tests/dictionaries/60extra_basic/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_basic/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_basic/dictionaries/extra/00-base.yml deleted file mode 100644 index 4ff97856b..000000000 --- a/tests/dictionaries/60extra_basic/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -ejabberd: - description: - type: string - mode: basic - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.general.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_basic/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_basic/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_basic/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_help/__init__.py b/tests/dictionaries/60extra_help/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_help/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_help/dictionaries/extra/00-base.yml deleted file mode 100644 index e510a60a9..000000000 --- a/tests/dictionaries/60extra_help/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,30 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - help: Test help - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.general.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_help/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_help/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_help/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_help/makedict/after.json b/tests/dictionaries/60extra_help/makedict/after.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_help/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_help/makedict/base.json b/tests/dictionaries/60extra_help/makedict/base.json deleted file mode 100644 index 242a818de..000000000 --- a/tests/dictionaries/60extra_help/makedict/base.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": null, - "extra.ejabberd.mode": "pre" -} diff --git a/tests/dictionaries/60extra_help/makedict/before.json b/tests/dictionaries/60extra_help/makedict/before.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_help/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_help/makedict/mandatory.json b/tests/dictionaries/60extra_help/makedict/mandatory.json deleted file mode 100644 index ac1181c0a..000000000 --- a/tests/dictionaries/60extra_help/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.ejabberd.day"] \ No newline at end of file diff --git a/tests/dictionaries/60extra_help/tiramisu/base.py b/tests/dictionaries/60extra_help/tiramisu/base.py deleted file mode 100644 index 03b9cde1a..000000000 --- a/tests/dictionaries/60extra_help/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_8 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_4, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"}), informations={'help': 'Test help'}) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_help/tiramisu/multi.py b/tests/dictionaries/60extra_help/tiramisu/multi.py deleted file mode 100644 index 75f0ec275..000000000 --- a/tests/dictionaries/60extra_help/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -dict_env['default_2.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_5, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"}), informations={'help': 'Test help'}) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_18 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_19 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_15, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"}), informations={'help': 'Test help'}) -option_20 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_leadership/__init__.py b/tests/dictionaries/60extra_leadership/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_leadership/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_leadership/dictionaries/extra/00-base.yml deleted file mode 100644 index eacf9828e..000000000 --- a/tests/dictionaries/60extra_leadership/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -ejabberd: - leadership: - type: leadership - _description: description - description: - type: string - multi: true - default: - - test - mode: - type: string - default: pre -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_leadership/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_leadership/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership/makedict/after.json b/tests/dictionaries/60extra_leadership/makedict/after.json deleted file mode 100644 index efe0f4a99..000000000 --- a/tests/dictionaries/60extra_leadership/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.leadership.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.leadership.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership/makedict/base.json b/tests/dictionaries/60extra_leadership/makedict/base.json deleted file mode 100644 index 3c10bab59..000000000 --- a/tests/dictionaries/60extra_leadership/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.leadership.description": [ - { - "extra.ejabberd.leadership.description": "test", - "extra.ejabberd.leadership.mode": "pre" - } - ] -} diff --git a/tests/dictionaries/60extra_leadership/makedict/before.json b/tests/dictionaries/60extra_leadership/makedict/before.json deleted file mode 100644 index efe0f4a99..000000000 --- a/tests/dictionaries/60extra_leadership/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.leadership.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.leadership.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership/makedict/mandatory.json b/tests/dictionaries/60extra_leadership/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_leadership/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_leadership/result/etc/mailname b/tests/dictionaries/60extra_leadership/result/etc/mailname deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership/result/etc/mailname +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership/result/etc/mailname2 b/tests/dictionaries/60extra_leadership/result/etc/mailname2 deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership/result/etc/mailname2 +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/60extra_leadership/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 599c6ecb8..000000000 --- a/tests/dictionaries/60extra_leadership/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1,2 +0,0 @@ -C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname -C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2 diff --git a/tests/dictionaries/60extra_leadership/tiramisu/base.py b/tests/dictionaries/60extra_leadership/tiramisu/base.py deleted file mode 100644 index a557ebd93..000000000 --- a/tests/dictionaries/60extra_leadership/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_9 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = Leadership(name="leadership", doc="description", children=[option_8, option_9], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_leadership/tiramisu/multi.py b/tests/dictionaries/60extra_leadership/tiramisu/multi.py deleted file mode 100644 index cf30a36c3..000000000 --- a/tests/dictionaries/60extra_leadership/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_9 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = Leadership(name="leadership", doc="description", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_19 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_20 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_18 = Leadership(name="leadership", doc="description", children=[option_19, option_20], properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_18], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_leadership/tmpl/mailname b/tests/dictionaries/60extra_leadership/tmpl/mailname deleted file mode 100644 index c98064496..000000000 --- a/tests/dictionaries/60extra_leadership/tmpl/mailname +++ /dev/null @@ -1,35 +0,0 @@ -%if 'test' in %%extra.ejabberd.leadership.description -contain test -%end if -%%len(%%extra.ejabberd.leadership.description) -%if 'a' in %%extra.ejabberd.leadership.description -contain a -%end if -%for %%description in %%extra.ejabberd.leadership.description -leader: %%description -follower: %%description.mode -%if %%description <= %%description.mode -infeq -%end if -%if %%description >= %%description.mode -supeq -%end if -%if %%description < %%description.mode -inf -%end if -%if %%description > %%description.mode -sup -%end if -%if %%description == %%description.mode -eq -%end if -%if %%description != %%description.mode -diff -%end if -%set %%var = %%description + %%description.mode -%%var -%set %%var = %%description.mode + %%description -%%var -%end for -leader2: %%extra.ejabberd.leadership.description[0] -follower2: %%extra.ejabberd.leadership.description[0].mode diff --git a/tests/dictionaries/60extra_leadership/tmpl/mailname2 b/tests/dictionaries/60extra_leadership/tmpl/mailname2 deleted file mode 100644 index fd6190b4b..000000000 --- a/tests/dictionaries/60extra_leadership/tmpl/mailname2 +++ /dev/null @@ -1,33 +0,0 @@ -{% if 'test' in extra.ejabberd.leadership.description -%} -contain test -{% endif -%} -{{ extra.ejabberd.leadership.description|length }} -{% if 'a' in extra.ejabberd.leadership.description -%} -contain a -{% endif -%} -{% for description in extra.ejabberd.leadership.description -%} -leader: {{ description }} -follower: {{ description.mode }} -{% if description <= description.mode -%} -infeq -{% endif -%} -{% if description >= description.mode -%} -supeq -{% endif -%} -{% if description < description.mode -%} -inf -{% endif -%} -{% if description > description.mode -%} -sup -{% endif -%} -{% if description == description.mode -%} -eq -{% endif -%} -{% if description != description.mode -%} -diff -{% endif -%} -{{ description + description.mode }} -{{ description.mode + description }} -{% endfor -%} -leader2: {{ extra.ejabberd.leadership.description[0] }} -follower2: {{ extra.ejabberd.leadership.description[0].mode }} diff --git a/tests/dictionaries/60extra_leadership_name/__init__.py b/tests/dictionaries/60extra_leadership_name/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_leadership_name/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_leadership_name/dictionaries/extra/00-base.yml deleted file mode 100644 index d3a06a971..000000000 --- a/tests/dictionaries/60extra_leadership_name/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -ejabberd: - new_name: - type: leadership - _description: new_name - description: - type: string - multi: true - default: - - test - mode: - type: string - default: pre -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_name/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_leadership_name/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_leadership_name/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_name/makedict/after.json b/tests/dictionaries/60extra_leadership_name/makedict/after.json deleted file mode 100644 index 0c3ab5035..000000000 --- a/tests/dictionaries/60extra_leadership_name/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.new_name.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.new_name.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_name/makedict/base.json b/tests/dictionaries/60extra_leadership_name/makedict/base.json deleted file mode 100644 index 0d7dadf09..000000000 --- a/tests/dictionaries/60extra_leadership_name/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.new_name.description": [ - { - "extra.ejabberd.new_name.description": "test", - "extra.ejabberd.new_name.mode": "pre" - } - ] -} diff --git a/tests/dictionaries/60extra_leadership_name/makedict/before.json b/tests/dictionaries/60extra_leadership_name/makedict/before.json deleted file mode 100644 index 0c3ab5035..000000000 --- a/tests/dictionaries/60extra_leadership_name/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.new_name.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.new_name.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_name/makedict/mandatory.json b/tests/dictionaries/60extra_leadership_name/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_leadership_name/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_leadership_name/result/etc/mailname b/tests/dictionaries/60extra_leadership_name/result/etc/mailname deleted file mode 100644 index a3fa3a51e..000000000 --- a/tests/dictionaries/60extra_leadership_name/result/etc/mailname +++ /dev/null @@ -1,12 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre -index: 0 diff --git a/tests/dictionaries/60extra_leadership_name/result/etc/mailname2 b/tests/dictionaries/60extra_leadership_name/result/etc/mailname2 deleted file mode 100644 index a3fa3a51e..000000000 --- a/tests/dictionaries/60extra_leadership_name/result/etc/mailname2 +++ /dev/null @@ -1,12 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre -index: 0 diff --git a/tests/dictionaries/60extra_leadership_name/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/60extra_leadership_name/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 599c6ecb8..000000000 --- a/tests/dictionaries/60extra_leadership_name/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1,2 +0,0 @@ -C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname -C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2 diff --git a/tests/dictionaries/60extra_leadership_name/tiramisu/base.py b/tests/dictionaries/60extra_leadership_name/tiramisu/base.py deleted file mode 100644 index fbcd45c42..000000000 --- a/tests/dictionaries/60extra_leadership_name/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_9 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = Leadership(name="new_name", doc="new_name", children=[option_8, option_9], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_leadership_name/tiramisu/multi.py b/tests/dictionaries/60extra_leadership_name/tiramisu/multi.py deleted file mode 100644 index 1e7d9f5b8..000000000 --- a/tests/dictionaries/60extra_leadership_name/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_9 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = Leadership(name="new_name", doc="new_name", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_19 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_20 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_18 = Leadership(name="new_name", doc="new_name", children=[option_19, option_20], properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_18], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_leadership_name/tmpl/mailname b/tests/dictionaries/60extra_leadership_name/tmpl/mailname deleted file mode 100644 index 3fc4092ec..000000000 --- a/tests/dictionaries/60extra_leadership_name/tmpl/mailname +++ /dev/null @@ -1,36 +0,0 @@ -%if 'test' in %%extra.ejabberd.new_name.description -contain test -%end if -%%len(%%extra.ejabberd.new_name.description) -%if 'a' in %%extra.ejabberd.new_name.description -contain a -%end if -%for %%description in %%extra.ejabberd.new_name.description -leader: %%description -follower: %%description.mode -%if %%description <= %%description.mode -infeq -%end if -%if %%description >= %%description.mode -supeq -%end if -%if %%description < %%description.mode -inf -%end if -%if %%description > %%description.mode -sup -%end if -%if %%description == %%description.mode -eq -%end if -%if %%description != %%description.mode -diff -%end if -%set %%var = %%description + %%description.mode -%%var -%set %%var = %%description.mode + %%description -%%var -%end for -leader2: %%extra.ejabberd.new_name.description[0].description -follower2: %%extra.ejabberd.new_name.description[0].mode -index: %%extra.ejabberd.new_name.description.index('test') diff --git a/tests/dictionaries/60extra_leadership_name/tmpl/mailname2 b/tests/dictionaries/60extra_leadership_name/tmpl/mailname2 deleted file mode 100644 index 0925d8b7a..000000000 --- a/tests/dictionaries/60extra_leadership_name/tmpl/mailname2 +++ /dev/null @@ -1,34 +0,0 @@ -{% if 'test' in extra.ejabberd.new_name.description -%} -contain test -{% endif -%} -{{ extra.ejabberd.new_name.description |length }} -{% if 'a' in extra.ejabberd.new_name.description -%} -contain a -{% endif -%} -{% for description in extra.ejabberd.new_name.description -%} -leader: {{ description }} -follower: {{ description.mode }} -{% if description <= description.mode -%} -infeq -{% endif -%} -{% if description >= description.mode -%} -supeq -{% endif -%} -{% if description < description.mode -%} -inf -{% endif -%} -{% if description > description.mode -%} -sup -{% endif -%} -{% if description == description.mode -%} -eq -{% endif -%} -{% if description != description.mode -%} -diff -{% endif -%} -{{ description + description.mode }} -{{ description.mode + description }} -{% endfor -%} -leader2: {{ extra.ejabberd.new_name.description[0].description }} -follower2: {{ extra.ejabberd.new_name.description[0].mode }} -index: {{ extra.ejabberd.new_name.description.index('test') }} diff --git a/tests/dictionaries/60extra_leadership_name_item/__init__.py b/tests/dictionaries/60extra_leadership_name_item/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_leadership_name_item/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_leadership_name_item/dictionaries/extra/00-base.yml deleted file mode 100644 index d3a06a971..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -ejabberd: - new_name: - type: leadership - _description: new_name - description: - type: string - multi: true - default: - - test - mode: - type: string - default: pre -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_name_item/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_leadership_name_item/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_name_item/makedict/after.json b/tests/dictionaries/60extra_leadership_name_item/makedict/after.json deleted file mode 100644 index 0c3ab5035..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.new_name.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.new_name.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_name_item/makedict/base.json b/tests/dictionaries/60extra_leadership_name_item/makedict/base.json deleted file mode 100644 index 0d7dadf09..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.new_name.description": [ - { - "extra.ejabberd.new_name.description": "test", - "extra.ejabberd.new_name.mode": "pre" - } - ] -} diff --git a/tests/dictionaries/60extra_leadership_name_item/makedict/before.json b/tests/dictionaries/60extra_leadership_name_item/makedict/before.json deleted file mode 100644 index 0c3ab5035..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.new_name.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.new_name.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_name_item/makedict/mandatory.json b/tests/dictionaries/60extra_leadership_name_item/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname b/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname2 b/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname2 deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/result/etc/mailname2 +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership_name_item/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/60extra_leadership_name_item/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 599c6ecb8..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1,2 +0,0 @@ -C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname -C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2 diff --git a/tests/dictionaries/60extra_leadership_name_item/tiramisu/base.py b/tests/dictionaries/60extra_leadership_name_item/tiramisu/base.py deleted file mode 100644 index fbcd45c42..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_9 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = Leadership(name="new_name", doc="new_name", children=[option_8, option_9], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_leadership_name_item/tiramisu/multi.py b/tests/dictionaries/60extra_leadership_name_item/tiramisu/multi.py deleted file mode 100644 index 1e7d9f5b8..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_9 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = Leadership(name="new_name", doc="new_name", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_19 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_20 = StrOption(name="mode", doc="mode", multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_18 = Leadership(name="new_name", doc="new_name", children=[option_19, option_20], properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_18], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname b/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname deleted file mode 100644 index df72e5964..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname +++ /dev/null @@ -1,35 +0,0 @@ -%if 'test' in %%extra['ejabberd']['new_name']['description'] -contain test -%end if -%%len(%%extra['ejabberd']['new_name']['description']) -%if 'a' in %%extra['ejabberd']['new_name']['description'] -contain a -%end if -%for %%description in %%extra['ejabberd']['new_name']['description'] -leader: %%description -follower: %%description['mode'] -%if %%description <= %%description['mode'] -infeq -%end if -%if %%description >= %%description['mode'] -supeq -%end if -%if %%description < %%description['mode'] -inf -%end if -%if %%description > %%description['mode'] -sup -%end if -%if %%description == %%description['mode'] -eq -%end if -%if %%description != %%description['mode'] -diff -%end if -%set %%var = %%description + %%description['mode'] -%%var -%set %%var = %%description['mode'] + %%description -%%var -%end for -leader2: %%extra['ejabberd']['new_name']['description'][0] -follower2: %%extra['ejabberd']['new_name']['description'][0]['mode'] diff --git a/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname2 b/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname2 deleted file mode 100644 index 78ee2b6ea..000000000 --- a/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname2 +++ /dev/null @@ -1,33 +0,0 @@ -{% if 'test' in extra.ejabberd.new_name.description -%} -contain test -{% endif -%} -{{ extra.ejabberd.new_name.description |length }} -{% if 'a' in extra.ejabberd.new_name.description -%} -contain a -{% endif -%} -{% for description in extra.ejabberd.new_name.description -%} -leader: {{ description }} -follower: {{ description.mode }} -{% if description <= description.mode -%} -infeq -{% endif -%} -{% if description >= description.mode -%} -supeq -{% endif -%} -{% if description < description.mode -%} -inf -{% endif -%} -{% if description > description.mode -%} -sup -{% endif -%} -{% if description == description.mode -%} -eq -{% endif -%} -{% if description != description.mode -%} -diff -{% endif -%} -{{ description + description.mode }} -{{ description.mode + description }} -{% endfor -%} -leader2: {{ extra.ejabberd.new_name.description[0] }} -follower2: {{ extra.ejabberd.new_name.description[0].mode }} diff --git a/tests/dictionaries/60extra_leadership_valid_enum/__init__.py b/tests/dictionaries/60extra_leadership_valid_enum/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/extra/00-base.yml deleted file mode 100644 index 982b50447..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,16 +0,0 @@ -ejabberd: - description: - type: leadership - _description: description - description: - type: string - multi: true - default: - - test - mode: - type: choice - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_leadership_valid_enum/makedict/after.json b/tests/dictionaries/60extra_leadership_valid_enum/makedict/after.json deleted file mode 100644 index 402b713e0..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/makedict/after.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.description.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_valid_enum/makedict/base.json b/tests/dictionaries/60extra_leadership_valid_enum/makedict/base.json deleted file mode 100644 index c7fd217af..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/makedict/base.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.description.description": [ - { - "extra.ejabberd.description.description": "test", - "extra.ejabberd.description.mode": "pre" - } - ] -} diff --git a/tests/dictionaries/60extra_leadership_valid_enum/makedict/before.json b/tests/dictionaries/60extra_leadership_valid_enum/makedict/before.json deleted file mode 100644 index 402b713e0..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/makedict/before.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description.description": { - "owner": "default", - "value": [ - "test" - ] - }, - "extra.ejabberd.description.mode": { - "owner": [ - "default" - ], - "value": [ - "pre" - ] - } -} diff --git a/tests/dictionaries/60extra_leadership_valid_enum/makedict/mandatory.json b/tests/dictionaries/60extra_leadership_valid_enum/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname b/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname2 b/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname2 deleted file mode 100644 index dc34cc5b0..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/result/etc/mailname2 +++ /dev/null @@ -1,11 +0,0 @@ -contain test -1 -leader: test -follower: pre -supeq -sup -diff -testpre -pretest -leader2: test -follower2: pre diff --git a/tests/dictionaries/60extra_leadership_valid_enum/result/tmpfiles.d/0rougail.conf b/tests/dictionaries/60extra_leadership_valid_enum/result/tmpfiles.d/0rougail.conf deleted file mode 100644 index 599c6ecb8..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/result/tmpfiles.d/0rougail.conf +++ /dev/null @@ -1,2 +0,0 @@ -C /etc/mailname 0644 root root - /usr/local/lib/etc/mailname -C /etc/mailname2 0644 root root - /usr/local/lib/etc/mailname2 diff --git a/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/base.py b/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/base.py deleted file mode 100644 index 3bec2640f..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/base.py +++ /dev/null @@ -1,17 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = Leadership(name="description", doc="description", children=[option_8, option_9], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/multi.py b/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/multi.py deleted file mode 100644 index 334799c11..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/tiramisu/multi.py +++ /dev/null @@ -1,28 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_9 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = Leadership(name="description", doc="description", children=[option_9, option_10], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_19 = StrOption(name="description", doc="description", multi=True, default=["test"], properties=frozenset({"mandatory", "notempty", "standard"})) -option_20 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), multi=True, default_multi="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_18 = Leadership(name="description", doc="description", children=[option_19, option_20], properties=frozenset({"standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[optiondescription_18], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname b/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname deleted file mode 100644 index 56abb7a07..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname +++ /dev/null @@ -1,35 +0,0 @@ -%if 'test' in %%extra.ejabberd.description.description -contain test -%end if -%%len(%%extra.ejabberd.description.description) -%if 'a' in %%extra.ejabberd.description.description -contain a -%end if -%for %%description in %%extra.ejabberd.description.description -leader: %%description -follower: %%description.mode -%if %%description <= %%description.mode -infeq -%end if -%if %%description >= %%description.mode -supeq -%end if -%if %%description < %%description.mode -inf -%end if -%if %%description > %%description.mode -sup -%end if -%if %%description == %%description.mode -eq -%end if -%if %%description != %%description.mode -diff -%end if -%set %%var = %%description + %%description.mode -%%var -%set %%var = %%description.mode + %%description -%%var -%end for -leader2: %%extra.ejabberd.description.description[0] -follower2: %%extra.ejabberd.description.description[0].mode diff --git a/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname2 b/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname2 deleted file mode 100644 index 99fc5bab6..000000000 --- a/tests/dictionaries/60extra_leadership_valid_enum/tmpl/mailname2 +++ /dev/null @@ -1,33 +0,0 @@ -{% if 'test' in extra.ejabberd.description.description -%} -contain test -{% endif -%} -{{ extra.ejabberd.description.description|length }} -{% if 'a' in extra.ejabberd.description.description -%} -contain a -{% endif -%} -{% for description in extra.ejabberd.description.description -%} -leader: {{ description }} -follower: {{ description.mode }} -{% if description <= description.mode -%} -infeq -{% endif -%} -{% if description >= description.mode -%} -supeq -{% endif -%} -{% if description < description.mode -%} -inf -{% endif -%} -{% if description > description.mode -%} -sup -{% endif -%} -{% if description == description.mode -%} -eq -{% endif -%} -{% if description != description.mode -%} -diff -{% endif -%} -{{ description + description.mode }} -{{ description.mode + description }} -{% endfor -%} -leader2: {{ extra.ejabberd.description.description[0] }} -follower2: {{ extra.ejabberd.description.description[0].mode }} diff --git a/tests/dictionaries/60extra_load/__init__.py b/tests/dictionaries/60extra_load/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_load/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_load/dictionaries/extra/00-base.yml deleted file mode 100644 index 7cfaf7731..000000000 --- a/tests/dictionaries/60extra_load/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.general.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_load/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_load/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_load/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_load/makedict/after.json b/tests/dictionaries/60extra_load/makedict/after.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_load/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_load/makedict/base.json b/tests/dictionaries/60extra_load/makedict/base.json deleted file mode 100644 index 242a818de..000000000 --- a/tests/dictionaries/60extra_load/makedict/base.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": null, - "extra.ejabberd.mode": "pre" -} diff --git a/tests/dictionaries/60extra_load/makedict/before.json b/tests/dictionaries/60extra_load/makedict/before.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_load/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_load/makedict/mandatory.json b/tests/dictionaries/60extra_load/makedict/mandatory.json deleted file mode 100644 index ac1181c0a..000000000 --- a/tests/dictionaries/60extra_load/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.ejabberd.day"] \ No newline at end of file diff --git a/tests/dictionaries/60extra_load/tiramisu/base.py b/tests/dictionaries/60extra_load/tiramisu/base.py deleted file mode 100644 index 7efe11f03..000000000 --- a/tests/dictionaries/60extra_load/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_8 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_4, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_load/tiramisu/multi.py b/tests/dictionaries/60extra_load/tiramisu/multi.py deleted file mode 100644 index a0d56b081..000000000 --- a/tests/dictionaries/60extra_load/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -dict_env['default_2.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_5, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_18 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_19 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_15, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_20 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_mandatory/__init__.py b/tests/dictionaries/60extra_mandatory/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_mandatory/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_mandatory/dictionaries/extra/00-base.yml deleted file mode 100644 index 3e775557f..000000000 --- a/tests/dictionaries/60extra_mandatory/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,32 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.general.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post - var1: - type: string - mandatory: true -version: '1.0' diff --git a/tests/dictionaries/60extra_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_mandatory/makedict/after.json b/tests/dictionaries/60extra_mandatory/makedict/after.json deleted file mode 100644 index bd4b713a1..000000000 --- a/tests/dictionaries/60extra_mandatory/makedict/after.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - }, - "extra.ejabberd.var1": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60extra_mandatory/makedict/base.json b/tests/dictionaries/60extra_mandatory/makedict/base.json deleted file mode 100644 index 1934991a7..000000000 --- a/tests/dictionaries/60extra_mandatory/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": null, - "extra.ejabberd.mode": "pre", - "extra.ejabberd.var1": null -} diff --git a/tests/dictionaries/60extra_mandatory/makedict/before.json b/tests/dictionaries/60extra_mandatory/makedict/before.json deleted file mode 100644 index bd4b713a1..000000000 --- a/tests/dictionaries/60extra_mandatory/makedict/before.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - }, - "extra.ejabberd.var1": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60extra_mandatory/makedict/mandatory.json b/tests/dictionaries/60extra_mandatory/makedict/mandatory.json deleted file mode 100644 index 09fbf4b17..000000000 --- a/tests/dictionaries/60extra_mandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.ejabberd.day", "extra.ejabberd.var1"] \ No newline at end of file diff --git a/tests/dictionaries/60extra_mandatory/tiramisu/base.py b/tests/dictionaries/60extra_mandatory/tiramisu/base.py deleted file mode 100644 index 19fbaf974..000000000 --- a/tests/dictionaries/60extra_mandatory/tiramisu/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_8 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_4, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -option_10 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_7, option_8, option_9, option_10], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_mandatory/tiramisu/multi.py b/tests/dictionaries/60extra_mandatory/tiramisu/multi.py deleted file mode 100644 index 81709b7c9..000000000 --- a/tests/dictionaries/60extra_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,32 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -dict_env['default_2.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_5, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -option_11 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10, option_11], properties=frozenset({"basic"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"basic"})) -option_15 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_16 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_14 = OptionDescription(name="general", doc="général", children=[option_15, option_16], properties=frozenset({"standard"})) -optiondescription_13 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_14], properties=frozenset({"standard"})) -option_19 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_20 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_16, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_21 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -option_22 = StrOption(name="var1", doc="var1", properties=frozenset({"basic", "mandatory"})) -optiondescription_18 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_19, option_20, option_21, option_22], properties=frozenset({"basic"})) -optiondescription_17 = OptionDescription(name="extra", doc="extra", children=[optiondescription_18], properties=frozenset({"basic"})) -optiondescription_12 = OptionDescription(name="2", doc="2", children=[optiondescription_13, optiondescription_17], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_12]) diff --git a/tests/dictionaries/60extra_name_family/__init__.py b/tests/dictionaries/60extra_name_family/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_name_family/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_name_family/dictionaries/extra/00-base.yml deleted file mode 100644 index 3c18f4e09..000000000 --- a/tests/dictionaries/60extra_name_family/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.extra.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_name_family/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_name_family/dictionaries/rougail/00-base.yml deleted file mode 100644 index 2d97f1169..000000000 --- a/tests/dictionaries/60extra_name_family/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,12 +0,0 @@ -extra: - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_name_family/makedict/after.json b/tests/dictionaries/60extra_name_family/makedict/after.json deleted file mode 100644 index 19d92883d..000000000 --- a/tests/dictionaries/60extra_name_family/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.extra.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.extra.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_name_family/makedict/base.json b/tests/dictionaries/60extra_name_family/makedict/base.json deleted file mode 100644 index 08a3bf0f1..000000000 --- a/tests/dictionaries/60extra_name_family/makedict/base.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rougail.extra.mode_conteneur_actif": "non", - "rougail.extra.activer_ejabberd": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": null, - "extra.ejabberd.mode": "pre" -} diff --git a/tests/dictionaries/60extra_name_family/makedict/before.json b/tests/dictionaries/60extra_name_family/makedict/before.json deleted file mode 100644 index 19d92883d..000000000 --- a/tests/dictionaries/60extra_name_family/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.extra.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.extra.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_name_family/makedict/mandatory.json b/tests/dictionaries/60extra_name_family/makedict/mandatory.json deleted file mode 100644 index ac1181c0a..000000000 --- a/tests/dictionaries/60extra_name_family/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.ejabberd.day"] \ No newline at end of file diff --git a/tests/dictionaries/60extra_name_family/tiramisu/base.py b/tests/dictionaries/60extra_name_family/tiramisu/base.py deleted file mode 100644 index aa331d9f0..000000000 --- a/tests/dictionaries/60extra_name_family/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="extra", doc="extra", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_8 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_4, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_name_family/tiramisu/multi.py b/tests/dictionaries/60extra_name_family/tiramisu/multi.py deleted file mode 100644 index 778bc6dd5..000000000 --- a/tests/dictionaries/60extra_name_family/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -dict_env['default_2.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="extra", doc="extra", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_5, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="extra", doc="extra", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_18 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_19 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_15, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_20 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_no_condition/__init__.py b/tests/dictionaries/60extra_no_condition/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_no_condition/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_no_condition/dictionaries/extra/00-base.yml deleted file mode 100644 index 47d02767d..000000000 --- a/tests/dictionaries/60extra_no_condition/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,21 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: none - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_no_condition/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_no_condition/dictionaries/rougail/00-base.yml deleted file mode 100644 index 4c7f61ce1..000000000 --- a/tests/dictionaries/60extra_no_condition/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,17 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non - module_instancie: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_no_condition/makedict/after.json b/tests/dictionaries/60extra_no_condition/makedict/after.json deleted file mode 100644 index 0b78d6523..000000000 --- a/tests/dictionaries/60extra_no_condition/makedict/after.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "rougail.general.module_instancie": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": "none" - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_no_condition/makedict/base.json b/tests/dictionaries/60extra_no_condition/makedict/base.json deleted file mode 100644 index 5efa7f94d..000000000 --- a/tests/dictionaries/60extra_no_condition/makedict/base.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "rougail.general.module_instancie": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": "none", - "extra.ejabberd.mode": "pre" -} diff --git a/tests/dictionaries/60extra_no_condition/makedict/before.json b/tests/dictionaries/60extra_no_condition/makedict/before.json deleted file mode 100644 index 0b78d6523..000000000 --- a/tests/dictionaries/60extra_no_condition/makedict/before.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "rougail.general.module_instancie": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": "none" - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_no_condition/makedict/mandatory.json b/tests/dictionaries/60extra_no_condition/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_no_condition/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_no_condition/tiramisu/base.py b/tests/dictionaries/60extra_no_condition/tiramisu/base.py deleted file mode 100644 index 141900031..000000000 --- a/tests/dictionaries/60extra_no_condition/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="module_instancie", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4, option_5], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default="none", properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_6]) diff --git a/tests/dictionaries/60extra_no_condition/tiramisu/multi.py b/tests/dictionaries/60extra_no_condition/tiramisu/multi.py deleted file mode 100644 index c04a26c36..000000000 --- a/tests/dictionaries/60extra_no_condition/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_6 = StrOption(name="module_instancie", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5, option_6], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_9 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default="none", properties=frozenset({"mandatory", "standard"})) -option_11 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_8 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_9, option_10, option_11], properties=frozenset({"standard"})) -optiondescription_7 = OptionDescription(name="extra", doc="extra", children=[optiondescription_8], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_7], properties=frozenset({"standard"})) -option_15 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "standard"})) -option_16 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_17 = StrOption(name="module_instancie", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_14 = OptionDescription(name="general", doc="général", children=[option_15, option_16, option_17], properties=frozenset({"standard"})) -optiondescription_13 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_14], properties=frozenset({"standard"})) -option_20 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"mandatory", "standard"})) -option_21 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default="none", properties=frozenset({"mandatory", "standard"})) -option_22 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_19 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_20, option_21, option_22], properties=frozenset({"standard"})) -optiondescription_18 = OptionDescription(name="extra", doc="extra", children=[optiondescription_19], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="2", doc="2", children=[optiondescription_13, optiondescription_18], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_12]) diff --git a/tests/dictionaries/60extra_redefine/__init__.py b/tests/dictionaries/60extra_redefine/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_redefine/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_redefine/dictionaries/extra/00-base.yml deleted file mode 100644 index 7cfaf7731..000000000 --- a/tests/dictionaries/60extra_redefine/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,29 +0,0 @@ -ejabberd: - description: - type: string - default: Exportation de la base de ejabberd - day: - type: choice - mandatory: true - default: - type: jinja - jinja: '{{ "non" | calc_multi_condition(condition_1=__activer_ejabberd, match="none", - mismatch="daily") }}' - params: - __activer_ejabberd: - type: variable - variable: rougail.general.activer_ejabberd - propertyerror: false - choices: - - none - - daily - - weekly - - monthly - mode: - type: choice - mandatory: true - default: pre - choices: - - pre - - post -version: '1.0' diff --git a/tests/dictionaries/60extra_redefine/dictionaries/extra/01-redefine.yml b/tests/dictionaries/60extra_redefine/dictionaries/extra/01-redefine.yml deleted file mode 100644 index 27c322342..000000000 --- a/tests/dictionaries/60extra_redefine/dictionaries/extra/01-redefine.yml +++ /dev/null @@ -1,5 +0,0 @@ -ejabberd: - description: - redefine: true - hidden: true -version: '1.0' diff --git a/tests/dictionaries/60extra_redefine/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_redefine/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_redefine/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_redefine/makedict/after.json b/tests/dictionaries/60extra_redefine/makedict/after.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_redefine/makedict/after.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_redefine/makedict/base.json b/tests/dictionaries/60extra_redefine/makedict/base.json deleted file mode 100644 index 242a818de..000000000 --- a/tests/dictionaries/60extra_redefine/makedict/base.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.ejabberd.description": "Exportation de la base de ejabberd", - "extra.ejabberd.day": null, - "extra.ejabberd.mode": "pre" -} diff --git a/tests/dictionaries/60extra_redefine/makedict/before.json b/tests/dictionaries/60extra_redefine/makedict/before.json deleted file mode 100644 index 383ce0931..000000000 --- a/tests/dictionaries/60extra_redefine/makedict/before.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.ejabberd.description": { - "owner": "default", - "value": "Exportation de la base de ejabberd" - }, - "extra.ejabberd.day": { - "owner": "default", - "value": null - }, - "extra.ejabberd.mode": { - "owner": "default", - "value": "pre" - } -} diff --git a/tests/dictionaries/60extra_redefine/makedict/mandatory.json b/tests/dictionaries/60extra_redefine/makedict/mandatory.json deleted file mode 100644 index ac1181c0a..000000000 --- a/tests/dictionaries/60extra_redefine/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.ejabberd.day"] \ No newline at end of file diff --git a/tests/dictionaries/60extra_redefine/tiramisu/base.py b/tests/dictionaries/60extra_redefine/tiramisu/base.py deleted file mode 100644 index 86b6c9efb..000000000 --- a/tests/dictionaries/60extra_redefine/tiramisu/base.py +++ /dev/null @@ -1,18 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_7 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_8 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_4, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_9 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_7, option_8, option_9], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_redefine/tiramisu/multi.py b/tests/dictionaries/60extra_redefine/tiramisu/multi.py deleted file mode 100644 index ff5a9e261..000000000 --- a/tests/dictionaries/60extra_redefine/tiramisu/multi.py +++ /dev/null @@ -1,30 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -dict_env['default_1.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -dict_env['default_2.extra.ejabberd.day'] = "{{ \"non\" | calc_multi_condition(condition_1=__activer_ejabberd, match=\"none\", mismatch=\"daily\") }}" -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_8 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_9 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_1.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_5, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_10 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_7 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_8, option_9, option_10], properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[optiondescription_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_14 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_15 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="general", doc="général", children=[option_14, option_15], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_13], properties=frozenset({"standard"})) -option_18 = StrOption(name="description", doc="description", default="Exportation de la base de ejabberd", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_19 = ChoiceOption(name="day", doc="day", values=("none", "daily", "weekly", "monthly"), default=Calculation(func['jinja_to_function'], Params((), kwargs={'__internal_jinja': ParamValue("default_2.extra.ejabberd.day"), '__internal_type': ParamValue("choice"), '__internal_multi': ParamValue(False), '__activer_ejabberd': ParamOption(option_15, notraisepropertyerror=True)})), properties=frozenset({"mandatory", "standard"})) -option_20 = ChoiceOption(name="mode", doc="mode", values=("pre", "post"), default="pre", properties=frozenset({"mandatory", "standard"})) -optiondescription_17 = OptionDescription(name="ejabberd", doc="ejabberd", children=[option_18, option_19, option_20], properties=frozenset({"standard"})) -optiondescription_16 = OptionDescription(name="extra", doc="extra", children=[optiondescription_17], properties=frozenset({"standard"})) -optiondescription_11 = OptionDescription(name="2", doc="2", children=[optiondescription_12, optiondescription_16], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_11]) diff --git a/tests/dictionaries/60extra_variable_name_extra/__init__.py b/tests/dictionaries/60extra_variable_name_extra/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60extra_variable_name_extra/dictionaries/extra/00-base.yml b/tests/dictionaries/60extra_variable_name_extra/dictionaries/extra/00-base.yml deleted file mode 100644 index 15e1c98cd..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,3 +0,0 @@ -extra: - mandatory: false -version: '1.0' diff --git a/tests/dictionaries/60extra_variable_name_extra/dictionaries/rougail/00-base.yml b/tests/dictionaries/60extra_variable_name_extra/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1a857b0d1..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,13 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non - activer_ejabberd: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60extra_variable_name_extra/makedict/after.json b/tests/dictionaries/60extra_variable_name_extra/makedict/after.json deleted file mode 100644 index 12c849534..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.extra": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60extra_variable_name_extra/makedict/base.json b/tests/dictionaries/60extra_variable_name_extra/makedict/base.json deleted file mode 100644 index 1c12b9067..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general.activer_ejabberd": "non", - "extra.extra": null -} diff --git a/tests/dictionaries/60extra_variable_name_extra/makedict/before.json b/tests/dictionaries/60extra_variable_name_extra/makedict/before.json deleted file mode 100644 index 12c849534..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general.activer_ejabberd": { - "owner": "default", - "value": "non" - }, - "extra.extra": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60extra_variable_name_extra/makedict/mandatory.json b/tests/dictionaries/60extra_variable_name_extra/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60extra_variable_name_extra/tiramisu/base.py b/tests/dictionaries/60extra_variable_name_extra/tiramisu/base.py deleted file mode 100644 index e832f4c73..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_4 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = StrOption(name="extra", doc="extra", properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[option_6], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_5]) diff --git a/tests/dictionaries/60extra_variable_name_extra/tiramisu/multi.py b/tests/dictionaries/60extra_variable_name_extra/tiramisu/multi.py deleted file mode 100644 index 5360726b7..000000000 --- a/tests/dictionaries/60extra_variable_name_extra/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_5 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4, option_5], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_7 = StrOption(name="extra", doc="extra", properties=frozenset({"standard"})) -optiondescription_6 = OptionDescription(name="extra", doc="extra", children=[option_7], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_6], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -option_12 = StrOption(name="activer_ejabberd", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11, option_12], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -option_14 = StrOption(name="extra", doc="extra", properties=frozenset({"standard"})) -optiondescription_13 = OptionDescription(name="extra", doc="extra", children=[option_14], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9, optiondescription_13], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/60familyaction/__init__.py b/tests/dictionaries/60familyaction/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60familyaction/dictionaries/extra/00-base.yml b/tests/dictionaries/60familyaction/dictionaries/extra/00-base.yml deleted file mode 100644 index 2ccc3ff50..000000000 --- a/tests/dictionaries/60familyaction/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,6 +0,0 @@ -test: - delay: - type: number - description: délai en minutes avant lancement - default: 0 -version: '1.0' diff --git a/tests/dictionaries/60familyaction/dictionaries/rougail/00-base.yml b/tests/dictionaries/60familyaction/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1085cc1cc..000000000 --- a/tests/dictionaries/60familyaction/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60familyaction/makedict/after.json b/tests/dictionaries/60familyaction/makedict/after.json deleted file mode 100644 index 00d8ee8c0..000000000 --- a/tests/dictionaries/60familyaction/makedict/after.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - } -} diff --git a/tests/dictionaries/60familyaction/makedict/base.json b/tests/dictionaries/60familyaction/makedict/base.json deleted file mode 100644 index 9a96ae51b..000000000 --- a/tests/dictionaries/60familyaction/makedict/base.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "extra.test.delay": 0 -} diff --git a/tests/dictionaries/60familyaction/makedict/before.json b/tests/dictionaries/60familyaction/makedict/before.json deleted file mode 100644 index 00d8ee8c0..000000000 --- a/tests/dictionaries/60familyaction/makedict/before.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - } -} diff --git a/tests/dictionaries/60familyaction/makedict/mandatory.json b/tests/dictionaries/60familyaction/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/60familyaction/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/60familyaction/tiramisu/base.py b/tests/dictionaries/60familyaction/tiramisu/base.py deleted file mode 100644 index 23df18394..000000000 --- a/tests/dictionaries/60familyaction/tiramisu/base.py +++ /dev/null @@ -1,14 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -optiondescription_5 = OptionDescription(name="test", doc="test", children=[option_6], properties=frozenset({"standard"})) -optiondescription_4 = OptionDescription(name="extra", doc="extra", children=[optiondescription_5], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/60familyaction/tiramisu/multi.py b/tests/dictionaries/60familyaction/tiramisu/multi.py deleted file mode 100644 index 14a8f2678..000000000 --- a/tests/dictionaries/60familyaction/tiramisu/multi.py +++ /dev/null @@ -1,22 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_7 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -optiondescription_6 = OptionDescription(name="test", doc="test", children=[option_7], properties=frozenset({"standard"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_5], properties=frozenset({"standard"})) -option_11 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_10 = OptionDescription(name="general", doc="général", children=[option_11], properties=frozenset({"standard"})) -optiondescription_9 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_10], properties=frozenset({"standard"})) -option_14 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -optiondescription_13 = OptionDescription(name="test", doc="test", children=[option_14], properties=frozenset({"standard"})) -optiondescription_12 = OptionDescription(name="extra", doc="extra", children=[optiondescription_13], properties=frozenset({"standard"})) -optiondescription_8 = OptionDescription(name="2", doc="2", children=[optiondescription_9, optiondescription_12], properties=frozenset({"standard"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_8]) diff --git a/tests/dictionaries/60familyaction_mandatory/__init__.py b/tests/dictionaries/60familyaction_mandatory/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/60familyaction_mandatory/dictionaries/extra/00-base.yml b/tests/dictionaries/60familyaction_mandatory/dictionaries/extra/00-base.yml deleted file mode 100644 index 21c871450..000000000 --- a/tests/dictionaries/60familyaction_mandatory/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ -test: - delay: - type: number - description: délai en minutes avant lancement - default: 0 - day: - type: number - description: day avant lancement - mandatory: true -version: '1.0' diff --git a/tests/dictionaries/60familyaction_mandatory/dictionaries/rougail/00-base.yml b/tests/dictionaries/60familyaction_mandatory/dictionaries/rougail/00-base.yml deleted file mode 100644 index 1085cc1cc..000000000 --- a/tests/dictionaries/60familyaction_mandatory/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,8 +0,0 @@ -general: - description: général - mode_conteneur_actif: - type: string - description: No change - hidden: true - default: non -version: '1.0' diff --git a/tests/dictionaries/60familyaction_mandatory/makedict/after.json b/tests/dictionaries/60familyaction_mandatory/makedict/after.json deleted file mode 100644 index 8ba0e34ed..000000000 --- a/tests/dictionaries/60familyaction_mandatory/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - }, - "extra.test.day": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60familyaction_mandatory/makedict/base.json b/tests/dictionaries/60familyaction_mandatory/makedict/base.json deleted file mode 100644 index 8287bf85a..000000000 --- a/tests/dictionaries/60familyaction_mandatory/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "extra.test.delay": 0, - "extra.test.day": null -} diff --git a/tests/dictionaries/60familyaction_mandatory/makedict/before.json b/tests/dictionaries/60familyaction_mandatory/makedict/before.json deleted file mode 100644 index 8ba0e34ed..000000000 --- a/tests/dictionaries/60familyaction_mandatory/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "extra.test.delay": { - "owner": "default", - "value": 0 - }, - "extra.test.day": { - "owner": "default", - "value": null - } -} diff --git a/tests/dictionaries/60familyaction_mandatory/makedict/mandatory.json b/tests/dictionaries/60familyaction_mandatory/makedict/mandatory.json deleted file mode 100644 index fef6ee510..000000000 --- a/tests/dictionaries/60familyaction_mandatory/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -["extra.test.day"] \ No newline at end of file diff --git a/tests/dictionaries/60familyaction_mandatory/tiramisu/base.py b/tests/dictionaries/60familyaction_mandatory/tiramisu/base.py deleted file mode 100644 index 2d2c4ed59..000000000 --- a/tests/dictionaries/60familyaction_mandatory/tiramisu/base.py +++ /dev/null @@ -1,15 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_2 = OptionDescription(name="general", doc="général", children=[option_3], properties=frozenset({"standard"})) -optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"standard"})) -option_6 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_7 = IntOption(name="day", doc="day avant lancement", properties=frozenset({"basic", "mandatory"})) -optiondescription_5 = OptionDescription(name="test", doc="test", children=[option_6, option_7], properties=frozenset({"basic"})) -optiondescription_4 = OptionDescription(name="extra", doc="extra", children=[optiondescription_5], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_4]) diff --git a/tests/dictionaries/60familyaction_mandatory/tiramisu/multi.py b/tests/dictionaries/60familyaction_mandatory/tiramisu/multi.py deleted file mode 100644 index 1ed36d715..000000000 --- a/tests/dictionaries/60familyaction_mandatory/tiramisu/multi.py +++ /dev/null @@ -1,24 +0,0 @@ -from tiramisu import * -from tiramisu.setting import ALLOWED_LEADER_PROPERTIES -from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription -load_functions('tests/dictionaries/../eosfunc/test.py') -ALLOWED_LEADER_PROPERTIES.add("basic") -ALLOWED_LEADER_PROPERTIES.add("standard") -ALLOWED_LEADER_PROPERTIES.add("advanced") -option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"standard"})) -optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"standard"})) -option_7 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_8 = IntOption(name="day", doc="day avant lancement", properties=frozenset({"basic", "mandatory"})) -optiondescription_6 = OptionDescription(name="test", doc="test", children=[option_7, option_8], properties=frozenset({"basic"})) -optiondescription_5 = OptionDescription(name="extra", doc="extra", children=[optiondescription_6], properties=frozenset({"basic"})) -optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2, optiondescription_5], properties=frozenset({"basic"})) -option_12 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "standard"})) -optiondescription_11 = OptionDescription(name="general", doc="général", children=[option_12], properties=frozenset({"standard"})) -optiondescription_10 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_11], properties=frozenset({"standard"})) -option_15 = IntOption(name="delay", doc="délai en minutes avant lancement", default=0, properties=frozenset({"mandatory", "standard"})) -option_16 = IntOption(name="day", doc="day avant lancement", properties=frozenset({"basic", "mandatory"})) -optiondescription_14 = OptionDescription(name="test", doc="test", children=[option_15, option_16], properties=frozenset({"basic"})) -optiondescription_13 = OptionDescription(name="extra", doc="extra", children=[optiondescription_14], properties=frozenset({"basic"})) -optiondescription_9 = OptionDescription(name="2", doc="2", children=[optiondescription_10, optiondescription_13], properties=frozenset({"basic"})) -option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_9]) diff --git a/tests/dictionaries/61extra_dyn/__init__.py b/tests/dictionaries/61extra_dyn/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/61extra_dyn/dictionaries/extra/00-base.yml b/tests/dictionaries/61extra_dyn/dictionaries/extra/00-base.yml deleted file mode 100644 index 5bf778765..000000000 --- a/tests/dictionaries/61extra_dyn/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -version: '1.1' -ejabberd{{ suffix }}: - type: dynamic - dynamic: - type: variable - variable: rougail.general.varname - propertyerror: false - mode: - type: string - mandatory: false diff --git a/tests/dictionaries/61extra_dyn/dictionaries/rougail/00-base.yml b/tests/dictionaries/61extra_dyn/dictionaries/rougail/00-base.yml deleted file mode 100644 index ac2f3ea83..000000000 --- a/tests/dictionaries/61extra_dyn/dictionaries/rougail/00-base.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -version: '1.0' -general: - description: général - varname: - type: string - description: No change - multi: true - default: - - a diff --git a/tests/dictionaries/61extra_dyn/makedict/mandatory.json b/tests/dictionaries/61extra_dyn/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/61extra_dyn/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/61extra_dyn_extra/__init__.py b/tests/dictionaries/61extra_dyn_extra/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/dictionaries/61extra_dyn_extra/dictionaries/extra/00-base.yml b/tests/dictionaries/61extra_dyn_extra/dictionaries/extra/00-base.yml deleted file mode 100644 index 8c3ae2ac6..000000000 --- a/tests/dictionaries/61extra_dyn_extra/dictionaries/extra/00-base.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -version: '1.1' -general: - description: général - varname: - type: string - description: No change - multi: true - default: - - a -"ejabberd{{ suffix }}": - type: dynamic - dynamic: - type: variable - variable: extra.general.varname - propertyerror: false - mode: - type: string - mandatory: false diff --git a/tests/dictionaries/61extra_dyn_extra/makedict/mandatory.json b/tests/dictionaries/61extra_dyn_extra/makedict/mandatory.json deleted file mode 100644 index 0637a088a..000000000 --- a/tests/dictionaries/61extra_dyn_extra/makedict/mandatory.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/dictionaries/11disabledifnotin_filelist_notexist/__init__.py b/tests/dictionaries/68_0family_leadership_mode/__init__.py similarity index 100% rename from tests/dictionaries/11disabledifnotin_filelist_notexist/__init__.py rename to tests/dictionaries/68_0family_leadership_mode/__init__.py diff --git a/tests/dictionaries/68_0family_leadership_mode/dictionaries/rougail/00-base.yml b/tests/dictionaries/68_0family_leadership_mode/dictionaries/rougail/00-base.yml new file mode 100644 index 000000000..1a65f94a2 --- /dev/null +++ b/tests/dictionaries/68_0family_leadership_mode/dictionaries/rougail/00-base.yml @@ -0,0 +1,15 @@ +--- +version: '1.0' +leader: + description: A leadership + type: leadership + leader: + description: A leader + multi: true + mandatory: false + follower1: + description: a follower1 + mandatory: false + follower2: + description: a follower2 + mode: basic diff --git a/tests/dictionaries/68_0family_leadership_mode/tiramisu/base.py b/tests/dictionaries/68_0family_leadership_mode/tiramisu/base.py new file mode 100644 index 000000000..b9e654f84 --- /dev/null +++ b/tests/dictionaries/68_0family_leadership_mode/tiramisu/base.py @@ -0,0 +1,13 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_3 = StrOption(name="leader", doc="A leader", multi=True, properties=frozenset({"basic"})) +option_4 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_5 = StrOption(name="follower2", doc="a follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_2 = Leadership(name="leader", doc="A leadership", children=[option_3, option_4, option_5], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_2], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1]) diff --git a/tests/dictionaries/68_0family_leadership_mode/tiramisu/multi.py b/tests/dictionaries/68_0family_leadership_mode/tiramisu/multi.py new file mode 100644 index 000000000..e3bbedadd --- /dev/null +++ b/tests/dictionaries/68_0family_leadership_mode/tiramisu/multi.py @@ -0,0 +1,20 @@ +from tiramisu import * +from tiramisu.setting import ALLOWED_LEADER_PROPERTIES +from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription +load_functions('tests/dictionaries/../eosfunc/test.py') +ALLOWED_LEADER_PROPERTIES.add("basic") +ALLOWED_LEADER_PROPERTIES.add("standard") +ALLOWED_LEADER_PROPERTIES.add("advanced") +option_4 = StrOption(name="leader", doc="A leader", multi=True, properties=frozenset({"basic"})) +option_5 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_6 = StrOption(name="follower2", doc="a follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_3 = Leadership(name="leader", doc="A leadership", children=[option_4, option_5, option_6], properties=frozenset({"basic"})) +optiondescription_2 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_3], properties=frozenset({"basic"})) +optiondescription_1 = OptionDescription(name="1", doc="1", children=[optiondescription_2], properties=frozenset({"basic"})) +option_10 = StrOption(name="leader", doc="A leader", multi=True, properties=frozenset({"basic"})) +option_11 = StrOption(name="follower1", doc="a follower1", multi=True, properties=frozenset({"standard"})) +option_12 = StrOption(name="follower2", doc="a follower2", multi=True, properties=frozenset({"basic", "mandatory"})) +optiondescription_9 = Leadership(name="leader", doc="A leadership", children=[option_10, option_11, option_12], properties=frozenset({"basic"})) +optiondescription_8 = OptionDescription(name="rougail", doc="rougail", children=[optiondescription_9], properties=frozenset({"basic"})) +optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8], properties=frozenset({"basic"})) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1, optiondescription_7]) diff --git a/tests/dictionaries/80leadership_subfamily/makedict/after.json b/tests/dictionaries/80leadership_subfamily/makedict/after.json deleted file mode 100644 index 0b42b7958..000000000 --- a/tests/dictionaries/80leadership_subfamily/makedict/after.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - }, - "rougail.general1.leader1.leader1": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/80leadership_subfamily/makedict/base.json b/tests/dictionaries/80leadership_subfamily/makedict/base.json deleted file mode 100644 index 53442331b..000000000 --- a/tests/dictionaries/80leadership_subfamily/makedict/base.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": "non", - "rougail.general1.leader.leader": [], - "rougail.general1.leader1.leader1": [] -} diff --git a/tests/dictionaries/80leadership_subfamily/makedict/before.json b/tests/dictionaries/80leadership_subfamily/makedict/before.json deleted file mode 100644 index 0b42b7958..000000000 --- a/tests/dictionaries/80leadership_subfamily/makedict/before.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "rougail.general.mode_conteneur_actif": { - "owner": "default", - "value": "non" - }, - "rougail.general1.leader.leader": { - "owner": "default", - "value": [] - }, - "rougail.general1.leader1.leader1": { - "owner": "default", - "value": [] - } -} diff --git a/tests/dictionaries/README.md b/tests/dictionaries/README.md new file mode 100644 index 000000000..891ddd535 --- /dev/null +++ b/tests/dictionaries/README.md @@ -0,0 +1,16 @@ +0 + ++ Family type +0: variable without family +20: family +40: leadership +60: dynamic +80: error + +max(Family type + x, 20): +0: description|help|test|default +1: multi +2: type params|validators +4: property +8: mode +16: redefine|exists diff --git a/tests/eosfunc/test.py b/tests/eosfunc/test.py index d45393e78..c476a7d72 100644 --- a/tests/eosfunc/test.py +++ b/tests/eosfunc/test.py @@ -1,4 +1,4 @@ -from tiramisu import valid_not_equal, valid_ip_netmask, calc_value, valid_in_network, calc_value_property_help +from tiramisu import valid_not_equal, valid_ip_netmask, valid_in_network, calc_value_property_help def trange(start, stop): diff --git a/tests/test_2_makedict.py b/tests/test_2_makedict.py index b0a5c1f95..015a939c2 100644 --- a/tests/test_2_makedict.py +++ b/tests/test_2_makedict.py @@ -29,7 +29,7 @@ excludes = set([ '80valid_enum_variables', ]) -excludes = set(['20family_dynamic_variable_outside_sub_suffix']) +excludes = set(['60_5family_dynamic_variable_outside_sub_suffix']) test_ok -= excludes #test_ok = ['20family_dynamic_static']