Project restart
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
- py_func:
|
||||
name: My first include test
|
||||
file: $(test_path)$(psep)include.py
|
||||
func_name: ValidationTest
|
||||
key: $(test)_PASS
|
||||
param:
|
||||
- $(test parameter)
|
||||
@@ -0,0 +1,7 @@
|
||||
- py_func:
|
||||
name: {{ func_title }}
|
||||
file: $(test_path)$(psep)include.py
|
||||
func_name: ValidationTest
|
||||
key: $(test)_PASS
|
||||
param:
|
||||
- {{ func_param }}
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
- let: {name: Test param inclusion 1, values: [inclusion: $({{ dd }}_inc)]}
|
||||
# note the Jinja comments : {# #}
|
||||
# The following construction is not allowed and will fail to load:
|
||||
# {#
|
||||
# - let: {name: Test param inclusion 2, values: [inclusion: {{ $(inc)_inc }}]}
|
||||
# #}
|
||||
7
test/validation/items/include/include.py
Normal file
7
test/validation/items/include/include.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import py_func.tm as tm
|
||||
|
||||
class ValidationTest(tm.FunctionItem):
|
||||
def exec(self, param):
|
||||
print(str(param))
|
||||
return 0
|
||||
|
||||
3
test/validation/items/include/param.yaml
Normal file
3
test/validation/items/include/param.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# inc_no template: "inc no template" # Both commented parma cannot be handled as this configuration file is loaded dynamically
|
||||
# inc_with_template: "inc with template" # through the template mechanism
|
||||
test_parameter: My first include test parameter
|
||||
12
test/validation/items/include/test.tum
Normal file
12
test/validation/items/include/test.tum
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
- !include inc no template/my first include.tum
|
||||
- !include $(inc_no_template)/my first include.tum
|
||||
|
||||
- !include {file: inc with template/my second include.tum, func_title: My second include test, func_param: My second include test parameter}
|
||||
- !include
|
||||
file: $(inc_with_template)/my second include.tum
|
||||
func_title: My second include test
|
||||
func_param: My second include test parameter
|
||||
|
||||
- let: {name: Declare param for inclusion, values: [inc: Dali, Dali_inc: Dalida]}
|
||||
- !include {file: $(inc_with_template)/my_3d_include.tum, dd: $(inc)}
|
||||
Reference in New Issue
Block a user