Python Testing
Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.
- Type
- Skill
- Author
- affaan-m
- Category
- Testing
- GitHub stars
- 290.0K
- Installs
- 5.0K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/affaan-m/ecc --skill python-testingUse cases
- Set up a pytest suite with fixtures and parametrized test cases.
- Add mocking to isolate units that touch external services.
- Apply TDD when starting a new Python backend module.
Frequently Asked Questions
Which test framework does this skill use?
It covers Python testing with pytest.
Does it address code coverage?
Yes, coverage requirements are part of the material, alongside fixtures, mocking, and parametrization.
Is it useful before any tests exist?
Yes — it includes TDD methodology, so it can guide a suite from the start rather than only refactoring existing tests.
About this skill
Covers Python testing with pytest: fixtures, mocking, parametrization, coverage requirements, and TDD methodology. Aimed at backend developers setting up or improving a test suite. Useful as a reference when tests need structure rather than one-off assertions.
Summary written with AI assistance from the project's public description.
More from affaan-m
Video Editing
AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg...
by affaan-m
Docker Patterns
Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.
by affaan-m
Security Review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive fea...
by affaan-m
Backend Patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
by affaan-m
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh