Skip to content

brodriguez8774/django-expanded-test-cases

Repository files navigation

Django Expanded Test Cases

Documentation Status PyPI Python Versions Django Versions GitHub PyPI Downloads per Month

Description

Expands the existing Django TestCase class with extra functionality.

Different TestCase classes are provided, each providing separate sets of functionality.

For full documentation, see ReadTheDocs.

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 <h1> tag for a very simple page.

ETC Error Debug Output Screenshot

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 <project_root>/runtests.py file.
  • To run tests via pytest, execute the <project_root>/runpytests.py file.

About

Extends the existing Django TestCase class with extra functionality.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages