mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 14:32:31 +08:00
change: rename ensure_file_abs_path_valid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user