From 2fb616b17c4380dc8ffdd5a9de976f515d2cfc11 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 21 Oct 2015 15:02:59 +0200 Subject: [PATCH] Add no cover pragma to settings --- duckbook/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/duckbook/settings.py b/duckbook/settings.py index ace4077..6c9504c 100644 --- a/duckbook/settings.py +++ b/duckbook/settings.py @@ -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'), )