fastapi-tdd

Community

FastAPI TDD with pytest & httpx

Authoraleonsa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the process of writing robust tests for FastAPI applications, ensuring code quality and reliability through Test-Driven Development (TDD).

Core Features & Use Cases

  • TDD Workflow: Guides you through the Red-Green-Refactor cycle specifically for FastAPI.
  • Async Testing: Integrates seamlessly with pytest-asyncio for testing asynchronous code.
  • Database & API Testing: Provides fixtures for async SQLAlchemy sessions and httpx clients for comprehensive integration testing.
  • Data Generation: Leverages polyfactory for creating realistic test data.
  • Mocking: Demonstrates effective strategies for mocking external services.
  • Use Case: When developing a new API endpoint in FastAPI, use this Skill to first write a failing test, then implement the endpoint to pass, and finally refactor your code while maintaining test coverage.

Quick Start

Activate this skill to set up a new FastAPI project with TDD using pytest and httpx.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: fastapi-tdd
Download link: https://github.com/aleonsa/claude-config/archive/main.zip#fastapi-tdd

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.