CtrlK
BlogDocsLog inGet started
Tessl Logo

django-tdd

Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。

Install with Tessl CLI

npx tessl i github:affaan-m/everything-claude-code --skill django-tdd
What are skills?

62

Does it follow best practices?

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

26%

Library Catalog Test Suite

Factory Boy test data setup

Criteria
Without context
With context

DjangoModelFactory base

100%

100%

Sequence for unique fields

100%

100%

PostGenerationMethodCall for password

0%

100%

factory.Faker for string fields

100%

100%

FuzzyDecimal or FuzzyInteger for numerics

0%

100%

SubFactory for ForeignKey

100%

100%

LazyAttribute for derived fields

100%

100%

post_generation for M2M

100%

100%

Uses factories in tests

100%

100%

create_batch usage

0%

100%

Boundary case testing

100%

100%

Test independence

100%

100%

Without context: $0.3917 · 1m 34s · 23 turns · 29 in / 5,946 out tokens

With context: $0.6152 · 1m 31s · 27 turns · 188 in / 6,550 out tokens

100%

22%

Django Project Test Infrastructure Setup

pytest and test settings configuration

Criteria
Without context
With context

DJANGO_SETTINGS_MODULE in pytest.ini

100%

100%

testpaths configuration

0%

100%

python_files/classes/functions patterns

100%

100%

--reuse-db flag

100%

100%

--nomigrations flag

0%

100%

Coverage flags

0%

100%

SQLite in-memory database

100%

100%

DisableMigrations class

100%

100%

MD5PasswordHasher

100%

100%

Celery eager execution

100%

100%

--strict-markers flag

100%

100%

markers declaration

100%

100%

Test settings inherits from base

100%

100%

Without context: $0.1391 · 52s · 11 turns · 14 in / 2,623 out tokens

With context: $0.5080 · 1m 22s · 23 turns · 1,829 in / 4,511 out tokens

87%

11%

Order Management API Test Suite

DRF API testing with mocking and conftest

Criteria
Without context
With context

api_client fixture

100%

100%

authenticated_api_client fixture

87%

62%

force_authenticate usage

100%

100%

timezone fixture

0%

0%

@patch for external service

100%

100%

Mock return value configured

100%

100%

locmem.EmailBackend for email test

0%

100%

mail.outbox assertion

0%

100%

Unauthorized access test

100%

100%

HTTP status code assertions

100%

100%

Uses factories not manual create

100%

62%

Test isolation

100%

100%

Permission boundary test

100%

100%

Without context: $0.4451 · 1m 35s · 24 turns · 31 in / 6,295 out tokens

With context: $0.5991 · 1m 44s · 24 turns · 281 in / 6,771 out tokens

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.