pass in specified .env file path

This commit is contained in:
debugtalk
2018-10-01 19:29:22 +08:00
parent e43903d892
commit 883fc7bdbe
3 changed files with 9 additions and 6 deletions

View File

@@ -935,7 +935,7 @@ def load_tests(path, dot_env_path=None):
testcases_list = []
for file_path in set(path):
testcases = load_tests(file_path)
testcases = load_tests(file_path, dot_env_path)
if not testcases:
continue
testcases_list.extend(testcases)
@@ -952,7 +952,7 @@ def load_tests(path, dot_env_path=None):
if os.path.isdir(path):
files_list = load_folder_files(path)
testcases_list = load_tests(files_list)
testcases_list = load_tests(files_list, dot_env_path)
elif os.path.isfile(path):
try: