Python testing framework with fixtures, parametrization, markers, and FastAPI, Django, and Flask integration.
- skills.sh installs
- 1.3K
- GitHub stars
- 80
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers unit and integration testing: assertions, fixtures with scopes, parametrized data-driven tests, and async test support
- Includes plugin guidance for
pytest-cov,pytest-asyncio,pytest-mock,pytest-django, andpytest-xdistparallel runs - Provides built-in markers such as
skip,skipif, andxfailfor conditional and expected-failure tests - Designed for Python projects following TDD workflows that test APIs, databases, and mocked dependencies
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill pytest -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
pytest - Professional Python Testing
Overview
pytest is the industry-standard Python testing framework, offering powerful features like fixtures, parametrization, markers, plugins, and seamless integration with FastAPI, Django, and Flask. It provides a simple, scalable approach to testing from unit tests to complex integration scenarios.
Key Features:
- Fixture system for dependency injection
- Parametrization for data-driven tests
- Rich assertion introspection (no need for
self.assertEqual) - Plugin ecosystem (pytest-cov, pytest-asyncio, pytest-mock, pytest-django)
- Async/await support
- Parallel test execution with pytest-xdist
- Test discovery and organization
- Detailed failure reporting
Installation:
# Basic pytest
pip install pytest
# With common plugins
pip install pytest pytest-cov pytest-asyncio pytest-mock
# For FastAPI testing
pip install pytest httpx pytest-asyncio
# For Django testing
pip install pytest pytest-django
# For async databases
pip install pytest-asyncio aiosqlite
Basic Testing Patterns
1. Simple Test Functions
# test_math.py
def add(a, b):
return a + b
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Categories
- Testing & QA, Python
More from bobmatnyc/claude-mpm-skills
All 154- Tailwind Css1.2K
- Docker1.1K
- Trpc Type Safety1K
- Biome962
- Vitest951
- Daisyui924
- Zod909
- Sqlalchemy Orm873
- Github Actions780
- Nodejs Backend Typescript745
- Cypress672
- Session Compression672
- Opentelemetry658
- Hono Cloudflare650
- Wordpress Security Validation632
- Xlsx607
- Tanstack Query603
- Fastify590
- Api Design Patterns587
- Skill Creator577
- Git Workflow576
- Express Production527
- Golang Grpc525
- Hono Core511
Similar to Pytest
More Testing & QA
python-testingSkillmindrally/skills1.1K installsPytest-focused testing guidance covering unit, integration, property-based, and mocking practices for Python.
python-testing-patternsSkillwshobson/agents40.7K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.
jutsu-pytestPluginTheBushidoCollective/han201 starsComprehensive Pytest testing framework skills for Python projects with fixtures, plugins, and advanced testing patterns.
test-driven-developmentSkillbobmatnyc/claude-mpm-skills406 installsLanguage-agnostic TDD guide covering red-green-refactor, test structure, mocking, and coverage targets for any stack.
unit-testing-frameworkSkillaj-geddes/useful-ai-prompts632 installsStructured guidance for writing unit tests with Jest, pytest, JUnit, or RSpec, following the AAA pattern.
test-quality-inspectorSkillbobmatnyc/claude-mpm-skills381 installsTest quality inspection framework that flags worthless assertions and missing negative cases in test suites.
