
Pytest Patterns
If you're writing Python tests, this is your reference for doing pytest properly. It covers the essentials like fixtures with different scopes, parametrization for running the same test with different inputs, and mocking external dependencies. The fixture patterns are especially useful since that's where most people either build maintainable test suites or end up with a tangled mess. You'll find examples of fixture factories, autouse fixtures, and dependency chains. Also includes test organization strategies, coverage analysis, and CI/CD integration. Good for both setting up a new test suite and refactoring an existing one that's gotten out of hand.
- skills.sh installs
- 858
- GitHub stars
- 63
- last updated
- Aug 21, 2026
Install
$ npx -y skills add manutej/luxor-claude-marketplace --skill pytest-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pytest Patterns - Comprehensive Testing Guide
A comprehensive skill for mastering Python testing with pytest. This skill covers everything from basic test structure to advanced patterns including fixtures, parametrization, mocking, test organization, coverage analysis, and CI/CD integration.
When to Use This Skill
Use this skill when:
- Writing tests for Python applications (web apps, APIs, CLI tools, libraries)
- Setting up test infrastructure for a new Python project
- Refactoring existing tests to be more maintainable and efficient
- Implementing test-driven development (TDD) workflows
- Creating fixture patterns for database, API, or external service testing
- Organizing large test suites with hundreds or thousands of tests
- Debugging failing tests or improving test reliability
- Setting up continuous integration testing pipelines
- Measuring and improving code coverage
- Writing integration, unit, or end-to-end tests
- Testing async Python code
- Mocking external dependencies and services
Core Concepts
What is pytest?
Sponsors
Details
- Repository
- github.com/manutej/luxor-claude-marketplace
- Categories
- Testing & QA, Python
- First seen
- Jun 3, 2026
More from manutej/luxor-claude-marketplace
All 66- Ui Design Patterns854
- Ux Principles838
- Frontend Architecture728
- Axum Web Framework659
- Alembic645
- Oauth2 Authentication603
- Aws Cloud Architecture595
- Fastapi Microservices Development590
- Wireframing568
- Expressjs Development562
- Mobile Design553
- Figma Design544
- Ci Cd Pipeline Patterns538
- Spring Boot Development536
- Enterprise Architecture Patterns530
- Rest Api Design Patterns527
- Responsive Design513
- Vuejs Development511
- Grpc Microservices510
- Hasura Graphql Engine506
- Asyncio Concurrency Patterns491
- Redis State Management490
- Rust Systems Programming488
- Api Gateway Patterns482