mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 15:17:36 +08:00
fixed json support and closes #971
This commit is contained in:
@@ -237,6 +237,10 @@ def make_request_chain_style(request: Dict) -> Text:
|
||||
|
||||
if "json" in request:
|
||||
req_json = request["json"]
|
||||
if not isinstance(req_json, Text):
|
||||
pass
|
||||
else:
|
||||
req_json = f'"{req_json}"'
|
||||
request_chain_style += f".with_json({req_json})"
|
||||
|
||||
if "timeout" in request:
|
||||
|
||||
Reference in New Issue
Block a user