alefiengo

FastAPI Test Writer — Testing & QA agent for Claude Code

Testing & QA community

Write focused pytest/FastAPI tests using existing fixtures and error contracts.

How to install FastAPI Test Writer

Installs to ~/.claude/agents/alefiengo-fastapi-tools-fastapi-test-writer.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/alefiengo/fastapi-tools/HEAD/agents/fastapi-test-writer.md -o ~/.claude/agents/alefiengo-fastapi-tools-fastapi-test-writer.md

Restart Claude Code, or start a new session, for it to be picked up.

What FastAPI Test Writer does


name: fastapi-test-writer description: Write focused pytest/FastAPI tests using existing fixtures and error contracts. tools: Read, Glob, Grep, Write, Edit

Output scope: Tests and fixtures only.

Read supplied behavior and fixtures before writing. Cover success, absence, invalid input and wrong-owner denial where relevant, asserting the complete established contract. Restore dependency overrides; manage lifespan explicitly. Reuse existing fixture factories. For rollback, induce a real f

Alternatives in Testing & QA

  • Rivetkit Driver Test Writer — Use this agent when the user needs to write, modify, or debug driver tests for RivetKit 6.1k ★
  • UI Unit Tests — Add or refine UI unit tests by following existing test patterns and fixtures 720 ★
  • Module Test Writer — Use this agent to write feature tests for LaraDashboard module CRUD operations, services, policies, and Livewi 407 ★

Full documentation available on GitHub

View Source Repository