mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 04:54:02 +03:00
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:
parent
fc8e318193
commit
da42b3854d
|
@ -12,7 +12,8 @@ from .common import * # noqa
|
|||
# ------------------------------------------------------------------------------
|
||||
# Turn debug off so tests run faster
|
||||
DEBUG = False
|
||||
TEMPLATES[0]['OPTIONS']['debug'] = False
|
||||
# But template debugging must be enabled for django_coverage_plugin
|
||||
TEMPLATES[0]['OPTIONS']['debug'] = True
|
||||
|
||||
# SECRET CONFIGURATION
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user