Skip to content

Pytest fixtures, parametrization, and mocking patterns for reliable, maintainable Python test suites.

CCM score
43 of 100
skills.sh installs
884
GitHub stars
64
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers fixture scopes, dependency graphs, autouse and factory fixtures, and parametrization including indirect and ID-tagged cases
  • Includes worked examples for unittest versus pytest syntax, test discovery rules, and combining marks with parametrized inputs
  • Provides guidance on monkeypatching and mocking external services, with the source excerpt ending before the mocking section
  • Designed for developers writing unit, integration, or async tests and organizing large suites in CI pipelines

Install

$ npx -y skills add manutej/luxor-claude-marketplace --skill pytest-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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?

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

Similar to Pytest Patterns

More Testing & QA