From 129800847138e802040d4ad53adc06b9776ac1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pio?= Date: Wed, 17 Dec 2014 17:18:54 -0200 Subject: Fix issue #200 search works with base63 bodies Now the search works with the decoded body too, instead of only with the raw mail --- service/test/support/integration/soledad_test_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'service/test/support') diff --git a/service/test/support/integration/soledad_test_base.py b/service/test/support/integration/soledad_test_base.py index 40181664..a000349e 100644 --- a/service/test/support/integration/soledad_test_base.py +++ b/service/test/support/integration/soledad_test_base.py @@ -35,8 +35,12 @@ class SoledadTestBase(unittest.TestCase): self.client = AppTestClient() def get_mails_by_tag(self, tag, page=1, window=100): + tags = 'tag:%s' % tag + return self.search(tags, page, window) + + def search(self, query, page=1, window=100): res, req = self.client.get("/mails", { - 'q': ['tag:%s' % tag], + 'q': [query], 'w': [str(window)], 'p': [str(page)] }) -- cgit v1.2.3