addproject

This commit is contained in:
qiaoxinjiu
2026-01-22 19:10:37 +08:00
commit 6994b185a3
184 changed files with 21039 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""
测试配置文件
用于设置测试环境的路径和配置
"""
import os
import sys
# 添加项目根目录到 Python 路径,确保能导入 zhyy 模块
current_file_path = os.path.abspath(__file__)
# 从 test_case/TestCase/接口/conftest.py 向上找到项目根目录 d:\zhyy
project_root = os.path.abspath(os.path.join(os.path.dirname(current_file_path), '../../../..'))
if project_root not in sys.path:
sys.path.insert(0, project_root)