fix failing 'test_email_url_value' test

See https://github.com/jazzband/django-configurations/issues/332
This commit is contained in:
Finn-Thorben Sell 2022-03-24 11:14:15 +01:00
parent 12ffda4760
commit 42ab54fc4d
No known key found for this signature in database
GPG key ID: A78A03C25A3A3825

View file

@ -425,6 +425,7 @@ class ValueTests(TestCase):
'EMAIL_HOST_PASSWORD': 'password',
'EMAIL_HOST_USER': 'user@domain.com',
'EMAIL_PORT': 587,
'EMAIL_TIMEOUT': None,
'EMAIL_USE_SSL': False,
'EMAIL_USE_TLS': True})
with env(EMAIL_URL='console://'):
@ -435,6 +436,7 @@ class ValueTests(TestCase):
'EMAIL_HOST_PASSWORD': None,
'EMAIL_HOST_USER': None,
'EMAIL_PORT': None,
'EMAIL_TIMEOUT': None,
'EMAIL_USE_SSL': False,
'EMAIL_USE_TLS': False})
with env(EMAIL_URL='smtps://user@domain.com:password@smtp.example.com:wrong'): # noqa: E501