change: rename ensure_file_abs_path_valid

This commit is contained in:
debugtalk
2020-06-19 15:46:38 +08:00
parent 215295cdda
commit 3e8bd4b6f0
6 changed files with 26 additions and 27 deletions

View File

@@ -10,7 +10,7 @@ from loguru import logger
from httprunner import exceptions
from httprunner.loader import load_project_meta
from httprunner.parser import parse_data
from httprunner.utils import sort_dict_by_custom_order, ensure_file_path_valid
from httprunner.utils import sort_dict_by_custom_order, ensure_file_abs_path_valid
def convert_variables(
@@ -260,7 +260,7 @@ def generate_conftest_for_summary(args: List):
sys.exit(1)
project_meta = load_project_meta(test_path)
project_root_dir = ensure_file_path_valid(project_meta.RootDir)
project_root_dir = ensure_file_abs_path_valid(project_meta.RootDir)
conftest_path = os.path.join(project_root_dir, "conftest.py")
conftest_content = '''# NOTICE: Generated By HttpRunner.
import json