In function def test_connection(self) -> tuple[bool, str]::
|
status = smtp_client.noop() |
|
if status == 250: |
|
return True, "Connection successfully tested" |
If I'm not mistaken, noop returns a tuple with (status_code, message) like this:
This is more or less documented in https://docs.python.org/3/library/smtplib.html
The test fails because it's only considering an int as a return value.
In function
def test_connection(self) -> tuple[bool, str]::airflow/providers/smtp/src/airflow/providers/smtp/hooks/smtp.py
Lines 303 to 305 in f68cb3e
If I'm not mistaken,
noopreturns a tuple with (status_code, message) like this:This is more or less documented in https://docs.python.org/3/library/smtplib.html
The test fails because it's only considering an
intas a return value.