Add configurable timeout option to notify/smtp (#6609)
* Add configurable timeout option to notify/smtp * Updated smtp test to include timeout param * fixed 80 column style issue
This commit is contained in:
1 parent
5529d77c62
commit
f4d8095e54
2 files changed
+10
-5
No files matched your search
@@ -21,8 +21,8 @@ class TestNotifySmtp(unittest.TestCase):
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.mailer = MockSMTP('localhost', 25, 'test@test.com', 1, 'testuser',
|
||||
'testpass', 'testrecip@test.com', 0)
|
||||
self.mailer = MockSMTP('localhost', 25, 5, 'test@test.com', 1,
|
||||
'testuser', 'testpass', 'testrecip@test.com', 0)
|
||||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
""""Stop down everything that was started."""
|
||||
|
||||
Reference in new issue
Block a user