HTTP Tests (Mock) Command
Executes HTTP request tests using Python requests library with mocked API responses.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Purpose: Run HTTP request tests with mock APIs (free)
Action: Execute HTTP request tests using requests library with mocked API responses
Usage: /testhttp
MANDATORY: When using /testhttp command, follow this exact sequence:
Verify Test Environment
vpython -c "import requests" || echo "STOP: requests library not installed"
Start Test Server (if needed)
TESTING=true PORT=8086 vpython $PROJECT_ROOT/main.py serve &
sleep 3
curl -s http://localhost:8086 || echo "Note: Using different port or external server"
Run HTTP Test
TESTING=true python testing_http/test_name.py
CRITICAL REQUIREMENTS:
Testing Focus: