diff --git a/tests/dictionaries/01test_redefine_base/00-base.xml b/tests/dictionaries/01test_redefine_base/00-base.xml new file mode 100644 index 00000000..99149e60 --- /dev/null +++ b/tests/dictionaries/01test_redefine_base/00-base.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/tests/dictionaries/01test_redefine_base/10-base.xml b/tests/dictionaries/01test_redefine_base/10-base.xml new file mode 100644 index 00000000..cc13a576 --- /dev/null +++ b/tests/dictionaries/01test_redefine_base/10-base.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/tests/dictionaries/01test_redefine_base/__init__.py b/tests/dictionaries/01test_redefine_base/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/dictionaries/01test_redefine_base/makedict/base.json b/tests/dictionaries/01test_redefine_base/makedict/base.json new file mode 100644 index 00000000..d3a9c907 --- /dev/null +++ b/tests/dictionaries/01test_redefine_base/makedict/base.json @@ -0,0 +1 @@ +{"rougail.my_variable": null} diff --git a/tests/dictionaries/01test_redefine_base/tiramisu/base.py b/tests/dictionaries/01test_redefine_base/tiramisu/base.py new file mode 100644 index 00000000..3240ec23 --- /dev/null +++ b/tests/dictionaries/01test_redefine_base/tiramisu/base.py @@ -0,0 +1,17 @@ +from importlib.machinery import SourceFileLoader +from importlib.util import spec_from_loader, module_from_spec +loader = SourceFileLoader('func', 'tests/dictionaries/../eosfunc/test.py') +spec = spec_from_loader(loader.name, loader) +func = module_from_spec(spec) +loader.exec_module(func) +for key, value in dict(locals()).items(): + if key != ['SourceFileLoader', 'func']: + setattr(func, key, value) +try: + from tiramisu3 import * +except: + from tiramisu import * +option_2 = StrOption(name="my_variable", doc="my_variable", properties=frozenset({"normal"})) +option_2.impl_set_information('test', ('test1',)) +option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2]) +option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])