From 78973f3dcd1a3323ce29aba0baa35f7cc4291906 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 8 Mar 2017 12:20:56 +0000 Subject: [PATCH] Set template debug to true when testing with coverage --- bin/test_with_coverage | 2 +- cabot/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/test_with_coverage b/bin/test_with_coverage index 54bcc9c..aa0b3e7 100644 --- a/bin/test_with_coverage +++ b/bin/test_with_coverage @@ -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*" diff --git a/cabot/settings.py b/cabot/settings.py index b3e2509..4880cd3 100644 --- a/cabot/settings.py +++ b/cabot/settings.py @@ -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)) }, }]