mirror of
https://github.com/status-im/cabot.git
synced 2025-02-23 18:08:06 +00:00
Set template debug to true when testing with coverage
This commit is contained in:
parent
5d20784e3c
commit
78973f3dcd
@ -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*"
|
||||
|
@ -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))
|
||||
},
|
||||
}]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user