fix: demo function compatibility

This commit is contained in:
debugtalk
2022-04-25 13:32:02 +08:00
parent e2fb760110
commit caccf426e6
7 changed files with 148 additions and 4 deletions

View File

@@ -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

View File

@@ -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"})