pytest-best-practices

Provide pytest best practices for writing maintainable tests.

17|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill pytest-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytest-best-practices
Source: https://github.com/cfircoo/claude-code-toolkit/tree/main/skills/pytest-best-practices
Command: npx skills add https://github.com/cfircoo/claude-code-toolkit --skill pytest-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide pytest best practices and patterns for writing maintainable, efficient tests.

Core Features & Use Cases

  • Test independence with fixtures
  • Naming conventions for files, functions, and classes
  • Structured directory layout (tests/, unit/, integration/, fixtures/)
  • Core testing rules: plain asserts, one assertion per test, edge-case coverage

Quick Start

  1. Create tests/ with unit/, integration/, and fixtures/
  2. Use plain assert statements, and fixtures for setup
  3. Parametrize tests where appropriate