fix: SyntaxError caused by quote in case of headers."Set-Cookie"

This commit is contained in:
debugtalk
2020-06-15 17:36:07 +08:00
parent 1847532457
commit b8b2e26b3e
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ def make_teststep_chain_style(teststep: Dict) -> Text:
# request step
step_info += ".extract()"
for extract_name, extract_path in teststep["extract"].items():
step_info += f'.with_jmespath("{extract_path}", "{extract_name}")'
step_info += f""".with_jmespath('{extract_path}', '{extract_name}')"""
if "export" in teststep:
# reference testcase step