{"enrichment":{"faq":[{"a":"django-tdd is a skill for learning test-driven development in Django applications using pytest and factory_boy. It covers the red-green-refactor workflow, test configuration, fixture setup, and testing Django models, views, and REST Framework APIs with practical examples. The skill emphasizes writing tests first, then implementing code to pass those tests.","q":"What is django-tdd and what testing approach does it teach?"},{"a":"django-tdd teaches pytest and factory_boy setup for Django testing. You'll learn to configure pytest-django, create factories for generating test data, and write unit tests for models and views. The skill covers fixture setup, test organization, and best practices for isolating components during testing.","q":"How do I set up pytest and factory_boy for Django model and view testing?"},{"a":"django-tdd covers testing Django REST Framework APIs with serializers and viewsets. You'll learn to test API endpoints, validate serializer behavior, test viewset actions, and verify authentication and permissions. The skill includes practical examples for testing complete API workflows and client authentication scenarios.","q":"How can I test Django REST Framework API endpoints and serializers?"},{"a":"django-tdd teaches the red-green-refactor cycle: write a failing test (red), implement minimal code to pass it (green), then refactor for quality. This methodology ensures comprehensive test coverage from the start and drives better design decisions. The skill demonstrates this cycle across models, views, and API endpoints.","q":"What does the TDD test driven development django workflow involve?"},{"a":"django-tdd covers mocking external services like payment processors and email systems, plus setting up code coverage measurement. You'll learn to isolate dependencies, verify mock interactions, and configure coverage tools to identify untested code paths in your Django applications.","q":"How do I mock external services and measure code coverage in django-tdd?"},{"a":"Yes, django-tdd includes integration testing for complete Django application workflows. You'll learn to test end-to-end scenarios combining models, views, and APIs, verify data persistence across components, and test real user interactions. This complements unit tests for comprehensive application validation.","q":"Can django-tdd help me write integration tests for complete workflows?"}],"shadow_tags":["unit-testing","test-automation","quality-assurance","continuous-integration","code-coverage","red-green-refactor","api-validation","mock-patching","test-fixtures","integration-testing"],"summary_rewrite":"Learn test-driven development for Django applications using pytest and factory_boy. This skill covers the red-green-refactor workflow, test configuration, fixture setup, and testing Django models, views, and REST Framework APIs with practical examples."},"files":[{"bytes":21245,"path":"skills/django-tdd/SKILL.md","sha256":"b8380028921564c2706437d64e47d52d6b6913c057b8c806e8ef069ae959e90e","url":"https://skillfed.io/files/xu-xiang/everything-claude-code-zh/django-tdd/45bc0d17/SKILL.md"}],"id":"xu-xiang/everything-claude-code-zh/django-tdd","links":{"html":"https://skillfed.io/xu-xiang/everything-claude-code-zh/django-tdd","md":"https://skillfed.io/xu-xiang/everything-claude-code-zh/django-tdd.md","repo":"https://github.com/xu-xiang/everything-claude-code-zh"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":298,"language":"JavaScript","last_updated":"2026-03-05","license":"MIT","name":"django-tdd","publisher":"xu-xiang","stars":1767},"relations":{"similar":[{"id":"affaan-m/ECC/django-tdd"},{"id":"CuriousLearner/devkit/seed-data-generator"},{"id":"hieutrtr/ai1-skills/pytest-patterns"},{"id":"Gentleman-Programming/Gentleman-Skills/django-drf"},{"id":"bobmatnyc/claude-mpm-skills/pytest"},{"id":"bobmatnyc/claude-mpm-skills/django"},{"id":"manutej/luxor-claude-marketplace/pytest-patterns"},{"id":"patricio0312rev/skills/test-data-factory-builder"},{"id":"xu-xiang/everything-claude-code-zh/python-testing"},{"id":"dawiddutoit/custom-claude/pytest-async-testing"}]},"slug":{"owner":"xu-xiang","repo":"everything-claude-code-zh","skill":"django-tdd"},"version":"45bc0d17"}
