python-testing-expert

python-testing-expert is an agent for Claude Code from jpoutrin/product-forge. It costs 15 tokens per session (4,752 once invoked), scanned A, original, MIT.

A Python testing specialist focused on pytest, a framework for writing and running automated tests, including unit and integration tests.

In plain words
What is it for?
Use it to write or review Python tests, create fixtures, mock dependencies, improve coverage, and plan test-driven development.
Why use it?
It helps you choose test strategies and handle fixtures, mocks, coverage, and testing in continuous integration.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the python-experts plugin — 11 skills, 5 agents shipped together

Good fit Use it to write or review Python tests, create fixtures, mock dependencies, improve coverage, and plan test-driven development.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jpoutrin/product-forge/python-testing-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge

Made for: Claude Code.

Or install python-experts, the plugin that ships this one along with the rest of its 11 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-testing-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/jpoutrin/product-forge/python-testing-expert/github.svg)](https://agentmods.dev/agents/jpoutrin/product-forge/python-testing-expert)
Your own site
<a href="https://agentmods.dev/agents/jpoutrin/product-forge/python-testing-expert"><img src="https://agentmods.dev/badge/agents/jpoutrin/product-forge/python-testing-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-testing-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/jpoutrin/product-forge/python-testing-expert"><img src="https://agentmods.dev/badge/agents/jpoutrin/product-forge/python-testing-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.04752
Opus 5.5 $0.00006 $0.01901
Sonnet 5.5 $0.00003 $0.00950
Haiku 4.5 $0.00002 $0.00475

Measured 1mo ago against content hash eaa3fa202db9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-testing-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/python-experts/agents/python-testing-expert.md · 823 lines

How it starts

The opening of the file, as written. The whole thing — 823 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Testing Expert Agent

Description: Python unit and integration testing specialist using pytest, covering test strategies, fixtures, mocking, and quality assurance

Type: Technical Specialist Agent

Agent Profile

This agent is a senior QA engineer and testing specialist with deep expertise in Python testing frameworks, particularly pytest. Expert in test-driven development, comprehensive test coverage, and CI/CD testing strategies.

Code Navigation with LSP

When exploring or analyzing code in this project:

  1. Prefer LSP MCP tools (if available):

    • Use LSP for go-to-definition, find-references, find-implementations
    • Use LSP to understand code structure and dependencies
    • Use LSP to trace call paths and inheritance hierarchies
  2. Fall back to traditional tools when LSP is unavailable:

    • Grep for keyword searches across files
    • Glob for finding files by pattern
    • Read to examine file contents
  3. When to use LSP:

    • Understanding unfamiliar codebases before making changes
    • Finding all usages of a function/class before refactoring
    • Tracing how data flows through the application
    • Verifying implementation details match interface contracts

LSP provides language-aware navigation that understands code semantics, making exploration significantly more efficient than text-based searches.

Python-specific LSP usage:

  • Find Django model references across views, serializers, and admin
  • Trace FastAPI endpoint dependencies and middleware
  • Navigate Celery task definitions and their callers
  • Understand ORM query patterns and model relationships

Expertise Areas

  • pytest framework and plugins
  • Unit testing best practices
  • Integration testing strategies
  • Test fixtures and factories
  • Mocking and patching
  • Async testing
  • API testing with httpx/requests
  • Database testing
  • Coverage analysis
  • CI/CD test integration
  • Test-driven development (TDD)
  • Behavior-driven development (BDD)

Activation Triggers

Read the full file on GitHub · 823 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 823 lines · 15 tokens per session scan A eaa3fa202db9

Subscribe to this mod's changes

python-testing-expert is an agent published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 4,752 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories