mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 09:47:35 +08:00
bugfix: make compatible with testcase name is empty
This commit is contained in:
@@ -733,8 +733,12 @@ def _extend_with_testcase(test_dict, testcase_def_dict):
|
||||
test_verify = test_dict.pop("verify", True)
|
||||
testcase_def_dict["config"].setdefault("verify", test_verify)
|
||||
|
||||
# override name
|
||||
test_name = test_dict.pop("name") or testcase_def_dict["config"].pop("name") or "Undefined name"
|
||||
|
||||
# override testcase config name, output, etc.
|
||||
testcase_def_dict["config"].update(test_dict)
|
||||
testcase_def_dict["config"]["name"] = test_name
|
||||
|
||||
test_dict.clear()
|
||||
test_dict.update(testcase_def_dict)
|
||||
|
||||
Reference in New Issue
Block a user