diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-10 13:37:37 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:34 +0200 |
commit | b8410e1e199a581155566c6c3b9d40dbda32b082 (patch) | |
tree | a9dbd66030b1a070192b264630a0512d6cac175b /service/test/support | |
parent | 4ae8a4bb0dedae1ab5a6b66eea3e1b9598a72e9f (diff) |
Fixed test_search integration test.
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/integration/app_test_client.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index 31ffcd77..2c1343ab 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -159,7 +159,11 @@ class AppTestClient(object): input_mail = builder.build_input_mail() mail = yield self.mail_store.add_mail(mailbox, input_mail.raw) if tags: - mail.tags.add(tags) + mail.tags |= set(tags) + if flags: + for flag in flags: + mail.flags.add(flag) + if tags or flags: yield self.mail_store.update_mail(mail) mails.append(mail) |