feat: check if testfile path, should be json or yaml file

This commit is contained in:
debugtalk
2020-01-01 22:17:49 +08:00
parent b1bf06d404
commit 3ccf68061e

View File

@@ -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