mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
fix: override locust weight
This commit is contained in:
@@ -472,8 +472,8 @@ def make_testsuite(testsuite: Dict) -> NoReturn:
|
|||||||
testcase_dict["config"]["variables"].update(testcase_variables)
|
testcase_dict["config"]["variables"].update(testcase_variables)
|
||||||
|
|
||||||
# override weight
|
# override weight
|
||||||
weight = testcase.get("weight", 1)
|
if "weight" in testcase:
|
||||||
testcase_dict["config"]["weight"] = weight
|
testcase_dict["config"]["weight"] = testcase["weight"]
|
||||||
|
|
||||||
# make testcase
|
# make testcase
|
||||||
testcase_pytest_path = make_testcase(testcase_dict, testsuite_dir)
|
testcase_pytest_path = make_testcase(testcase_dict, testsuite_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user