mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 09:19:41 +08:00
feat: check if testfile path, should be json or yaml file
This commit is contained in:
@@ -197,4 +197,8 @@ def is_testcase_path(path):
|
|||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
file_suffix = os.path.splitext(path)[1].lower()
|
||||||
|
if file_suffix != ['.json', '.yaml', '.yml']:
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user