add test for import_module_functions

This commit is contained in:
debugtalk
2017-07-01 21:54:14 +08:00
parent dc7a4b69bc
commit d4493a8283
2 changed files with 43 additions and 0 deletions

View File

@@ -30,3 +30,13 @@ bind_lambda_functions_with_import:
- random: {"func": "gen_random_string", "args": [5]}
- data: "{'name': 'user', 'password': '123456'}"
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}
bind_module_functions:
function_binds:
import_module_functions:
- test.data.custom_functions
variable_binds:
- TOKEN: debugtalk
- random: {"func": "gen_random_string", "args": [5]}
- data: "{'name': 'user', 'password': '123456'}"
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}