Skip to content

blueyed/pytest-django

This branch is 1 commit ahead of, 330 commits behind pytest-dev/pytest-django:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb6fa96 · Sep 11, 2019
Sep 4, 2019
Sep 11, 2019
Feb 26, 2019
Sep 11, 2019
Sep 17, 2018
Aug 26, 2019
Sep 11, 2019
Aug 15, 2014
Dec 26, 2017
Oct 30, 2018
May 30, 2018
Jan 21, 2019
Jun 28, 2018
Oct 30, 2018
Feb 3, 2019
Sep 11, 2019

Repository files navigation

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.

About

A Django plugin for py.test.

Resources

License

Stars

Watchers

Forks

Packages

No packages published