From 66624e9df3d43f076394f8119829da6316d98ff7 Mon Sep 17 00:00:00 2001 From: Soren Spicknall Date: Thu, 28 Jul 2022 12:12:04 -0500 Subject: [PATCH] HOTFIX Sendmail tests linting --- test/test_sendmail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_sendmail.py b/test/test_sendmail.py index 1d84beaf3c..5440f573d0 100644 --- a/test/test_sendmail.py +++ b/test/test_sendmail.py @@ -70,7 +70,7 @@ def test_creates_multipart_message(self, dummy_sendmail): def test_can_handle_html(self, dummy_sendmail): message = dummy_sendmail._create_message_attachments("from", "to", "subject", "text", [], - message_html="html") + message_html="html") assert len(message.get_payload()) == 2 assert message.get_payload()[0].get_payload() == "text" assert message.get_payload()[0].get_content_type() == "text/plain" @@ -91,7 +91,7 @@ def test_properly_detects_file_types(self, tmp_path, dummy_sendmail, filename, e filename = tmp_path / filename filename.write_bytes(b"Parsons") message = dummy_sendmail._create_message_attachments("from", "to", "subject", "text", - [filename]) + [filename]) assert len(message.get_payload()) == 2 # text body plus attachment assert isinstance(message.get_payload()[1], expected_type) @@ -101,7 +101,7 @@ def test_works_with_buffers(self, dummy_sendmail, buffer): if buffer is io.BytesIO: value = b"Parsons" message = dummy_sendmail._create_message_attachments("from", "to", "subject", "text", - [buffer(value)]) + [buffer(value)]) assert len(message.get_payload()) == 2 # text body plus attachment assert isinstance(message.get_payload()[1], MIMEApplication)