--- id: django-test-plus version: "2.6.2" license: unclear license_treatment: permissive maintenance: active --- # django-test-plus — django-test-plus provides useful additions to Django's default TestCase License: permissive · Maintenance: active · Downloads: 135.8K/mo ## What it is and what it does django-test-plus is a TestCase subclass for Django that bundles common testing patterns into helper methods, cutting down on repetitive test code. Instead of manually reversing URLs, checking response status codes, and inspecting context dictionaries, you call methods like `get()`, `response_200()`, and `assertInContext()`. It also provides utilities for user creation, login context managers, query count assertions, and a pytest fixture that exposes the same helpers for pytest-style tests. The package is designed for teams writing Django tests who want to move faster. It works with Django 4.2 LTS, 5.1, 5.2 LTS, 6.0, and 6.1, and Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15, including free-threaded builds. No external runtime dependencies means installation is straightforward and the package integrates directly into your existing Django test suite. Use it for: - Speed up view testing by chaining GET/POST calls with status assertions in one line - Test authentication flows with login context managers and assertLoginRequired helpers - Create test users quickly instead of manually instantiating and saving User objects - Assert query counts to catch N+1 problems early with query count assertion methods - Use pytest fixtures to access the same helpers in pytest-style tests alongside Django's test framework - Build project-specific test base classes by subclassing and adding custom helpers ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a TestCase subclass for Django with helper methods to reduce boilerplate when writing tests for views, models, and authentication, including shortcuts for URL reversal, status code assertions, and user creation. Yes. django-test-plus is actively maintained, has no dependencies, and is widely used. It directly reduces test boilerplate for any Django project using the standard test framework or pytest, with no compatibility risk and permissive licensing. Install it if your team writes Django tests. ## Install pip install django-test-plus uv add django-test-plus poetry add django-test-plus ## Installing django-test-plus Before you install: Low friction install with no runtime dependencies. Actively maintained with a recent release and steady repository activity; supports current Python versions and modern Django versions. License in practice: Licensed under BSD (permissive), so you can use, modify, and distribute the package freely in commercial and open-source projects without restriction. Quickstart: pip install django-test-plus from test_plus.test import TestCase class MyViewTests(TestCase): def test_view(self): self.get('my-url-name') self.response_200() self.assertInContext('some-key') Verify before relying: - Exact monthly download volume and ranking position to confirm popularity tier claims - Whether the package is compatible with Django 5.0 (classifiers list 5.0 but description does not) ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 135.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django test helpers, reduce django test boilerplate, django testcase shortcuts, django view testing utilities, django authentication test helpers, django query count assertions, pytest fixtures for django, django-testing, test-utilities, pytest-compatible [View on SkillFed](https://skillfed.io/packages/django-test-plus) · [View on PyPI](https://pypi.org/project/django-test-plus/)