mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 02:17:37 +08:00
fix commit f1be0972dae59389c21b0371580c3101f67bc808
This commit is contained in:
@@ -34,14 +34,14 @@ class SessionContext(object):
|
||||
|
||||
"""
|
||||
self.test_variables_mapping = {}
|
||||
self.test_variables_mapping.update(self.session_variables_mapping)
|
||||
|
||||
variables_mapping = variables_mapping or {}
|
||||
variables_mapping = utils.ensure_mapping_format(variables_mapping)
|
||||
for variable_name, variable_value in variables_mapping.items():
|
||||
variable_value = self.eval_content(variable_value)
|
||||
self.update_test_variables(variable_name, variable_value)
|
||||
|
||||
self.test_variables_mapping.update(self.session_variables_mapping)
|
||||
|
||||
def update_test_variables(self, variable_name, variable_value):
|
||||
""" update test variables, these variables are only valid in the current test.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user