skill-testing-pytest

Community

Master pytest: fixtures, mocks, and async tests.

Authorryan-nguyen-01
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill shows best practices for testing Python projects with pytest, covering fixtures, parameterization, mocking with unittest.mock, and async testing to improve test reliability and organization.

Core Features & Use Cases

  • Structured testing with fixtures, parameterization, and mocking to create robust unit and integration tests.
  • Async testing support for async code paths and asynchronous I/O.
  • HTTP integration test patterns with FastAPI test client examples and reusable test utilities.
  • Test organization and utilities including factories, fixtures, and clean environments to ensure isolation.

Quick Start

Create a simple pytest suite that uses a fixture to provide a test resource and a couple of test cases to validate core behavior.

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: skill-testing-pytest
Download link: https://github.com/ryan-nguyen-01/agent-platform/archive/main.zip#skill-testing-pytest

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.