diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-18 16:56:29 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-18 16:56:45 -0300 |
commit | d92a63a3c7c794d7496f169dfa207b67306c204a (patch) | |
tree | f1425b2593689846c4f9f8793aeca576d5f7d418 | |
parent | 9900ee2ec6b52d8887f00c4d39d0ff30a2714421 (diff) |
The date field was added on the code but not on the tests
-rw-r--r-- | service/test/adapter/test_helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/test/adapter/test_helper.py b/service/test/adapter/test_helper.py index 94158f1c..7b935e7f 100644 --- a/service/test/adapter/test_helper.py +++ b/service/test/adapter/test_helper.py @@ -1,4 +1,5 @@ from mock import Mock +from datetime import datetime LEAP_FLAGS = ['\\Seen', '\\Answered', @@ -8,7 +9,7 @@ LEAP_FLAGS = ['\\Seen', '\\Recent', 'List'] -def leap_mail(uid=0, extra_flags=[], headers={}): +def leap_mail(uid=0, extra_flags=[], headers={'date': str(datetime.now())}): flags = LEAP_FLAGS + extra_flags return Mock(getUID=Mock(return_value=uid), getFlags=Mock(return_value=flags), |