Skip to main content

Set of helpers for easy testing of Django apps.

Project description

https://img.shields.io/pypi/v/djet.svg https://img.shields.io/travis/sunscrapers/djet.svg https://img.shields.io/codecov/c/github/sunscrapers/djet.svg

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)
  • handy helpers for testing file-related code (InMemoryStorageMixin and 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: 2.7 (Only Django 1.11), 3.4+
  • Django: 1.11, 2.0+
  • (optional) Django REST Framework: 3.7+

Installation

Simply install using pip:

$ pip install djet

Documentation

Full documentation is available to study at read the docs and in docs directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djet, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size djet-0.2.2-py3-none-any.whl (8.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size djet-0.2.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page