mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 17:29:56 +08:00
fix: missing handling in overriding config variables
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
- fix: avoid '.csv' been converted to '_csv'
|
||||
- fix: convert har to JSON format testcase
|
||||
- fix: missing ${var} handling in overriding config variables
|
||||
|
||||
## 3.0.12 (2020-06-14)
|
||||
|
||||
|
||||
@@ -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