sk Skill · affaan-m
python-testing
Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements. Use when writing pytest tests — fixtures, mocks, parametrization, or coverage.
Open on skills.sh ↗read 2026-09-17
- installs 8w
- 1,915
- 30-day movement
- starts with the next reading
- Related entries
- 8
- Connections
- 0
pythontomlinibashJavaScript
A SKILL.md agent skill that loads pytest testing guidance into an AI coding agent. It covers TDD workflow, fixtures, parametrization, mocking, async testing, markers, coverage targets (80%+, 100% for critical paths), pytest configuration, and do/don't best practices with code examples.
Reach for it when you want the agent to write or review pytest tests following a consistent TDD methodology instead of ad-hoc patterns.
Use it to
- Write new Python code following the red-green-refactor TDD cycle
- Set up fixtures, conftest.py, and parametrized tests
- Mock functions, classes, and async calls with autospec
- Configure pytest.ini or pyproject.toml and measure coverage
- Review test suites for coverage and best-practice violations
For Developers using AI coding agents to write Python tests
- Host repository
- affaan-m/ECC
- Installs, lifetime
- 3,300
- Installs, 8 weeks
- 1,915
- Host stars
- 261k
- Host language
- JavaScript
topicspytesttestingtddmockingfixturescoverage