Turn on template debugging in test settings

This resolves the following error:

``` bash
coverage run ./manage.py test --settings=config.settings.test
Coverage.py warning: Disabling plugin 'django_coverage_plugin.DjangoTemplatePlugin' due to an exception:
Traceback (most recent call last):
  File "/Users/audreyr/.virtualenvs/everycheese/lib/python3.5/site-packages/coverage/control.py", line 517, in _should_trace_internal
    file_tracer = plugin.file_tracer(canonical)
  File "/Users/audreyr/.virtualenvs/everycheese/lib/python3.5/site-packages/django_coverage_plugin/plugin.py", line 154, in file_tracer
    check_debug()
  File "/Users/audreyr/.virtualenvs/everycheese/lib/python3.5/site-packages/django_coverage_plugin/plugin.py", line 69, in check_debug
    "Template debugging must be enabled in settings."
django_coverage_plugin.plugin.DjangoTemplatePluginException: Template debugging must be enabled in settings.
```
This commit is contained in:
Audrey Roy Greenfeld 2016-09-16 11:05:57 -07:00 committed by GitHub
parent fc8e318193
commit da42b3854d

View File

@ -12,7 +12,8 @@ from .common import * # noqa
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Turn debug off so tests run faster # Turn debug off so tests run faster
DEBUG = False DEBUG = False
TEMPLATES[0]['OPTIONS']['debug'] = False # But template debugging must be enabled for django_coverage_plugin
TEMPLATES[0]['OPTIONS']['debug'] = True
# SECRET CONFIGURATION # SECRET CONFIGURATION
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------