python-testing

Design Python test coverage plans for pytest-based unit, integration, async, and API workflows.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/emiled16/close-to-me --skill python-testing-emiled16
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-testing
Source: https://github.com/emiled16/close-to-me/tree/main/.codex/skills/python-testing
Command: npx skills add https://github.com/emiled16/close-to-me --skill python-testing-emiled16

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, write, and review Python test suites so you can catch bugs early, protect critical behavior, and keep test code maintainable.

Core Features & Use Cases

  • TDD Workflow: Follow red, green, refactor to build features with tests first.
  • Pytest Patterns: Use fixtures, parametrization, markers, async tests, and exception assertions effectively.
  • Mocking and Isolation: Replace external services, filesystem access, and other dependencies with controlled test doubles.
  • Coverage and Organization: Structure unit, integration, and end-to-end tests with clear coverage goals.
  • Use Case: A developer can use this Skill to create a clean pytest suite for an API, including auth fixtures, mocked network calls, and coverage enforcement.

Quick Start

Use the python-testing skill to design a pytest-based test plan for my Python project with fixtures, mocking, parametrization, and a coverage target.

Frequently Asked Questions about python-testing

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

FAQPage Schema
How do I structure a pytest suite with fixtures and mocking for a Python API?

Structure a pytest suite by defining fixtures for auth setup, mocking external network calls for isolation, and applying parametrization to validate multiple API inputs efficiently.

What is the best way to apply TDD with pytest in Python?

The best way to apply TDD is following the red, green, refactor cycle to write tests before implementation, using pytest patterns to build features with reliable coverage and maintainable test organization.

How does parametrization work for Python testing workflows?

Parametrization in pytest allows a single test function to execute across multiple input datasets, reducing code duplication while ensuring broader behavioral coverage within your test organization.

Can I use pytest markers for test selection in async Python testing?

Yes, you can use pytest markers for test selection to categorize and isolate async tests, enabling targeted test runs and dependency isolation within your application testing workflow.

How do I enforce coverage targets and isolate dependencies in Python tests?

Enforce coverage targets by defining clear goals for unit and integration tests, and isolate dependencies by replacing external services and filesystem access with controlled test doubles like mocks.