Skip to content

adrysn/pytest-django

This branch is 10 commits ahead of, 349 commits behind pytest-dev/pytest-django:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d64b6bc · Feb 20, 2019
Feb 20, 2019
Feb 20, 2019
Jan 22, 2019
Feb 20, 2019
Sep 17, 2018
May 29, 2018
Feb 3, 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
Feb 3, 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 pytest.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.6%
  • Makefile 0.4%