python-testing

Write pytest test suites with TDD workflows and coverage reporting.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/luongldptit/move-ticket --skill python-testing-luongldptit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-testing
Source: https://github.com/luongldptit/move-ticket/tree/main/.agent/skills/python-testing
Command: npx skills add https://github.com/luongldptit/move-ticket --skill python-testing-luongldptit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the inconsistency and unreliability of ad-hoc Python testing, ensuring your code is robust, well-documented, and meets quality standards through proven testing methodologies.

Core Features & Use Cases

  • TDD Workflow Support: Step-by-step guidance for the red-green-refactor cycle to write tests before implementation.
  • pytest Best Practices: Pre-built patterns for fixtures, parametrization, mocking, and async test execution.
  • Test Infrastructure Setup: Templates for test directory organization, pytest configuration, and coverage reporting. Use case: For example, when building a Python REST API, use this Skill to create a full test suite with mocked external services, parameterized endpoint tests, and 80%+ coverage requirements to catch bugs before deployment.

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 structure pytest fixtures and parametrization for a Python test suite?

Structure pytest test suites using pre-built patterns for fixtures, parametrization, and mocking to ensure consistent test organization and reliable execution. This approach standardizes test infrastructure setup and configuration for high-coverage Python projects.

What is the best way to apply TDD methodology when writing Python tests?

Apply TDD methodology using step-by-step red-green-refactor workflow guidance to write failing pytest tests before implementing minimal code. This ensures your Python code is robust, well-documented, and meets strict quality standards.

Can I use pytest to test async Python functions and mock external dependencies?

pytest supports async test execution and mocked external dependencies for Python development tasks. You can validate API endpoints and database operations while isolating external services to achieve reliable, high-coverage test results.

How do I configure pytest to enforce 80% code coverage requirements?

Configure pytest with built-in test infrastructure templates for directory organization and coverage reporting to enforce 80%+ code coverage. This setup catches bugs before deployment and satisfies strict quality requirements.

Does this testing workflow support validating REST API endpoints and database operations in Python?

This testing workflow supports validating REST API endpoints and database operations in Python. It provides standardized workflows using pytest to create full test suites with mocked external services and parameterized endpoint tests.

Why does my ad-hoc Python testing approach lead to inconsistent code reliability?

Ad-hoc Python testing leads to inconsistency because it lacks standardized TDD workflows and pytest best practices. Applying structured test-driven development eliminates unreliability and ensures your code meets quality standards through proven methodologies.