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.14.0.tar.gz (94.7 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.14.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_django-4.14.0.tar.gz
  • Upload date:
  • Size: 94.7 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.14.0.tar.gz
Algorithm Hash digest
SHA256 26787dd3f422cfbab8f55b80a776e2edea7a11092cb74e960bef1312515708ef
MD5 6f281c8a9e692e8e101d066cddd65dcf
BLAKE2b-256 44f63851312120c2bf2f19cafff931e75059aad1ba670703cd751e2fde9bc942

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_django-4.14.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.14.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_django-4.14.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.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c533b08d89cc675efcd5398eea270b34547e35f9a3608e2c9748dd88428ea187
MD5 a7e787f1c806bf75f2e065c56ffc6ded
BLAKE2b-256 9c03850bffad2b581c440ca51c039d74504d5a422c94bda0bdb8a8ba5068d48b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_django-4.14.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.

Release history Release notifications | RSS feed

This release

4.14.0 This release

2 files

4.13.0

2 files

4.12.0

2 files

4.11.1

2 files

4.11.0

2 files

4.10.0

2 files

4.9.0

2 files

4.8.0

2 files

4.7.0

2 files

4.6.0

2 files

4.5.2

2 files

4.5.1

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.10.0

2 files

3.9.0

2 files

3.8.0

2 files

3.7.0

2 files

3.6.0

2 files

3.5.1

2 files

3.5.0

2 files

3.4.8

2 files

3.4.7

2 files

3.4.6

2 files

3.4.5

2 files

3.4.4

2 files

3.4.3

2 files

3.4.2

2 files

3.4.1

2 files

3.3.3

2 files

3.3.2

2 files

3.3.0

2 files

3.2.1

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.9.1

2 files

2.9.0

2 files

2.8.0

2 files

2.7.0

2 files

2.6.2

2 files

2.6.1

2 files

2.6

2 files

2.5.1

2 files

2.5

2 files

2.4

2 files

2.3.1

1 file

2.3.0

1 file

2.2.1

1 file

2.2.0

1 file

2.1.1

1 file

2.1.0

1 file

2.0.1

1 file

2.0.0

1 file

1.4

1 file

1.3.2

1 file

1.3.1

1 file

1.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2

1 file

1.1.1

1 file

1.1

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

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