add unit test and closes #971

This commit is contained in:
jun
2020-07-28 12:49:26 +08:00
parent ac9664e842
commit fa30ce3bc7
5 changed files with 70 additions and 5 deletions

View File

@@ -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})"