# Python Testing Patterns (agent skill)

> Python Testing Patterns is an agent skill (a SKILL.md file) from wshobson/agents. Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. It works with Claude Code, Codex, Cursor, GitHub Copilot and OpenCode and has 40,254 GitHub stars across a repository of 8 listed skills.

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. Comprehensive guide to implementing robust testing strategies in Python using pytest, fixtures, mocking, parameterization, and test-driven development practices.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/wshobson/agents |
| Skill path | plugins/python-development/skills/python-testing-patterns/SKILL.md |
| Skill name | python-testing-patterns |
| GitHub stars | 40,254 |
| Installs on skills.sh | 5 |
| License | MIT |
| Skills in repo | 8 |
| Plugin marketplace | claude-code-workflows |
| Official | no |
| Works with | Claude Code, Codex, Cursor, GitHub Copilot, OpenCode |
| Category | Testing & QA |
| Last commit | Oct 4, 2026 |

## When it triggers

- Use when writing Python tests, setting up test suites, or implementing testing best practices.

## Add this skill

### Claude Code

```sh
/plugin marketplace add wshobson/agents
/plugin install python-development@claude-code-workflows
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/wshobson/agents.git
cp -r agents/plugins/python-development/skills/python-testing-patterns .agents/skills/python-testing-patterns   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/wshobson/agents.git
cp -r agents/plugins/python-development/skills/python-testing-patterns .cursor/skills/python-testing-patterns   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/wshobson/agents/python-testing-patterns

---

Canonical page: https://appsgit.com/skills/wshobson-python-testing-patterns
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
