https://github.com/brodriguez8774/django-expanded-test-cases
Extends the existing Django TestCase class with extra functionality.
https://github.com/brodriguez8774/django-expanded-test-cases
django python python3 unittest unittesting-library
Last synced: 8 months ago
JSON representation
Extends the existing Django TestCase class with extra functionality.
- Host: GitHub
- URL: https://github.com/brodriguez8774/django-expanded-test-cases
- Owner: brodriguez8774
- License: mit
- Created: 2022-05-24T00:10:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T15:43:09.000Z (11 months ago)
- Last Synced: 2025-05-07T09:03:34.823Z (8 months ago)
- Topics: django, python, python3, unittest, unittesting-library
- Language: Python
- Homepage:
- Size: 1.23 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Expanded Test Cases
[](https://img.shields.io/pypi/v/django-expanded-test-cases?color=blue)
[](https://img.shields.io/badge/python-%3E%3D3.6-brightgreen)
[](https://img.shields.io/badge/django-%3E%3D2.2-brightgreen)
[](https://github.com/brodriguez8774/django-expanded-test-cases/actions/workflows/test.yaml)
[](https://coveralls.io/github/brodriguez8774/django-expanded-test-cases?branch=main)
[](https://django-expanded-test-cases.readthedocs.io/en/latest/?badge=latest)
[](https://img.shields.io/github/license/brodriguez8774/django-expanded-test-cases)
[](https://pypi.python.org/pypi/django-expanded-test-cases)
## Description
Expands the existing [Django](https://docs.djangoproject.com/en/dev/)
[TestCase class](https://docs.djangoproject.com/en/dev/topics/testing/overview/) with extra functionality.
Different TestCase classes are provided, each providing separate sets of functionality.
For full documentation, see [ReadTheDocs](https://django-expanded-test-cases.readthedocs.io/en/latest/).
For changes in the latest version, see [ReadTheDocs - Version History](https://django-expanded-test-cases.readthedocs.io/en/latest/version_history.html).
## Example ETC Debug Output on UnitTest Error
A main functionality that **ExpandedTestCases** provides is verbose response debug info on UnitTest errors.
Below is an example of such output, when a test fails while checking the `
` tag for a very simple page.

## Installation
Install with
pip install django-expanded-test-cases
For full color output, also install
pip install colorama
## Package Development & Running Project Tests
As standard for Python development, this project has its own testing to ensure it functions as desired.
After installing dependencies, everything required to run tests are provided in one of two files:
* To run tests via standard django `python manage.py test`, execute the `/runtests.py` file.
* To run tests via `pytest`, execute the `/runpytests.py` file.