feat: add 'upload' keyword for upload test

This commit is contained in:
debugtalk
2019-12-12 17:22:51 +08:00
parent 8b596b2177
commit e908367a58
5 changed files with 144 additions and 73 deletions

View File

@@ -2,7 +2,6 @@ import importlib
import os
from httprunner import exceptions, logger, utils
from httprunner.builtin import functions
from httprunner.loader.load import load_module_functions, load_folder_content, load_file, load_dot_env_file, \
load_folder_files
from httprunner.loader.locate import init_project_working_directory, get_project_working_directory
@@ -481,7 +480,6 @@ def load_project_data(test_path, dot_env_path=None):
# locate PWD and load debugtalk.py functions
project_mapping["PWD"] = project_working_directory
functions.PWD = project_working_directory # TODO: remove
project_mapping["functions"] = debugtalk_functions
project_mapping["test_path"] = os.path.abspath(test_path)