Welcome to pytest-django!
pytest-django allows you to test your Django project/applications with the pytest testing tool.
Full documentation: https://pytest-django.readthedocs.io/en/latest/
Version compatibility:
Django: 5.2, 6.0 and latest main branch (compatible at the time of each release)
Python: CPython>=3.10 or PyPy 3
pytest: >=7.0
For compatibility with older versions, use previous pytest-django releases.
Licence: BSD
GitHub repository: https://github.com/pytest-dev/pytest-django
Install pytest-django
pip install pytest-django
Why would I use this instead of Django’s manage.py test command?
Running your test suite with pytest-django allows you to tap into the features that are already present in pytest. Here are some advantages:
Less boilerplate tests: no need to import unittest, create a subclass with methods. Write tests as regular functions.
Database re-use: no need to re-create the test database for every test run.
Run tests in multiple processes for increased speed (with the pytest-xdist plugin).
Make use of other pytest plugins.
Works with both worlds: Existing unittest-style TestCase’s still work without any modifications.
See the pytest documentation for more information on pytest itself.
Metadata
Release files for pytest-django 4.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_django-4.14.0.tar.gz | 94.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_django-4.14.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 121.8 kB
Release files / pytest_django-4.14.0.tar.gz
| Download URL | pytest_django-4.14.0.tar.gz |
|---|---|
| Size | 94.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26787dd3f422cfbab8f55b80a776e2edea7a11092cb74e960bef1312515708ef
|
|
BLAKE2b-256 checksum How to use checksums |
44f63851312120c2bf2f19cafff931e75059aad1ba670703cd751e2fde9bc942
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / pytest_django-4.14.0-py3-none-any.whl
| Download URL | pytest_django-4.14.0-py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c533b08d89cc675efcd5398eea270b34547e35f9a3608e2c9748dd88428ea187
|
|
BLAKE2b-256 checksum How to use checksums |
9c03850bffad2b581c440ca51c039d74504d5a422c94bda0bdb8a8ba5068d48b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency log