pytest-dev/pytest-django


A Django plugin for pytest.

https://pytest-django.readthedocs.io/

License: Other

Language: Python

Keywords: django, pytest, pytest-plugin, python, python3


PyPI Version Supported Python versions Build Status 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.

Project Statistics

Sourcerank 15
Repository Size 1.31 MB
Stars 658
Forks 238
Watchers 35
Open issues 139
Dependencies 11
Contributors 93
Tags 32
Created
Last updated
Last pushed

Top Contributors See all

Andreas Pelme Daniel Hahler Floris Bruynooghe Ben Firshman Rafal Stozek Peter Bittner Dmitry Dygalo Adam Johnson Ruben Bakker Donald Stufft Mathieu Agopian Peter Lauri Renan Ivo Michael Ralf Schmitt Benjamin Hedrich Julen Ruiz Aizpuru jjmurre Tony Narlock David Cramer

Packages Referencing this Repo

pytest-django
A Django plugin for pytest.
Latest release 3.7.0 - Updated - 658 stars

Recent Tags See all

v3.7.0 November 09, 2019
v3.6.0 October 17, 2019
v3.5.1 June 29, 2019
v3.5.0 May 30, 2019
3.4.8 February 26, 2019
3.4.7 February 03, 2019
3.4.6 February 01, 2019
3.4.5 January 07, 2019
3.4.5 January 07, 2019
3.4.4 November 13, 2018
3.4.3 September 16, 2018
3.4.2 August 20, 2018
3.4.1 August 16, 2018
3.4.0 August 16, 2018
3.3.3 July 26, 2018

Interesting Forks See all

pediapress/pytest_django
A Django plugin for py.test.
Python - BSD-3-Clause - Last pushed - 1 stars
pelme/pytest-django
A Django plugin for pytest.
Python - BSD-3-Clause - Last pushed - 1 stars
joeyespo/pytest-django
A Django plugin for py.test.
Python - BSD-3-Clause - Last pushed - 1 stars
javrasya/pytest-django
A Django plugin for py.test.
Python - BSD-3-Clause - Updated - 1 stars - 1 forks
dcramer/pytest_django
A Django plugin for py.test.
Python - BSD-3-Clause - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-11-09 07:31:39 UTC

Login to resync this repository