mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 13:59:37 +08:00
fix: demo function compatibility
This commit is contained in:
@@ -15,7 +15,7 @@ teststeps:
|
||||
variables:
|
||||
foo1: bar11
|
||||
foo2: bar21
|
||||
sum_v: "${sum_two(1, 2)}"
|
||||
sum_v: "${sum_two_int(1, 2)}"
|
||||
request:
|
||||
method: GET
|
||||
url: /get
|
||||
|
||||
@@ -26,7 +26,7 @@ class TestCaseDemoRequests(HttpRunner):
|
||||
Step(
|
||||
RunRequest("get with params")
|
||||
.with_variables(
|
||||
**{"foo1": "bar11", "foo2": "bar21", "sum_v": "${sum_two(1, 2)}"}
|
||||
**{"foo1": "bar11", "foo2": "bar21", "sum_v": "${sum_two_int(1, 2)}"}
|
||||
)
|
||||
.get("/get")
|
||||
.with_params(**{"foo1": "$foo1", "foo2": "$foo2", "sum_v": "$sum_v"})
|
||||
|
||||
Reference in New Issue
Block a user