首页/测试 & QA/python-testing-patterns
P

python-testing-patterns

by @sickn33v1.0.0
4.0(0)

运用pytest等工具实现全面的Python测试策略,包括单元测试、集成测试和端到端测试。

PytestTesting StrategiesFixturesUnit TestingIntegration TestingGitHub
安装方式
npx skills add sickn33/antigravity-awesome-skills --skill python-testing-patterns
compare_arrows

Before / After 效果对比

1
使用前

测试覆盖率低,测试用例编写随意,缺乏系统性的测试策略,导致软件缺陷频繁,发布风险高,修复bug耗时耗力,严重影响开发进度和产品质量与用户体验。

使用后

采用Pytest框架实现全面的测试策略,包括单元测试、集成测试和端到端测试,有效发现并修复缺陷,显著提升代码质量和软件稳定性,降低发布风险,确保产品可靠性。

description SKILL.md


name: python-testing-patterns description: "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." risk: unknown source: community date_added: "2026-02-27"

Python Testing Patterns

Comprehensive guide to implementing robust testing strategies in Python using pytest, fixtures, mocking, parameterization, and test-driven development practices.

Use this skill when

  • Writing unit tests for Python code
  • Setting up test suites and test infrastructure
  • Implementing test-driven development (TDD)
  • Creating integration tests for APIs and services
  • Mocking external dependencies and services
  • Testing async code and concurrent operations
  • Setting up continuous testing in CI/CD
  • Implementing property-based testing
  • Testing database operations
  • Debugging failing tests

Do not use this skill when

  • The task is unrelated to python testing patterns
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量7.3K
评分4.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组

用户评分

4.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年3月16日