python-testing

Enforce standardized pytest and TDD workflows for Python test writing.

26|1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/BinyaminEden/claude-combine --skill python-testing-binyamineden
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-testing
Source: https://github.com/BinyaminEden/claude-combine/tree/main/skills/python-testing
Command: npx skills add https://github.com/BinyaminEden/claude-combine --skill python-testing-binyamineden

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the inconsistency and low coverage common in ad-hoc Python test writing, ensuring you follow proven test-driven development (TDD) practices and maintain clean, reliable test suites for your Python projects.

Core Features & Use Cases

  • TDD Workflow Enforcement: Step-by-step guidance for the red-green-refactor cycle to write tests before implementation.
  • pytest Feature Mastery: Covers fixtures, parametrization, mocking, markers, and async test writing for efficient test development.
  • Use Case: When building a new Python microservice, use this Skill to set up a structured pytest test suite with 80%+ coverage, mock external API calls, and organize unit and integration tests for long-term maintainability.

Quick Start

Use the python-testing skill to write a failing pytest test for your new user authentication function, then implement the minimal code to make it pass following TDD principles.

Frequently Asked Questions about python-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write pytest tests following TDD principles in Python?

To write pytest tests using TDD, this Skill enforces the red-green-refactor cycle, guiding you to write failing tests first and then implementing minimal code to pass. It standardizes workflows for reliable Python test creation.

How do I manage pytest fixtures and mock external dependencies?

Pytest fixtures and external dependency mocking are managed through standardized workflows provided by this Skill. It satisfies requirements for fixture management and mocking to ensure clean, isolated, and reliable unit tests.

Does this approach work for setting up async Python tests?

Yes, this approach supports async test implementation within your Python test suite. It provides pytest configuration and testing infrastructure specifically designed for writing and organizing asynchronous tests.

What is the best way to organize unit, integration, and end-to-end tests in pytest?

The best way to organize pytest tests is by applying structured test suite design configurations enforced by this Skill. It separates unit, integration, and end-to-end tests to maintain long-term project maintainability.

How do I perform code coverage auditing for a Python microservice?

Code coverage auditing for a Python microservice is performed by applying this Skill's standardized pytest workflows. It helps structure test suites to achieve 80%+ coverage and audits existing tests for gaps.