xu-xiang/everything-claude-code-zh/django-tdd
Claude Code and agent skill by xu-xiang/everything-claude-code-zh
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
使用 pytest-django 进行 Django 测试的策略、TDD 方法论、factory_boy、Mock 模拟、测试覆盖率以及测试 Django REST Framework API。
Install
npx vskill@latest install xu-xiang/everything-claude-code-zh/django-tddSKILL.md
使用 TDD 进行 Django 测试
使用 pytest、factory_boy 和 Django REST Framework 对 Django 应用程序进行测试驱动开发(TDD)。
何时激活
- 编写新的 Django 应用程序时
- 实现 Django REST Framework API 时
- 测试 Django 模型(Models)、视图(Views)和序列化器(Serializers)时
- 为 Django 项目搭建测试基础设施时
Django 的 TDD 工作流
红-绿-重构(Red-Green-Refactor)周期
配置
pytest 配置
测试设置(Settings)
conftest.py
Factory Boy
工厂设置
使用工厂
模型(Model)测试
模型测试用例
视图(View)测试
Django 视图测试
DRF API 测试
序列化器(Serializer)测试
API ViewSet 测试
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/django-tdd/SKILL.md
Popularity
- Repository stars
- 1,960
- Repository forks
- 325
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xu-xiang/everything-claude-code-zh/django-tdd)