{"repo":"revsys/django-test-plus","free":true,"listed":false,"github":"https://github.com/revsys/django-test-plus","clone":"git clone https://github.com/revsys/django-test-plus.git","description":"Useful additions to Django's default TestCase","language":"Python","stars":632,"topics":["django","testing"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"django-test-plus Useful additions to Django's default TestCase from REVSYS Rationale Let's face it, writing tests isn't always fun. Part of the reason for that is all of the boilerplate you end up writing. django-test-plus is an attempt to cut down on some of that when writing Django tests. We guarantee it will increase the time before you get carpal tunnel by at least 3 weeks! If you would like to get started testing your Django apps or improve how your team is testing we offer TestStart to help your team dramatically improve your productivity. Support - Python 3.10, 3.11, 3.12, 3.13, 3.14, and 3.15, including the free-threaded builds (3.14t and 3.15t). Python 3.15 is still in beta, so it is tested but not yet promised. - Django 4.2 LTS, 5.1, 5.2 LTS, 6.0, and 6.1. Installation Usage Have your tests inherit from test plus.test.TestCase rather than the normal django.test.TestCase : That is enough to get rolling. Here is a taste of what you get — reversing URLs, checking status codes, and inspecting context without the boilerplate: You are encouraged to create your own sub-class for your project so you can add project-specific helper methods: There is a pytest fixture too — ask for tp and you get the same helpers: Documentation Full documentation, including the complete method reference, is available at django-test-plus.readthedocs.org. - Usage — including pytest fixtures and testing DRF views - Methods — requests, status code assertions, response and context helpers, make use","default_branch":null,"files":null,"tree":[],"storefront":"/r/revsys","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/revsys/django-test-plus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}