From 23503fcdf83fe1437bcd164c79d75cf56c08bade Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Tue, 14 Oct 2014 14:29:36 +0200 Subject: Issue #12 - Bulk mark as unread --- service/test/support/integration_helper.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service/test/support/integration_helper.py') 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) -- cgit v1.2.3