Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunscrapers/djet
Django Extended Tests is set of helpers for easy testing of Django apps.
https://github.com/sunscrapers/djet
django python testing
Last synced: 2 days ago
JSON representation
Django Extended Tests is set of helpers for easy testing of Django apps.
- Host: GitHub
- URL: https://github.com/sunscrapers/djet
- Owner: sunscrapers
- License: mit
- Created: 2013-07-19T09:52:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-31T22:13:22.000Z (about 3 years ago)
- Last Synced: 2024-05-03T06:35:52.603Z (8 months ago)
- Topics: django, python, testing
- Language: Python
- Homepage:
- Size: 176 KB
- Stars: 78
- Watchers: 16
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
====
djet
====.. image:: https://img.shields.io/pypi/v/djet.svg
:target: https://pypi.org/project/djet.. image:: https://img.shields.io/travis/sunscrapers/djet.svg
:target: https://travis-ci.org/sunscrapers/djet.. image:: https://img.shields.io/codecov/c/github/sunscrapers/djet.svg
:target: https://codecov.io/gh/sunscrapers/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``)* 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**: 3.6+
* **Django**: 2.2, 3.1+
* (optional) **Django REST Framework**: 3.11+Installation
============Simply install using ``pip``:
.. code-block:: bash
$ pip install djet
Documentation
=============Full documentation is available to study at
`read the docs `_
and in ``docs`` directory.