A Django plugin for pytest.
Project description
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: 4.2, 5.0, 5.1, 5.2 and latest main branch (compatible at the time of each release)
Python: CPython>=3.8 or PyPy 3
pytest: >=7.0
For compatibility with older versions, use previous pytest-django releases.
Licence: BSD
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_django-4.11.1.tar.gz.
File metadata
- Download URL: pytest_django-4.11.1.tar.gz
- Upload date:
- Size: 86.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a949141a1ee103cb0e7a20f1451d355f83f5e4a5d07bdd4dcfdd1fd0ff227991
|
|
| MD5 |
61bb4fc405460ac115ed326e2f45f50b
|
|
| BLAKE2b-256 |
b1fb55d580352db26eb3d59ad50c64321ddfe228d3d8ac107db05387a2fadf3a
|
Provenance
The following attestation bundles were made for pytest_django-4.11.1.tar.gz:
Publisher:
deploy.yml on pytest-dev/pytest-django
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_django-4.11.1.tar.gz -
Subject digest:
a949141a1ee103cb0e7a20f1451d355f83f5e4a5d07bdd4dcfdd1fd0ff227991 - Sigstore transparency entry: 192076117
- Sigstore integration time:
-
Permalink:
pytest-dev/pytest-django@5ada9c1596ee9e0624801d553995d98d2e3ccce8 -
Branch / Tag:
refs/tags/v4.11.1 - Owner: https://github.com/pytest-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@5ada9c1596ee9e0624801d553995d98d2e3ccce8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytest_django-4.11.1-py3-none-any.whl.
File metadata
- Download URL: pytest_django-4.11.1-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b63773f648aa3d8541000c26929c1ea63934be1cfa674c76436966d73fe6a10
|
|
| MD5 |
a1ba7233eaea6b78852caa0eb2ad8aef
|
|
| BLAKE2b-256 |
beacbd0608d229ec808e51a21044f3f2f27b9a37e7a0ebaca7247882e67876af
|
Provenance
The following attestation bundles were made for pytest_django-4.11.1-py3-none-any.whl:
Publisher:
deploy.yml on pytest-dev/pytest-django
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_django-4.11.1-py3-none-any.whl -
Subject digest:
1b63773f648aa3d8541000c26929c1ea63934be1cfa674c76436966d73fe6a10 - Sigstore transparency entry: 192076122
- Sigstore integration time:
-
Permalink:
pytest-dev/pytest-django@5ada9c1596ee9e0624801d553995d98d2e3ccce8 -
Branch / Tag:
refs/tags/v4.11.1 - Owner: https://github.com/pytest-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@5ada9c1596ee9e0624801d553995d98d2e3ccce8 -
Trigger Event:
push
-
Statement type: