testing-skill

Parse VCR cassette YAML files into readable request and response summaries.

19.2k|2.5k|Updated Jun 21, 2024
One-click install
npx skills add https://github.com/pydantic/pydantic-ai --skill testing-skill-pydantic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-skill
Source: https://github.com/pydantic/pydantic-ai/tree/main/.claude/skills/testing-skill
Command: npx skills add https://github.com/pydantic/pydantic-ai --skill testing-skill-pydantic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of recording, replaying, and inspecting VCR cassettes so HTTP-driven tests are easier to debug and trust.

Core Features & Use Cases

  • Cassette Recording Workflow: Record or re-record HTTP interactions during pytest runs and verify playback afterward.
  • Readable Body Inspection: Parse YAML cassettes into human-friendly request and response bodies, including truncated large payloads.
  • Focused Debugging: Inspect specific interactions when a test fails, when a request body looks wrong, or when snapshot output needs review.

Quick Start

Use the testing-skill to record or replay a pytest test with VCR cassettes and inspect any interaction bodies that need debugging.

Frequently Asked Questions about testing-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug VCR cassettes when my pytest HTTP tests fail?

VCR cassettes store HTTP interactions in YAML files, which can be parsed into human-readable request and response summaries to inspect headers, bodies, and status codes during pytest test debugging.

Can I inspect large base64 payloads in VCR cassette YAML files?

Yes, large base64 payloads in VCR cassettes are handled through base64 truncation and body extraction, presenting large request and response payloads clearly without overwhelming the debugging output.

Does this VCR cassette debugging workflow require pyyaml to parse YAML?

Yes, pyyaml is required to parse VCR cassette YAML files, extract request and response bodies, and truncate large base64 payloads for readable HTTP test debugging summaries.

What is the best way to verify pytest VCR cassette replay output?

The best way to verify pytest VCR cassette replay is to parse the recorded YAML into human-friendly request and response summaries, enabling targeted inspection of individual HTTP interactions during debugging.

How do I extract request and response bodies from VCR cassettes for snapshot review?

You extract request and response bodies from VCR cassettes by parsing the YAML structure into readable summaries, truncating large payloads to clearly present HTTP interactions for snapshot output review.