change: keep project root dir

This commit is contained in:
debugtalk
2020-06-19 18:32:45 +08:00
parent 429d36b333
commit 609a1d586d

View File

@@ -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