codingthefuturewithai

Test API — Testing skill for Claude Code

Testing community

Test Python backend API endpoints using pytest.

How to install Test API

Installs to ~/.claude/commands/codingthefuturewithai-conduit-test-api.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/codingthefuturewithai/conduit/HEAD/.claude/commands/test-api.md -o ~/.claude/commands/codingthefuturewithai-conduit-test-api.md

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

What Test API does


description: Test Python backend API endpoints using pytest usage: /project:test-api [ENDPOINT-PATTERN] [TEST-TYPE] example: /project:test-api /api/users all

I'll test the backend API using pytest, focusing on $ARGUMENTS.

Step 1: Analyze API Structure

First, let me understand the API structure:

Find API endpoints

!find . -name "*.py" -type f | xargs grep -l "@app\|@router\|@api" | grep -v __pycache__ | head -20

Check existing tests

!find . -path "*/test*" -name "*.py" | g

Alternatives in Testing

  • Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
  • OpenAgentsControl — AI agent framework for plan-first development workflows with approval-based execution 4.8k ★
  • Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★

Full documentation available on GitHub

View Source Repository