Set template debug to true when testing with coverage

This commit is contained in:
Frank Hamand 2017-03-08 12:20:56 +00:00
parent 5d20784e3c
commit 78973f3dcd
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -x
output_dir='test-results'
mkdir -p $output_dir
coverage run --source="./cabot/" manage.py test $@
TEMPLATE_DEBUG=True coverage run --source="./cabot/" manage.py test $@
status=$?
coverage report --omit="cabot/cabotapp/tests*"

View File

@ -111,6 +111,7 @@ TEMPLATES = [{
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': force_bool(os.environ.get('TEMPLATE_DEBUG', False))
},
}]