This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user