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.

Source Distribution

djet-0.3.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

djet-0.3.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file djet-0.3.0.tar.gz.

File metadata

  • Download URL: djet-0.3.0.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for djet-0.3.0.tar.gz
Algorithm Hash digest
SHA256 44e59b880fccd36a34d9eae1ac150129ad3bf339f953e32a47e1cda3dc412819
MD5 f36f18dda816fd822b5c46e3cabd0a86
BLAKE2b-256 f8d27f95f1bc2c4f5007773c986a64adf7f5bf548b2adcec2a5c58b9fb604c38

See more details on using hashes here.

File details

Details for the file djet-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: djet-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for djet-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94506c7f62f00d706a1c990acea1c3e35e26e6c0bf3d374675f8fd3d7daeaedf
MD5 c300a8c75f209133c6dc676d8d843b60
BLAKE2b-256 a49945b40707de13e14f3798070912a1b2eb6891e0c9f3b445804adc8f3f25e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page