diff options
-rw-r--r-- | service/pixelated/adapter/status.py | 4 | ||||
-rw-r--r-- | service/test/adapter/test_status.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/adapter/status.py b/service/pixelated/adapter/status.py index 0917b748..cd11a46f 100644 --- a/service/pixelated/adapter/status.py +++ b/service/pixelated/adapter/status.py @@ -21,10 +21,12 @@ class Status: SEEN = u'\\Seen' ANSWERED = u'\\Answered' DELETED = u'\\Deleted' + RECENT = u'\\Recent' LEAP_FLAGS_STATUSES = { PixelatedStatus.SEEN: 'read', - PixelatedStatus.ANSWERED: 'replied' + PixelatedStatus.ANSWERED: 'replied', + PixelatedStatus.RECENT: 'recent' } @classmethod diff --git a/service/test/adapter/test_status.py b/service/test/adapter/test_status.py index 18648719..7f644eca 100644 --- a/service/test/adapter/test_status.py +++ b/service/test/adapter/test_status.py @@ -31,4 +31,4 @@ class TestStatus(unittest.TestCase): def test_bulk_conversion(self): statuses = Status.from_flags(['\\Answered', '\\Seen', '\\Recent', 'tag_a_custom']) - self.assertEquals(set([Status('read'), Status('replied')]), statuses) + self.assertEquals(set([Status('read'), Status('replied'), Status('recent')]), statuses) |