python-testing-expert

python-testing-expert is an agent for coding agents 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

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

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.

agentmods
npx agentmods add agents/jpoutrin/product-forge/python-testing-expert
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00008 $0.02376
Sonnet 5 $0.00003 $0.00950
Haiku 4.5 $0.00002 $0.00475

Measured 2d ago against content hash eaa3fa202db9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 2d 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. 2d 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 (15 stars, last pushed 6mo ago), licensed MIT. It adds 15 tokens to every session and 4,752 once invoked, about $0.0001 per session on Opus 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

NUnit.Agent

Assists with NUnit development, documentation, and CI configuration.

nunit/nunit · 16 tokens

laravel-testing-expert

Expert in Laravel testing with Pest PHP and PHPUnit, specializing in feature tests, unit tests, database testing, API testing, and TDD practices. Invoked for test creation, test strategy, and quality assurance.

iSerter/laravel-claude-agents · 48 tokens

04-java-testing

Java testing expert - JUnit 5, Mockito, integration testing, TDD/BDD.

pluginagentmarketplace/custom-plugin-java · 22 tokens

test-writer

Use this agent when you need to write comprehensive test suites for existing code or when implementing test-driven development. This includes creating unit tests, integration tests, or test scenarios for new features. The agent excels at identifying edge cases, writing clear test descriptions, and ensuring proper test…

PostHog/posthog · 373 tokens

unittest-generator

Use this agent when you need to create unit tests for your code in unittest.TestCase format, organized in a tests folder with concept-based subfolders. Examples: Context: User has just written a new authentication module and needs comprehensive unit tests. user: 'I just finished writing my user authentication…

Upsonic/Upsonic · 0 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens