# Pytest

> Use when explicitly creating, debugging, reviewing, or improving Python tests with pytest.

- Skill: `rhenter/pytest` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rhenter/pytest`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rhenter/pytest/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: rhenter (https://skillmd.com/u/rhenter)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/rhenter/pytest

---


# Pytest

- Prefer focused Arrange/Act/Assert tests.
- Use fixtures for reusable setup, not hidden behavior.
- Mock external boundaries rather than internal implementation details.
- Cover success paths, edge cases, and relevant failures.

