mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 18:57:37 +08:00
add unit test and closes #971
This commit is contained in:
@@ -237,9 +237,7 @@ def make_request_chain_style(request: Dict) -> Text:
|
||||
|
||||
if "json" in request:
|
||||
req_json = request["json"]
|
||||
if not isinstance(req_json, Text):
|
||||
pass
|
||||
else:
|
||||
if isinstance(req_json, Text):
|
||||
req_json = f'"{req_json}"'
|
||||
request_chain_style += f".with_json({req_json})"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user