write-pytest-tests

Community

Generate robust pytest unit tests.

Authorjah377
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the creation of rigorous, maintainable unit tests for Python code, ensuring higher code quality and catching bugs early in the development lifecycle.

Core Features & Use Cases

  • Pytest Framework: Exclusively uses pytest for testing, avoiding class-based unittest patterns.
  • Mirrored Structure: Test files are organized to mirror the source code structure.
  • Clear Naming: Employs a test_<function_name>_<condition> naming convention for clarity.
  • Use Case: When developing a new Python module, use this Skill to generate a comprehensive suite of unit tests that cover various scenarios, including edge cases and expected error conditions.

Quick Start

Use the write-pytest-tests skill to generate tests for the add function in my_package/utils/calculator.py.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: write-pytest-tests
Download link: https://github.com/jah377/dotfiles/archive/main.zip#write-pytest-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.