From ed9079c495428332516ae6ba1dc2d15f8bac774e Mon Sep 17 00:00:00 2001 From: httprunner Date: Wed, 1 Nov 2017 16:42:52 +0800 Subject: [PATCH] TestcaseParser: rename function name, bind_variables => update_binded_variables --- ate/context.py | 4 ++-- ate/testcase.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ate/context.py b/ate/context.py index 3c809930..36b6a64c 100644 --- a/ate/context.py +++ b/ate/context.py @@ -34,7 +34,7 @@ class Context(object): self.testcase_variables_mapping = copy.deepcopy(self.testset_shared_variables_mapping) self.testcase_parser.bind_functions(self.testcase_functions_config) - self.testcase_parser.bind_variables(self.testcase_variables_mapping) + self.testcase_parser.update_binded_variables(self.testcase_variables_mapping) if level == "testset": self.import_module_items(["ate.built_in"], "testset") @@ -117,7 +117,7 @@ class Context(object): self.testset_shared_variables_mapping[variable_name] = variable_evale_value self.testcase_variables_mapping[variable_name] = variable_evale_value - self.testcase_parser.bind_variables(self.testcase_variables_mapping) + self.testcase_parser.update_binded_variables(self.testcase_variables_mapping) def __update_context_functions_config(self, level, config_mapping): """ diff --git a/ate/testcase.py b/ate/testcase.py index c060e541..34a02725 100644 --- a/ate/testcase.py +++ b/ate/testcase.py @@ -330,11 +330,11 @@ def substitute_variables_with_mapping(content, mapping): class TestcaseParser(object): def __init__(self, variables={}, functions={}, file_path=None): - self.bind_variables(variables) + self.update_binded_variables(variables) self.bind_functions(functions) self.file_path = file_path - def bind_variables(self, variables): + def update_binded_variables(self, variables): """ bind variables to current testcase parser @param (dict) variables, variables binds mapping {