summaryrefslogtreecommitdiff
path: root/service/test/support
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2014-10-14 14:29:36 +0200
committerLisa Junger <ljunger@thoughtworks.com>2014-10-14 14:33:45 +0200
commit23503fcdf83fe1437bcd164c79d75cf56c08bade (patch)
tree8b01995d7ba8b23d876139f5780b00931fdbde9e /service/test/support
parent9446c8df4627b8f5955def0fd86c9bf1924255fe (diff)
Issue #12 - Bulk mark as unread
Diffstat (limited to 'service/test/support')
-rw-r--r--service/test/support/integration_helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/test/support/integration_helper.py b/service/test/support/integration_helper.py
index c2f84157..8f42e335 100644
--- a/service/test/support/integration_helper.py
+++ b/service/test/support/integration_helper.py
@@ -186,6 +186,9 @@ class SoledadTestBase:
def mark_as_unread(self, mail_ident):
self.app.post('/mail/' + mail_ident + '/unread', content_type="application/json")
+ def mark_many_as_unread(self, idents):
+ self.app.post('/mails/unread', data={'idents': json.dumps(idents)})
+
def add_mail_to_inbox(self, input_mail):
mail = self.pixelated_mailboxes.inbox().add(input_mail)
self.search_engine.index_mail(mail)