mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
load_testcases_by_path: ignore file path that is not JSON or YAML
This commit is contained in:
@@ -173,7 +173,10 @@ def load_testcases_by_path(path):
|
||||
"config": {},
|
||||
"testcases": []
|
||||
}
|
||||
testcases_list = load_testcases(path)
|
||||
try:
|
||||
testcases_list = load_testcases(path)
|
||||
except ParamsError:
|
||||
return []
|
||||
|
||||
for item in testcases_list:
|
||||
for key in item:
|
||||
|
||||
Reference in New Issue
Block a user