Skip to content

Commit

Permalink
fix: #1137 missing config when ensuring api testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengtong0898 committed Dec 21, 2021
1 parent dd9ad90 commit 3f2ca42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httprunner/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def ensure_testcase_v3_api(api_content: Dict) -> Dict:
teststep = _sort_step_by_custom_order(teststep)

config = {"name": api_content["name"]}
if api_content.get("config"):
config.update(**api_content["config"])

extract_variable_names: List = list(teststep.get("extract", {}).keys())
if extract_variable_names:
config["export"] = extract_variable_names
Expand Down

0 comments on commit 3f2ca42

Please sign in to comment.