djet
Django Extended Tests is a set of helpers for easy testing of Django apps.
Main features:
- easy unit testing of Django views (
ViewTestCase) - useful assertions provides as mixin classes:
- response status codes (
StatusCodeAssertionsMixin) - emails (
EmailAssertionsMixin) - messages (
MessagesAssertionsMixin) - model instances (
InstanceAssertionsMixin)
- response status codes (
- handy helpers for testing file-related code (
InMemoryStorageMixinand others) - smooth integration with Django REST Framework authentication
mechanism (
APIViewTestCase)
Full documentation available on read the docs.
Developed by SUNSCRAPERS with passion & patience.
Requirements
- Python: 3.6+
- Django: 2.2, 3.1+
- (optional) Django REST Framework: 3.11+
Installation
Simply install using pip:
$ pip install djet
Documentation
Full documentation is available to study at read the
docs and in docs directory.