LogoClawIndex
案例技能关于
LogoClawIndex

python-testing - 使用 pytest 设计和运行 Python 测试

使用 pytest、TDD、fixture、模拟、参数化和覆盖率实践制定 Python 测试策略。

标签

更新于: 2026-10-07
Pythonpytest软件测试TDD测试覆盖率模拟测试

能力

设计 Python 测试策略应用 TDD 循环创建 pytest fixture参数化测试用例

典型输入

Python 应用代码测试需求覆盖率要求

典型输出

Python 测试套件测试执行结果覆盖率报告

该技能可以做什么

  • 设计 Python 测试策略
  • 应用 TDD 循环
  • 创建 pytest fixture
  • 参数化测试用例
  • 模拟外部依赖
  • 测量测试覆盖率

输入

  • Python 应用代码
  • 测试需求
  • 覆盖率要求
  • 外部依赖

输出

  • Python 测试套件
  • 测试执行结果
  • 覆盖率报告
  • 测试基础设施文件

要求

  • Python 环境
  • pytest
  • 覆盖率支持

来源

  • 规范: SKILL.md

ClawIndex

OpenClaw Skills 与 Use Case 索引

ClawIndex 是一个生态驱动的 OpenClaw Skills 与真实 Use Case 索引站。

索引

Skills·
Cases

Meta

关于·
声明·
邮箱·
GitHub
© 2026 ClawIndex 保留所有权利。