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