Skip to main content

A Django plugin for py.test.

Project description

Build Status

Welcome to pytest-django!

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

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.

Project details


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-2.8.0.tar.gz (15.4 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-2.8.0-py2.py3-none-any.whl (17.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-django-2.8.0.tar.gz.

File metadata

  • Download URL: pytest-django-2.8.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-django-2.8.0.tar.gz
Algorithm Hash digest
SHA256 d145ac9dc7a557a719ab79770be0941004e1e038e137c34591919d9df2a790b1
MD5 ad08caca77086f4f2692d1284c07eff3
BLAKE2b-256 6ff40b99464ea018dd657476f409a63d21cc6067d53efe1c4dd20b307e68473e

See more details on using hashes here.

File details

Details for the file pytest_django-2.8.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_django-2.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d76f934e77fa073f48cc521945a49900a859e610fa029dd880d1d8b997b77c23
MD5 1c039fab5142c61eb3877d9e1e19efd6
BLAKE2b-256 d44cddba431c05a1912e53f49c0db8c22134b14adf38099cd18398f382ff259d

See more details on using hashes here.

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