change: code location

This commit is contained in:
debugtalk
2020-06-20 00:33:42 +08:00
parent 64b7659a12
commit 4f405d1620

View File

@@ -268,9 +268,6 @@ def generate_conftest_for_summary(args: List):
logger.error(f"No valid test path specified! \nargs: {args}")
sys.exit(1)
project_meta = load_project_meta(test_path)
project_root_dir = project_meta.RootDir
conftest_path = os.path.join(project_root_dir, "conftest.py")
conftest_content = '''# NOTICE: Generated By HttpRunner.
import json
import os
@@ -337,6 +334,10 @@ def session_fixture(request):
'''
project_meta = load_project_meta(test_path)
project_root_dir = project_meta.RootDir
conftest_path = os.path.join(project_root_dir, "conftest.py")
test_path = os.path.abspath(test_path)
logs_dir_path = os.path.join(project_root_dir, "logs")
test_path_relative_path = test_path[len(project_root_dir) + 1 :]