From a2585a438b57c16d6950df6f1607e869dafab7f7 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 31 Jul 2025 11:31:50 +0200 Subject: [PATCH] Update tests/test_utils_sendmail.py --- tests/test_utils_sendmail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_sendmail.py b/tests/test_utils_sendmail.py index dd8c67b30..0256cf581 100644 --- a/tests/test_utils_sendmail.py +++ b/tests/test_utils_sendmail.py @@ -5,6 +5,8 @@ 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 * +import shutil + ''' def test_sendmail_mime_format_to_file(): from_addr = "robot@local" @@ -55,7 +57,7 @@ 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." - print(which sendmail) + print(shutil.which("sendmail")) sendmail(to_addr, subject=subject, body=body) asset True == True