Skip to content

Commit

Permalink
Updated timestamp in unit test. Updated message that this module work…
Browse files Browse the repository at this point in the history
…s in Dec 2020.
  • Loading branch information
asweigart committed Dec 6, 2020
1 parent 842742a commit 768a824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EZGmail
======

A Pythonic interface to the Gmail API that actually works as of November 2020.
A Pythonic interface to the Gmail API that actually works as of December 2020.

The Gmail API quickstart doesn't actually seem to work on Python 3 without some adjustments, and the entire documentation is a bit much for someone who just wants to read and send emails from their Gmail account. EZGmail just works.

Expand Down
3 changes: 2 additions & 1 deletion tests/test_ezgmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def test_readEmail():
#breakpoint()
assert gmailMsg.body == 'This is the body.\r\n'
assert gmailMsg.recipient == TEST_EMAIL_ADDRESS
assert gmailMsg.timestamp == datetime.datetime(2019, 6, 23, 19, 32, 41)
# TODO: The following timestamp is in the central timezone.
assert gmailMsg.timestamp == datetime.datetime(2019, 6, 23, 21, 32, 41)
assert 'attachment.txt' in gmailMsg.attachments
assert 'attachment.jpg' in gmailMsg.attachments

Expand Down

0 comments on commit 768a824

Please sign in to comment.