mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #23461 -- Added EMAIL_TIMEOUT setting
This commit is contained in:
parent
0ae79014c0
commit
5472d18e31
6 changed files with 34 additions and 26 deletions
|
|
@ -1033,3 +1033,8 @@ class SMTPBackendTests(BaseEmailBackendTests, SimpleTestCase):
|
|||
self.assertEqual(myemailbackend.timeout, 42)
|
||||
self.assertEqual(myemailbackend.connection.timeout, 42)
|
||||
myemailbackend.close()
|
||||
|
||||
@override_settings(EMAIL_TIMEOUT=10)
|
||||
def test_email_timeout_override_settings(self):
|
||||
backend = smtp.EmailBackend()
|
||||
self.assertEqual(backend.timeout, 10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue