Welcome to pytest-django!
pytest-django allows you to test your Django project/applications with the pytest testing tool.
Full documentation: https://pytest-django.readthedocs.io/en/latest/
Version compatibility:
Django: 2.2, 3.0, 3.1 and latest master branch (compatible at the time of each release)
Python: CPython>=3.5 or PyPy 3
pytest: >=5.4
For compatibility with older versions, use the pytest-django 3.*.* series.
Licence: BSD
Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler
GitHub repository: https://github.com/pytest-dev/pytest-django
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:
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.
Release files for pytest-django 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-django-4.0.0.tar.gz | 72.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_django-4.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size:90.3 kB
Release files / pytest-django-4.0.0.tar.gz
| Download URL | pytest-django-4.0.0.tar.gz |
|---|---|
| Size | 72.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f964ccda1f551e00589ab0679a7c45c36c509a44b5bfb5ad07954e0ae3f4bed
|
|
BLAKE2b-256 checksum How to use checksums |
d980ca2d88c0b4719ca17b4aa121d6019501c570859887d3331368133686f0b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / pytest_django-4.0.0-py2.py3-none-any.whl
| Download URL | pytest_django-4.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0e91003fdd41ac0322c1978682be2ca180bc564203dd53c698f99242bf513614
|
|
BLAKE2b-256 checksum How to use checksums |
8232d4e66e726a24096efcd27693ccf0f633971e85e1abdb6076e3a7b10503e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|