Introduction¶
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)
Requirements¶
All of provided versions are validated via testing pipeline to ensure that they are supported:
- Python: 2.7, 3.4+
- Django: 1.10+
- Django REST Framework: 3.7+ (optional)