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

This commit is contained in:
debugtalk
2020-06-15 17:20:52 +08:00
parent d7c1aad2e9
commit 181b1234a8
3 changed files with 3 additions and 2 deletions

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