- let: name: py_func test constants, values: - func_test_parameter: test parameter - py_func: name: pass py_func key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: assertparam param: - true - py_func: name: fail py_func key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: assertparam param: - false - py_func: name: fail py_func with expected result "FAIL" key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: assertparam param: - false expected_result: FAIL - py_func: name: pass py_func with expected result FAIL key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: assertparam param: - true expected_result: FAIL - py_func: name: expected -1 key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: - -1 expected_result: -1 - py_func: name: expected eval key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: - -1 expected_result: "354848436 - 354848437" - py_func: name: expected table key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: - [-1, a, {toto: tata}] expected_result: "[-1, 'a', {'toto': 'tata'}]" - py_func: name: global param py_func key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: checkglobal param: - $(func_test_parameter) - let: name: python2func key: $(test)_PASS values: - py: $(test_path)$(psep)py_func.py - py_func: name: global param int key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: checkglobal2 param: - 0 expected_result: ($(data_to_be_returned))[0] - py_func: name: global param dict key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: checkglobal2 param: - 1 expected_result: ($(data_to_be_returned))[1] - py_func: name: global param list key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: checkglobal2 param: - 2 expected_result: ($(data_to_be_returned))[2] - py_func: name: global param py_func key: $(test)_PASS file: $(py) func_name: checkglobal param: - $(func_test_parameter) - py_func: name: skipped_checkglobal key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: should_not_be_called param: - $(func_test_parameter) - py_func: name: skipped true key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo skipped: true param: - "skipped" - py_func: name: skipped 1 key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo skipped: 1 param: - "skipped" - py_func: name: FunctionItem test key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: ValidationTest param: - $(func_test_parameter) - group: name: Function results check steps: - group: name: Functions result steps: - py_func: name: int key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [-1] - py_func: name: float key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [-20.3] - py_func: name: String key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [ "FAIL" ] - py_func: name: Tuple int,str key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: tuple_return param: [ 0, "OK" ] - group: name: Functions result expected steps: - py_func: name: int expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [18] expected_result: 18 - py_func: name: float expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [0.3] expected_result: 0.3 - py_func: name: String expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [ "Something" ] expected_result: Something - py_func: name: Tuple int,str expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: tuple_return param: [ 0, "OK" ] expected_result: [0, "OK"] - py_func: name: small list expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [ [-23] ] expected_result: [-23] - py_func: name: big list expected key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: echo param: [ [-23, 17, 67] ] expected_result: [-23, 17, 67] - group: name: Function result not expected steps: - py_func: name: int not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo param: [18] expected_result: 17 - py_func: name: float not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo param: [0.3] expected_result: 0.5 - py_func: name: String not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo param: [ "Something" ] expected_result: Nothing - py_func: name: Tuple int,str not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: tuple_return param: [ 0, "OK" ] expected_result: [0, "OUPS"] - py_func: name: small list not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo param: [ [-23] ] expected_result: [-22] - py_func: name: big list not expected key: $(test)_FAIL file: $(test_path)$(psep)py_func.py func_name: echo param: [ [-23, 17, 67] ] expected_result: [-23, 16, 67] - py_func: name: delgd test key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: test_delgd - py_func: name: function returning nothing should succeed key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: return_nothing - py_func: name: function returning explicit None should succeed key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: return_explicit_none - group: name: context_id tests steps: - py_func: name: set serializable value key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: set_context_value param: - hello context expected_result: hello context - py_func: name: get serializable value (same context_id) key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: get_context_value context_id: ctx_test expected_result: hello context - py_func: name: get serializable value (no context_id, from main gd) key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: get_context_value expected_result: hello context - py_func: name: get serializable value (different context_id) key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: get_context_value context_id: ctx_other expected_result: hello context - py_func: name: set non-serializable value key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: set_ns_value context_id: ctx_ns_test param: - hello ns expected_result: hello ns - py_func: name: get non-serializable value (same context_id) key: $(test)_PASS file: $(test_path)$(psep)py_func.py func_name: get_ns_value context_id: ctx_ns_test expected_result: hello ns