mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +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):
|
||||
return False
|
||||
|
||||
file_suffix = os.path.splitext(path)[1].lower()
|
||||
if file_suffix != ['.json', '.yaml', '.yml']:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user