This guide explains how to design and implement Python tests with pytest, including unit, integration, async, parameterized, property-based, and database tests. It provides examples for fixtures, mocks, error paths, coverage, and CI workflows, along with principles for test organization and maintainability. Use it when building test suites, improving test quality, or diagnosing failing tests.
69%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./tests/ext_conformance/artifacts/agents-wshobson/python-development/skills/python-testing-patterns/SKILL.mdScanned
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.