- Notifications
You must be signed in to change notification settings - Fork351
A Django plugin for pytest.
License
NotificationsYou must be signed in to change notification settings
pytest-dev/pytest-django
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
pytest-django allows you to test your Django project/applications with thepytest testing tool.
Full documentation:https://pytest-django.readthedocs.io/en/latest/
Version compatibility:
- Django: 4.2, 5.1, 5.2 and latest main branch (compatible at the timeof each release)
- Python: CPython>=3.9 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
pip install pytest-django
Running your test suite with pytest-django allows you to tap into the featuresthat 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 otherpytest plugins.
- Works with both worlds: Existing unittest-style TestCase's still work without any modifications.
See thepytest documentation for more information on pytest itself.
About
A Django plugin for pytest.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published