Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions providers/smtp/tests/unit/smtp/hooks/test_smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@

from airflow.models import Connection
from airflow.providers.smtp.hooks.smtp import SmtpHook
from airflow.utils.session import create_session

pytestmark = pytest.mark.db_test


smtplib_string = "airflow.providers.smtp.hooks.smtp.smtplib"

Expand Down Expand Up @@ -317,8 +313,6 @@ def test_send_mime_noauth(self, mock_smtp, create_connection_without_db):
smtp_hook.send_email_smtp(to="to", subject="subject", html_content="content", from_email="from")
mock_smtp.assert_called_once_with(host="smtp_server_address", port=587, timeout=30)
assert not mock_smtp.login.called
with create_session() as session:
session.query(Connection).filter(Connection.id == conn.id).delete()

@patch("smtplib.SMTP_SSL")
@patch("smtplib.SMTP")
Expand Down