From 89a56b70164d365290545c243be0dc551be05ded Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 30 Jul 2025 20:41:39 +0200 Subject: [PATCH] Update tests/test_utils_sendmail.py --- tests/test_utils_sendmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils_sendmail.py b/tests/test_utils_sendmail.py index c21d20f27..cf60edca5 100644 --- a/tests/test_utils_sendmail.py +++ b/tests/test_utils_sendmail.py @@ -25,7 +25,7 @@ def test_sendmail_mime_format_to_file(): try: # Send message sendmail( - to_addr=f"| tee {tmp_path}", + to_addr=f"| cat > {tmp_path}", from_addr=from_addr, subject=subject, body=body @@ -37,7 +37,7 @@ def test_sendmail_mime_format_to_file(): # Expected message msg = MIMEText(body) - msg["To"] = f"| tee {tmp_path}" + msg["To"] = f"| cat > {tmp_path}" msg["From"] = from_addr msg["Subject"] = subject expected = msg.as_string()