A Django plugin for pytest.
.. 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/codecov/c/github/pytest-dev/pytest-django.svg?style=flat :alt: Coverage :target: https://codecov.io/gh/pytest-dev/pytest-django
pytest-django allows you to test your Django project/applications with the
pytest testing tool_.
Quick start / tutorial_
Changelog_
Contribution docs_
Version compatibility:
For compatibility with older versions, use the pytest-django 3.. series.
All contributors_
Issue tracker_
Python Package Index (PyPI)_
::
pip install pytest-django
manage.py testcommand?
Running your test suite with pytest-django allows you to tap into the features that are already present in pytest. Here are some advantages:
Manage test dependencies with pytest fixtures._
pytest plugins_.
See the
pytest documentation_ for more information on pytest itself.