Skip to content

Commit

Permalink
skip coverage in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Dec 28, 2023
1 parent 2c61634 commit 57cb0b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipsevents/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)


if TESTING or env('LOCAL'): # use local cache for tests
# use local cache for tests
if TESTING or env('LOCAL'): # pragma: no cover
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
Expand Down Expand Up @@ -224,7 +224,7 @@

MEDIA_URL = '/media/'
MEDIA_ROOT = root('media')
if env("CONSOLE_EMAIL"):
if env("CONSOLE_EMAIL"): # pragma: no cover
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
else:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Expand Down

0 comments on commit 57cb0b7

Please sign in to comment.