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 ★
  • Spy — by spylang - Enforces strict coding conventions with comprehensive testing guidelines, multiple code compilati 678 ★
  • Test Repl — Run a REPL test scenario against the claude-in-mobile REPL plugin (python/node/bash/...) 356 ★

Full documentation available on GitHub

View Source Repository