pytest-recording
Record and Replay HTTP Tests with pytest
Live API calls make tests slow and unreliable. This skill guides pytest-recording setup, cassette management, secret filtering, and replay debugging.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "pytest-recording" from https://skillstore.io/skills/bossjones-pytest-recording.md and its manifest at https://skillstore.io/api/skills/bossjones-pytest-recording/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "pytest-recording". Create a recording plan for a weather API test.
Expected outcome:
- Mark the test for VCR recording and use a descriptive cassette name.
- Filter the authorization header and any API key query parameter.
- Record once, inspect the cassette, then replay without live network access.
Using "pytest-recording". A replay fails because the query string changed.
Expected outcome:
- Compare the recorded and current query parameters.
- Keep query matching when parameters affect behavior.
- Record a new interaction only after confirming that no secret enters the cassette.
Using "pytest-recording". Prepare cassette filters for an Anthropic integration.
Expected outcome:
Filter x-api-key and authorization headers, inspect query parameters, sanitize cookies, and review recorded bodies before committing the cassette.
Security Audit
SafeAll 41 static findings are false positives caused by Markdown backticks, literal redaction key names, a loopback address, and ordinary troubleshooting prose. No prompt injection, secret access, dynamic command execution, or malicious intent appears in SKILL.md.
Risk Factors
โ๏ธ External commands (38)
๐ Network access (1)
๐ Env variables (1)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/bossjones-pytest-recording/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/bossjones-pytest-recording?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/bossjones-pytest-recording?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/bossjones-pytest-recording/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/bossjones-pytest-recording.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
bossjones. (2026). pytest-recording security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/bossjones-pytest-recording/audits/8BibTeX citation
@techreport{bossjones-bossjones-pytest-recording-2026,
author = {bossjones},
title = {pytest-recording security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/bossjones-pytest-recording/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pytest-recording security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "bossjones"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/bossjones-pytest-recording/audits/8"
identifiers:
- type: other
value: "skillstore:bossjones-pytest-recording:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Add deterministic API tests
Create pytest tests that replay recorded HTTP responses without depending on a live service.
Protect recorded credentials
Configure cassette filters for provider headers, query parameters, cookies, and other sensitive values.
Repair unstable cassette suites
Diagnose missing, stale, or mismatched cassettes and choose an appropriate recording mode.
Try These Prompts
Show me how to add pytest-recording to [test file] for [API call] using the default cassette name and recording mode.
Design vcr_config filters for [provider]. Cover authentication headers, query parameters, cookies, and sensitive response values.
Analyze this pytest-recording mismatch: [error]. Compare the configured match fields with [request details] and recommend the least destructive fix.
Plan a pytest-recording configuration for [project]. Include cassette naming, request matching, redaction, response processing, recording modes, and review safeguards.
Best Practices
- Filter credentials before recording, then review every new or changed cassette for sensitive values.
- Use stable request match fields that represent behavior without depending on irrelevant volatile data.
- Replay existing cassettes in routine tests and use live recording only during intentional maintenance.
Avoid
- Do not commit cassettes before checking headers, queries, cookies, and bodies for secrets.
- Do not rewrite every cassette when one interaction is stale or mismatched.
- Do not weaken request matching until unrelated requests can share the same cassette response.