diff options
author | Fábio Pio <fpio@thoughtworks.com> | 2014-12-17 17:18:54 -0200 |
---|---|---|
committer | Fábio Pio <fpio@thoughtworks.com> | 2014-12-17 17:21:52 -0200 |
commit | 129800847138e802040d4ad53adc06b9776ac1c6 (patch) | |
tree | 0ac419a91e4b9a71c3fabafc82f59d00343e4d4e /service/test/support | |
parent | 8d71694e252aa517a696403327dae594b43744c0 (diff) |
Fix issue #200 search works with base63 bodies
Now the search works with the decoded body too,
instead of only with the raw mail
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/integration/soledad_test_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
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)] }) |