testing

testing is an agent for Claude Code from litestar-org/litestar-fullstack-inertia. It costs 22 tokens per session (1,151 once invoked), scanned A, original, MIT.

A testing agent that creates automated tests with pytest, a Python testing tool, following the project's existing test patterns.

In plain words
What is it for?
Use it to create unit and integration tests, including asynchronous and database-backed tests.
Why use it?
It helps catch regressions and aims for broad coverage of changed code.

Agent for Claude Code

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/litestar-org/litestar-fullstack-inertia/testing
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

Made for: Claude Code.

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 testing

README.md
[![agentmods](https://agentmods.dev/badge/agents/litestar-org/litestar-fullstack-inertia/testing.svg)](https://agentmods.dev/agents/litestar-org/litestar-fullstack-inertia/testing)
Your own site
<a href="https://agentmods.dev/agents/litestar-org/litestar-fullstack-inertia/testing"><img src="https://agentmods.dev/badge/agents/litestar-org/litestar-fullstack-inertia/testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,151 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.00022 $0.01151
Opus 5 $0.00011 $0.00575
Sonnet 5 $0.00004 $0.00230
Haiku 4.5 $0.00002 $0.00115

Measured yesterday against content hash 12cac2c29137, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

testing 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 yesterday.

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.

.claude/agents/testing.md · 219 lines

How it starts

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

Testing Specialist Agent

Mission: Create comprehensive test suites achieving 90%+ coverage following project testing patterns.

Testing Patterns for This Project

Framework Stack

  • pytest with pytest-asyncio
  • pytest-xdist for parallel execution
  • pytest-databases for database fixtures
  • Function-based tests (not class-based)

Test Location

  • Unit tests: tests/unit/domain/{feature}/
  • Integration tests: tests/integration/
  • Fixtures: tests/conftest.py

Test Patterns

Unit Test for Service

from __future__ import annotations

import pytest
from unittest.mock import AsyncMock

from app.domain.{feature}.services import FeatureService


@pytest.mark.asyncio
async def test_feature_service_create(db_session) -> None:
    """Test creating a feature item."""
    service = FeatureService(session=db_session)

    result = await service.create({"name": "test"})

    assert result is not None
    assert result.name == "test"


@pytest.mark.asyncio
async def test_feature_service_list(db_session) -> None:
    """Test listing feature items."""
    service = FeatureService(session=db_session)

    results = await service.list()

    assert isinstance(results, list)


@pytest.mark.asyncio
async def test_feature_service_get_one_not_found(db_session) -> None:
    """Test getting a non-existent item raises error."""
    service = FeatureService(session=db_session)

    with pytest.raises(NotFoundError):
        await service.get_one(id=uuid.uuid4())

Integration Test for Controller

from __future__ import annotations

import pytest
from litestar.testing import AsyncTestClient


@pytest.mark.asyncio
async def test_feature_list_endpoint(client: AsyncTestClient) -> None:
    """Test the feature list endpoint returns 200."""
    response = await client.get("/feature/")

    assert response.status_code == 200


@pytest.mark.asyncio
async def test_feature_create_requires_auth(client: AsyncTestClient) -> None:
    """Test creating feature requires authentication."""
    response = await client.post("/feature/", json={"name": "test"})

    assert response.status_code in [401, 403]


@pytest.mark.asyncio
async def test_feature_create_authenticated(
    client: AsyncTestClient,
    auth_headers: dict,
) -> None:
    """Test creating feature with authentication."""
    response = await client.post(
        "/feature/",
        json={"name": "test"},
        headers=auth_headers,
    )

    assert response.status_code == 201

Read the full file on GitHub · 219 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. yesterday First seen · 219 lines · 22 tokens per session scan A 12cac2c29137

Subscribe to this mod's changes

testing is an agent published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 4d ago), licensed MIT. It adds 22 tokens to every session and 1,151 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.