From 609a1d586d60d35d855198dab7c7525e853fcfe1 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 19 Jun 2020 18:32:45 +0800 Subject: [PATCH] change: keep project root dir --- httprunner/compat.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/httprunner/compat.py b/httprunner/compat.py index 594f6470..e9a77800 100644 --- a/httprunner/compat.py +++ b/httprunner/compat.py @@ -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