python-testing-patterns

仓库创建 2026年7月15日最近提交 7 天前SkillHot 收录 4 天前
这个 Skill 做什么

把 pytest 的测试策略落到实处:审查测试隔离、fixture 设计、mock 使用、命名和 TDD 流程,找覆盖盲点并给出改进建议。适合写测试、搭建测试套件或想提升测试质量与覆盖率时使用。特点是关注 AAA 结构、fixture 与 mocking 的正确用法,并结合项目配置给出可执行修复点。

▸ 展开 SKILL.md 英文原文

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

0
Stars
0
Forks
10
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/python-testing-patterns/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/python-testing-patterns/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Python Testing Patterns

Review skill for Python test code: test isolation, naming, coverage gaps, mocking patterns, fixture design, and AAA structure.

> **Configuration source**: all project-level configuration (tool availability, effective pytest/coverage config) is read from `settings.json` — specifically the `python.tools.*` objects. Rule toggles are in `python.testing`. See the parent `SKILL.md` for the setup guard and the shared "Running tools" convention.

> **Review mode**: when this skill is invoked as part of a read-only review (e.g. `/zolletta-metaskill review`), follow the rules in [`../docs/reference/code/review-mode.md`](../docs/reference/code/review-mode.md) — do not apply 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有