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-code

Installs 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
1hamelsmu avatarevaluate-raghamelsmu/evals-skillsGuides evaluation of RAG pipeline retrieval and generation quality. Use when evaluating a retrieval-augmented generation system, measuring retrieval quality, as850skills.sh installs
2dimillian avatarreview-swarmdimillian/skillsParallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or rel789skills.sh installs
3github avatarsalesforce-component-standardsgithub/awesome-copilotQuality standards for Salesforce Lightning Web Components (LWC), Aura components, and Visualforce pages. Covers SLDS 2 compliance, accessibility (WCAG 2.1 AA), 770skills.sh installs
4davila7 avatarbrowser-automationdavila7/claude-code-templatesBrowser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understand753skills.sh installs
5github avatarreact18-enzyme-to-rtlgithub/awesome-copilotProvides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mou742skills.sh installs
6mindrally avatarrspecmindrally/skillsRSpec testing best practices for Ruby and Rails applications, covering test organization, data management, and isolation patterns.734skills.sh installs