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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

anatolygusev_djet-0.2.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file anatolygusev_djet-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: anatolygusev_djet-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.1 requests/2.18.4 setuptools/46.3.0 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.7.5

File hashes

Hashes for anatolygusev_djet-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3e942df4393138509428a6dadb68335d664c1a652d386bace6e05a60f9a997b
MD5 d69566f524153d5b9e0e568676b9c5dd
BLAKE2b-256 67c59b974d3cbed028bc5b70a2ae84134ed071286fc5cd2b9f11f1aac2ad85e8

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