- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability. - Ensured consistent formatting across documentation and code files, contributing to overall project clarity. - Enhanced logging mechanisms for better consistency and debugging support.
107 lines
660 B
Plaintext
107 lines
660 B
Plaintext
# 测试依赖包
|
|
# 安装命令: pip install -r requirements-test.txt
|
|
|
|
# 测试框架
|
|
pytest>=7.4.0
|
|
pytest-cov>=4.1.0
|
|
pytest-mock>=3.11.0
|
|
pytest-asyncio>=0.21.0
|
|
pytest-timeout>=2.1.0
|
|
pytest-xdist>=3.3.0 # 并行测试
|
|
|
|
# 代码质量检查(用于测试)
|
|
pytest-flake8>=1.1.0
|
|
pytest-pylint>=0.21.0
|
|
|
|
# 测试报告
|
|
pytest-html>=3.2.0
|
|
pytest-json-report>=1.5.0
|
|
|
|
# Mock和Fixtures
|
|
responses>=0.23.0 # HTTP请求mock
|
|
freezegun>=1.2.0 # 时间mock
|
|
faker>=19.0.0 # 测试数据生成
|
|
|
|
# 代码覆盖率
|
|
coverage>=7.3.0
|
|
|
|
# 类型检查(可选)
|
|
mypy>=1.5.0
|
|
types-requests>=2.31.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|