mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 01:39:39 +08:00
bump version to v4.0.0
This commit is contained in:
@@ -42,11 +42,11 @@ func TeardownHookExample(args string) string {
|
||||
}
|
||||
|
||||
func GetVersion() string {
|
||||
return "v4.0.0-beta"
|
||||
return fungo.Version
|
||||
}
|
||||
|
||||
func main() {
|
||||
fungo.Register("get_httprunner_version", GetVersion)
|
||||
fungo.Register("get_version", GetVersion)
|
||||
fungo.Register("sum_ints", SumInts)
|
||||
fungo.Register("sum_two_int", SumTwoInt)
|
||||
fungo.Register("sum_two", SumTwoInt)
|
||||
|
||||
@@ -5,8 +5,8 @@ from typing import List
|
||||
import funppy
|
||||
|
||||
|
||||
def get_httprunner_version():
|
||||
return "v4.0.0-beta"
|
||||
def get_version():
|
||||
return funppy.__version__
|
||||
|
||||
|
||||
def sleep(n_secs):
|
||||
@@ -60,7 +60,7 @@ def teardown_hook_example(name):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
funppy.register("get_httprunner_version", get_httprunner_version)
|
||||
funppy.register("get_version", get_version)
|
||||
funppy.register("sum", sum)
|
||||
funppy.register("sum_ints", sum_ints)
|
||||
funppy.register("concatenate", concatenate)
|
||||
|
||||
@@ -24,7 +24,7 @@ teststeps:
|
||||
method: POST
|
||||
url: /post
|
||||
headers:
|
||||
User-Agent: HttpRunner/${get_httprunner_version()}
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "application/x-www-form-urlencoded"
|
||||
data: "foo1=$foo1&foo2=$foo3"
|
||||
validate:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v4.0.0-beta
|
||||
# NOTE: Generated By HttpRunner v4.0.0
|
||||
# FROM: testcases/demo_ref_testcase.yml
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class TestCaseDemoRefTestcase(HttpRunner):
|
||||
.post("/post")
|
||||
.with_headers(
|
||||
**{
|
||||
"User-Agent": "HttpRunner/${get_httprunner_version()}",
|
||||
"User-Agent": "funplugin/${get_version()}",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ teststeps:
|
||||
foo2: $foo2
|
||||
sum_v: $sum_v
|
||||
headers:
|
||||
User-Agent: HttpRunner/${get_httprunner_version()}
|
||||
User-Agent: funplugin/${get_version()}
|
||||
extract:
|
||||
foo3: "body.args.foo2"
|
||||
validate:
|
||||
@@ -41,7 +41,7 @@ teststeps:
|
||||
method: POST
|
||||
url: /post
|
||||
headers:
|
||||
User-Agent: HttpRunner/${get_httprunner_version()}
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "text/plain"
|
||||
data: "This is expected to be sent back as part of response body: $foo1-$foo2-$foo3."
|
||||
validate:
|
||||
@@ -55,7 +55,7 @@ teststeps:
|
||||
method: POST
|
||||
url: /post
|
||||
headers:
|
||||
User-Agent: HttpRunner/${get_httprunner_version()}
|
||||
User-Agent: funplugin/${get_version()}
|
||||
Content-Type: "application/x-www-form-urlencoded"
|
||||
data: "foo1=$foo1&foo2=$foo2&foo3=$foo3"
|
||||
validate:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v4.0.0-beta
|
||||
# NOTE: Generated By HttpRunner v4.0.0
|
||||
# FROM: testcases/demo_requests.yml
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class TestCaseDemoRequests(HttpRunner):
|
||||
)
|
||||
.get("/get")
|
||||
.with_params(**{"foo1": "$foo1", "foo2": "$foo2", "sum_v": "$sum_v"})
|
||||
.with_headers(**{"User-Agent": "HttpRunner/${get_httprunner_version()}"})
|
||||
.with_headers(**{"User-Agent": "funplugin/${get_version()}"})
|
||||
.extract()
|
||||
.with_jmespath("body.args.foo2", "foo3")
|
||||
.validate()
|
||||
@@ -45,7 +45,7 @@ class TestCaseDemoRequests(HttpRunner):
|
||||
.post("/post")
|
||||
.with_headers(
|
||||
**{
|
||||
"User-Agent": "HttpRunner/${get_httprunner_version()}",
|
||||
"User-Agent": "funplugin/${get_version()}",
|
||||
"Content-Type": "text/plain",
|
||||
}
|
||||
)
|
||||
@@ -65,7 +65,7 @@ class TestCaseDemoRequests(HttpRunner):
|
||||
.post("/post")
|
||||
.with_headers(
|
||||
**{
|
||||
"User-Agent": "HttpRunner/${get_httprunner_version()}",
|
||||
"User-Agent": "funplugin/${get_version()}",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1 +1 @@
|
||||
v4.0.0-beta
|
||||
v4.0.0
|
||||
Reference in New Issue
Block a user