add unit test and closes #971

This commit is contained in:
jun
2020-07-28 12:49:26 +08:00
parent 5ff154317c
commit 46bba7c42a
5 changed files with 70 additions and 5 deletions
+1 -3
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})"