mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 17:29:56 +08:00
tests: update version
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: basic.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: hooks.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: load_image.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: upload.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: validate.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/request_with_functions.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/request_with_testcase_reference.yml
|
||||
|
||||
import sys
|
||||
@@ -35,7 +35,9 @@ class TestCaseRequestWithTestcaseReference(HttpRunner):
|
||||
.with_variables(
|
||||
**{"foo1": "testcase_ref_bar1", "expect_foo1": "testcase_ref_bar1"}
|
||||
)
|
||||
.setup_hook("${sleep(0.1)}")
|
||||
.call(RequestWithFunctions)
|
||||
.teardown_hook("${sleep(0.2)}")
|
||||
.export(*["foo3"])
|
||||
),
|
||||
Step(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/hardcode.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/request_with_variables.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/validate_with_functions.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# NOTE: Generated By HttpRunner v3.1.0
|
||||
# NOTE: Generated By HttpRunner v3.1.2
|
||||
# FROM: request_methods/validate_with_variables.yml
|
||||
|
||||
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
|
||||
|
||||
@@ -137,7 +137,9 @@ def load_dot_env_file(dot_env_path: Text) -> Dict:
|
||||
else:
|
||||
raise exceptions.FileFormatError(".env format error")
|
||||
|
||||
env_variables_mapping[variable.strip().decode("utf-8")] = value.strip().decode("utf-8")
|
||||
env_variables_mapping[
|
||||
variable.strip().decode("utf-8")
|
||||
] = value.strip().decode("utf-8")
|
||||
|
||||
utils.set_os_environ(env_variables_mapping)
|
||||
return env_variables_mapping
|
||||
|
||||
Reference in New Issue
Block a user