will never be true in testing

This commit is contained in:
Matthias 2022-02-13 19:55:50 +01:00
parent dbb4c3f407
commit 6bc53c1308
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -60,21 +60,21 @@ def is_email_configured():
configured = False
# Display warning unless in test mode
if not settings.TESTING:
if not settings.TESTING: # pragma: no cover
logger.debug("EMAIL_HOST is not configured")
if not settings.EMAIL_HOST_USER:
configured = False
# Display warning unless in test mode
if not settings.TESTING:
if not settings.TESTING: # pragma: no cover
logger.debug("EMAIL_HOST_USER is not configured")
if not settings.EMAIL_HOST_PASSWORD:
configured = False
# Display warning unless in test mode
if not settings.TESTING:
if not settings.TESTING: # pragma: no cover
logger.debug("EMAIL_HOST_PASSWORD is not configured")
return configured