mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: keep project root dir
This commit is contained in:
@@ -5,12 +5,11 @@ import os
|
||||
import sys
|
||||
from typing import List, Dict, Text, Union, Any
|
||||
|
||||
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_abs_path_valid
|
||||
from httprunner.utils import sort_dict_by_custom_order
|
||||
from loguru import logger
|
||||
|
||||
|
||||
def convert_variables(
|
||||
@@ -260,7 +259,7 @@ def generate_conftest_for_summary(args: List):
|
||||
sys.exit(1)
|
||||
|
||||
project_meta = load_project_meta(test_path)
|
||||
project_root_dir = ensure_file_abs_path_valid(project_meta.RootDir)
|
||||
project_root_dir = 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