mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 01:37:35 +08:00
fix: missing handling in overriding config variables
This commit is contained in:
@@ -243,8 +243,9 @@ def override_config_variables(
|
||||
"""
|
||||
step_new_variables = {}
|
||||
for key, value in step_variables.items():
|
||||
if f"${key}" == value:
|
||||
if f"${key}" == value or "${" + key + "}" == value:
|
||||
# e.g. {"base_url": "$base_url"}
|
||||
# or {"base_url": "${base_url}"}
|
||||
continue
|
||||
|
||||
step_new_variables[key] = value
|
||||
|
||||
Reference in New Issue
Block a user