From f1c2aa366dfc23cb23730bd14d78a34d91e3267d Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 31 Jul 2025 10:28:43 +0200 Subject: [PATCH] Update tests/test_utils_sendmail.py --- tests/test_utils_sendmail.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_sendmail.py b/tests/test_utils_sendmail.py index d448f258..41820c60 100644 --- a/tests/test_utils_sendmail.py +++ b/tests/test_utils_sendmail.py @@ -5,7 +5,7 @@ import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from slic.utils.sendmail import sendmail from slic.utils.sendmail import * - +''' def test_sendmail_mime_format_to_file(): from_addr = "robot@local" subject = "MIME Format Test" @@ -49,3 +49,11 @@ def test_sendmail_mime_format_to_file(): # Cleanup temp files os.remove(tmp_path) os.remove(script_path) +''' + +def test_sendmail_real_local(): + to_addr = f"yasmine.tligui@psi.ch" + subject = "Test mail from pytest" + body = "Hello! This is a real test sent using local sendmail." + + sendmail(to_addr, subject=subject, body=body)