mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[flake8] Resolve E1?? errors (#3805)
This commit is contained in:
committed by
Maxime Beauchemin
parent
35810ce2bf
commit
690de862e8
@@ -89,8 +89,8 @@ class EmailSmtpTest(unittest.TestCase):
|
||||
'from', 'to', MIMEMultipart(), app.config, dryrun=False)
|
||||
assert not mock_smtp.called
|
||||
mock_smtp_ssl.assert_called_with(
|
||||
app.config.get('SMTP_HOST'),
|
||||
app.config.get('SMTP_PORT'),
|
||||
app.config.get('SMTP_HOST'),
|
||||
app.config.get('SMTP_PORT'),
|
||||
)
|
||||
|
||||
@mock.patch('smtplib.SMTP_SSL')
|
||||
@@ -104,8 +104,8 @@ class EmailSmtpTest(unittest.TestCase):
|
||||
'from', 'to', MIMEMultipart(), app.config, dryrun=False)
|
||||
assert not mock_smtp_ssl.called
|
||||
mock_smtp.assert_called_with(
|
||||
app.config.get('SMTP_HOST'),
|
||||
app.config.get('SMTP_PORT'),
|
||||
app.config.get('SMTP_HOST'),
|
||||
app.config.get('SMTP_PORT'),
|
||||
)
|
||||
assert not mock_smtp.login.called
|
||||
|
||||
|
||||
Reference in New Issue
Block a user