Skip to content

Commit

Permalink
Fixing some PyFlakes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Murray Christopherson committed Apr 14, 2018
1 parent c605886 commit c63ff4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions quick_email/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ def send_email(host, port, send_from, subject, send_to=None, send_cc=None, send_
html_text=html_text, attachment_list=attachment_list, inline_attachment_dict=inline_attachment_dict)
send_msg(msg, host, port, username=username,
password=password, require_starttls=require_starttls)

__all__ = [
'build_msg',
'Attachment',
'send_msg',
'send_email',
]
7 changes: 1 addition & 6 deletions tests/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_cc(self):
send_cc=u'Example <example@example.com>', plain_text=u'Some Text')
self.assertIsNotNone(msg)

def test_cc(self):
def test_bcc(self):
msg = builder.build_msg(u'Test <test@test.com>', u'The Subject',
send_bcc=u'Example <example@example.com>', plain_text=u'Some Text')
self.assertIsNotNone(msg)
Expand Down Expand Up @@ -71,11 +71,6 @@ def test_html_byte_text(self):
send_to=u'Example <example@example.com>', html_text=b'<b>Some Bold Text</b>')
self.assertIsNotNone(msg)

def test_html_byte_text(self):
msg = builder.build_msg(u'Test <test@test.com>', u'The Subject',
send_to=u'Example <example@example.com>', html_text=b'<b>Some Bold Text</b>')
self.assertIsNotNone(msg)

def test_attachment_list(self):
gif_data = None
with open('tests/test_files/1x1.gif', 'rb') as f:
Expand Down

0 comments on commit c63ff4c

Please sign in to comment.