---
id: pytest-django
version: "4.14.0"
license: pytest-django is released under the BSD (3-clause) license ---------------------------------------------------------- Copyright (c) 2015-2018, pytest-django authors (see AUTHORS file) All rights… (full text in the JSON record)
license_treatment: permissive
maintenance: active
---
# pytest-django — A Django plugin for pytest.
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install pytest-django
uv add pytest-django
poetry add pytest-django
## Description
.. image:: https://img.shields.io/pypi/v/pytest-django.svg?style=flat
:alt: PyPI Version
:target: https://pypi.python.org/pypi/pytest-django
.. image:: https://img.shields.io/pypi/pyversions/pytest-django.svg
:alt: Supported Python versions
:target: https://pypi.python.org/pypi/pytest-django
.. image:: https://github.com/pytest-dev/pytest-django/workflows/main/badge.svg
:alt: Build Status
:target: https://github.com/pytest-dev/pytest-django/actions
.. image:: https://img.shields.io/pypi/djversions/pytest-django.svg
:alt: Supported Django versions
:target: https://pypi.org/project/pytest-django/
.. image:: https://img.shields.io/codecov/c/github/pytest-dev/pytest-django.svg?style=flat
:alt: Coverage
:target: https://codecov.io/gh/pytest-dev/pytest-django
Welcome to pytest-django!
=========================
pytest-django allows you to test your Django project/applications with the
`pytest testing tool `_.
* `Quick start / tutorial
`_
* `Changelog `_
* Full documentation:...
## AI interpretation — verify before relying
pytest-django integrates Django with pytest, allowing you to write and run Django tests using pytest's fixtures, plugins, and streamlined syntax instead of Django's built-in test runner.
Verdict: pytest-django is a mature, actively maintained plugin (1543 stars, released 3 days ago) with permissive BSD licensing and low install friction. It bridges Django and pytest cleanly with a single dependency. No known vulnerabilities. Suitable for teams wanting pytest's fixture model and plugin ecosystem for Django testing.
[View on SkillFed](https://skillfed.io/packages/pytest-django) · [View on PyPI](https://pypi.org/project/pytest-django/)