Skip to main content
PyPI Version Supported Python versions Build Status Supported Django versions Coverage

Welcome to pytest-django!

pytest-django allows you to test your Django project/applications with the pytest testing tool.

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:

  • Manage test dependencies with pytest fixtures.

  • 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_django-4.13.0.tar.gz (94.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_django-4.13.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest_django-4.13.0.tar.gz.

File metadata

  • Download URL: pytest_django-4.13.0.tar.gz
  • Upload date:
  • Size: 94.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pytest_django-4.13.0.tar.gz
Algorithm Hash digest
SHA256 2316e3f63e3bc799deb4212830e39b2ef1dcc3b2d8688060f1d0217db6a56ebe
MD5 f7e1dabf22df158027c00fea3ccd15c6
BLAKE2b-256 1cae5ed1ab2d12090bd794392d798c14d092f0470f6446eaa6d2af4183f4aa2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_django-4.13.0.tar.gz:

Publisher: deploy.yml on pytest-dev/pytest-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytest_django-4.13.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_django-4.13.0-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pytest_django-4.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09374c12d947ca0f99e33726bcb720a6d0124f67058e1130586372bd109493e3
MD5 9e36d07bf8db80dc84d6b800beb0502b
BLAKE2b-256 278852db7a840fdbd74934f8df11b7450c9919ac00f61c02e88827f3d58180f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_django-4.13.0-py3-none-any.whl:

Publisher: deploy.yml on pytest-dev/pytest-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page