Python Testing Skill
Build focused pytest tests using fixtures, parametrization and useful failure cases.
What this skill does
Pytest structure
Create behavior-focused tests using fixtures, parametrized cases and clear assertions.
Isolation
Use mocks, temporary files and controlled inputs where external dependencies should be separated.
Failure coverage
Test expected exceptions, boundaries and regressions as part of a red/green/refactor workflow.
What to provide & what you get
- Input
- Python code, expected behavior and the project's test setup
- Expected output
- Pytest cases and fixtures targeting behavior and important edge cases
Community source
Upstream source
Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.
Read upstream SKILL.md- Repository
- affaan-m/ECC
- File
skills/python-testing/SKILL.md- Revision
76aaa77df6adc5b889e689007bf99b9a4f74af34
The downloaded SKILL.md text matches this upstream entrypoint. Review the ZIP’s source and license records for the complete packaging details.
Installation
- Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only
SKILL.md. - Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.
Codex
- This project
.agents/skills/python-testing/SKILL.md- All your projects
~/.agents/skills/python-testing/SKILL.md
Claude Code
- This project
.claude/skills/python-testing/SKILL.md- All your projects
~/.claude/skills/python-testing/SKILL.md
- Check the final path. It must match one of the paths above, with one
python-testing/folder directly underskills/. Avoid an extra ZIP-name folder around it. - Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.
Before the first run
- Python code and its expected behavior
- Python and pytest for executing tests.
The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.
What's in the download
3 files across 1 skill folder. Includes python-testing/SKILL.md.
File integrity (SHA256):
d472e909aff39b515b0f8064074a161a9a47f2956e99a8bebe0b795edf206fa0How to use
- Provide the function or module, expected behavior and current test configuration.
- Ask for cases that exercise meaningful outcomes and important failure paths.
- Run pytest and inspect failing assertions, fixture scope and any remaining gaps.
Try it in your agent
Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.
Codex
Use $python-testing. Add pytest coverage for the important behavior and failure paths of this module.
Claude Code
/python-testing Add pytest coverage for the important behavior and failure paths of this module.
Check the result: A passing test suite only establishes the behavior exercised by its inputs and assertions.



