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()