Add no cover pragma to settings

This commit is contained in:
Gergely Polonkai 2015-10-21 15:02:59 +02:00
parent b347055bd1
commit 2fb616b17c

View File

@ -84,7 +84,9 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = 'static'
if STATIC_ROOT != 'static':
# The following will be always True on local machines, which makes
# coverage data ugly
if STATIC_ROOT != 'static': # pragma: no cover
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)