A plugin for coverage.py to measure Django template execution
APACHE-2.0 License
Dropped support for Python 3.7 and Django 1.x. Declared support for Python 3.12.
Published by nedbat almost 2 years ago
Dropped support for Python 2.7, Python 3.6, and Django 1.8.
Published by nedbat almost 2 years ago
Declare our support for Python 3.11 and Django 4.1.
Published by nedbat over 2 years ago
First version :)
Published by nedbat over 2 years ago
Explicitly configure settings if need be to get things to work.
Published by nedbat over 2 years ago
The template debug settings are checked properly for people still using TEMPLATE_DEBUG
in newer versions of Django.
Published by nedbat over 2 years ago
Check if template debugging is enabled in the settings, and raise a visible warning if not. This prevents mysterious failures of the plugin, and fixes issue 17.
Potential Django 1.9 support is included, but the patch to Django hasn't been applied yet.
Published by nedbat over 2 years ago
No change in code, but Django 1.9.2 is now supported.
Published by nedbat over 2 years ago
Multiple template engines are allowed. Thanks, Simon Charette.
Published by nedbat over 2 years ago
Django 1.10.5 is now supported.
Checking settings configuration is deferred so that settings.py is included in coverage reporting. Fixes issue 28.
Only the django.template.backends.django.DjangoTemplates
template engine is supported, and it must be configured with ['OPTIONS']['debug'] = True
. Fixes issue 27.
Published by nedbat over 2 years ago
Removes support for Django versions below 1.8. Validates support for Django version 1.11b1
Published by nedbat over 2 years ago
Add support for:
Published by nedbat over 2 years ago
Add support for Django 4.0.
Published by nedbat over 2 years ago
If a non-UTF8 file was found when looking for templates, it would fail when reading during the reporting phase, ending execution. This failure is now raised in a way that can be ignored with a .coveragerc setting of [report] ignore_errors=True
(issue 78).
When using source=.
, an existing coverage HTML report directory would be found and believed to be unmeasured HTML template files. This is now fixed.
Published by nedbat about 3 years ago
Test and claim our support on Python 3.10.
Published by nedbat over 3 years ago
Drop support for Python 3.4 and 3.5.
A setting is available: template_extensions
lets you set the file extensions that will be considered when looking for unused templates (requested in issue 60).
Fix an issue on Windows where file names were being compared case-sensitively, causing templates to be missed (issue 46).
Fix an issue (issue 63) where tag libraries can't be found if imported during test collection. Thanks to Daniel Izquierdo for the fix.
Published by jambonrose almost 5 years ago
Add support for:
Published by jambonrose about 6 years ago
Add support for Django 2.1.