mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
fix: request url has variable extracted from former api
This commit is contained in:
@@ -815,10 +815,6 @@ def __parse_tests(tests, config, project_mapping):
|
|||||||
test_dict["variables"],
|
test_dict["variables"],
|
||||||
functions
|
functions
|
||||||
)
|
)
|
||||||
test_dict["request"]["url"] = utils.build_url(
|
|
||||||
base_url,
|
|
||||||
request_url
|
|
||||||
)
|
|
||||||
except exceptions.VariableNotFound:
|
except exceptions.VariableNotFound:
|
||||||
""" variable in current url maybe extracted from former api
|
""" variable in current url maybe extracted from former api
|
||||||
"tests": [
|
"tests": [
|
||||||
@@ -835,7 +831,12 @@ def __parse_tests(tests, config, project_mapping):
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
pass
|
request_url = test_dict["request"]["url"]
|
||||||
|
finally:
|
||||||
|
test_dict["request"]["url"] = utils.build_url(
|
||||||
|
base_url,
|
||||||
|
request_url
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _parse_testcase(testcase, project_mapping):
|
def _parse_testcase(testcase, project_mapping):
|
||||||
|
|||||||
Reference in New Issue
Block a user