django-tester

django-tester is an agent for Claude Code from smicolon/ai-kit. It costs 23 tokens per session (1,230 once invoked), scanned A, original, MIT.

A testing agent for Django, a Python web framework. It writes tests with pytest and Factory Boy, a library for creating test data.

In plain words
What is it for?
It is used to create comprehensive Django tests and target at least 90% code coverage.
Why use it?
It helps developers build broader automated test coverage for Django code without writing every test manually.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It is used to create comprehensive Django tests and target at least 90% code coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/smicolon/ai-kit/django-tester
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/smicolon/ai-kit

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 django-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/smicolon/ai-kit/django-tester/github.svg)](https://agentmods.dev/agents/smicolon/ai-kit/django-tester)
Your own site
<a href="https://agentmods.dev/agents/smicolon/ai-kit/django-tester"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/django-tester/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 django-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/smicolon/ai-kit/django-tester"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/django-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 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,230 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.00023 $0.01230
Opus 5.5 $0.00009 $0.00492
Sonnet 5.5 $0.00005 $0.00246
Haiku 4.5 $0.00002 $0.00123

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

Security

Grade A, and why

django-tester 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.

packs/django/agents/django-tester.md · 231 lines

How it starts

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

Django Test Writer Command

You are a testing expert writing comprehensive tests for Django applications.

Current Task

Write comprehensive tests for the specified feature or code.

Testing Stack

  • pytest + pytest-django
  • factory_boy for fixtures
  • faker for test data
  • Target: 90%+ coverage

Test Structure

app/tests/
├── __init__.py
├── conftest.py              # Shared fixtures
├── factories.py             # Factory Boy factories
├── test_models.py          # Model tests
├── test_services.py        # Service layer tests
└── test_views.py           # API endpoint tests

Test Patterns

1. Model Tests

import pytest
import users.models as _users_models

@pytest.mark.django_db
class TestUserModel:
    """Tests for User model."""

    def test_create_user(self):
        """Test user creation with required fields."""
        user = _users_models.User.objects.create_user(
            email="[email protected]",
            password="testpass123"
        )
        assert user.email == "[email protected]"
        assert user.check_password("testpass123")
        assert user.is_deleted is False

2. Service Tests

import pytest
import users.services as _users_services
import users.tests.factories as _users_factories

@pytest.mark.django_db
class TestUserService:
    """Tests for UserService."""

    def test_create_user_success(self):
        """Test successful user creation."""
        user = _users_services.UserService.create_user(
            email="[email protected]",
            password="password123"
        )
        assert user.email == "[email protected]"

    def test_create_user_duplicate_email(self):
        """Test creating user with duplicate email raises error."""
        _users_factories.UserFactory(email="[email protected]")

        with pytest.raises(ValueError):
            _users_services.UserService.create_user(
                email="[email protected]",
                password="password123"
            )

Read the full file on GitHub · 231 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 · 231 lines · 23 tokens per session scan A b88de8c37afc

Subscribe to this mod's changes

django-tester is an agent published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 1,230 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-08-31.

Related

Other agents, from other repositories

cos-compliance

Use this agent before shipping, merging, or deploying changes. The Compliance Gate validates that all quality gates are met: tests pass, documentation is updated, breaking changes are communicated, and the change is ready for production. Context: User wants to merge a feature branch user: "I think this PR is ready to…

winstonkoh87/Athena-Public · 180 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

PySpark Expert Agent

Diagnose PySpark performance bottlenecks, distributed execution pitfalls, and suggest Spark-native rewrites and safer distributed patterns (incl. mapInPandas guidance).

archubbuck/workspace-architect · 37 tokens

python-test-engineer

Use proactively for generating Python tests with pytest, unittest, and comprehensive strategies. Expert in async testing, mocking, and property-based testing.

ProjAnvil/MindForge · 32 tokens

aggregate-tests-implementator

Implements pytest test functions for > classes from the Tests table in .domain/test-plan.md. Requires @aggregate-fixtures-writer to have run first. Invoke with: @aggregate-tests-implementator.

voro6yov/spec-driven-development · 0 tokens

python-test-engineer

Write behavior-driven suites and drive TDD workflows in Python. TRIGGER WHEN: writing tests, improving test coverage, fixing broken tests, setting up pytest configurations, or practicing red-green-refactor workflows. DO NOT TRIGGER WHEN: building new features from scratch or designing system architecture (use…

acaprino/daodan · 66 tokens