mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-02 21:11:38 +08:00
refactor report: split test suite to separate tables
This commit is contained in:
@@ -206,13 +206,11 @@ class TestcaseLoader(object):
|
||||
]
|
||||
@return testset dict
|
||||
{
|
||||
"name": "desc1",
|
||||
"config": {},
|
||||
"testcases": [testcase11, testcase12]
|
||||
}
|
||||
"""
|
||||
testset = {
|
||||
"name": "",
|
||||
"config": {
|
||||
"path": file_path
|
||||
},
|
||||
@@ -228,7 +226,6 @@ class TestcaseLoader(object):
|
||||
|
||||
if key == "config":
|
||||
testset["config"].update(test_block)
|
||||
testset["name"] = test_block.get("name", "")
|
||||
|
||||
elif key == "test":
|
||||
if "api" in test_block:
|
||||
|
||||
Reference in New Issue
Block a user