summaryrefslogtreecommitdiff
path: root/service/test/support/integration_helper.py
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-16 11:53:56 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-16 11:53:56 +0200
commiteacd5fd5f7f47791ddc2e5568b8e4622420d8562 (patch)
treef303e7593c8eec8cc626b0df489b7e81128ca6dd /service/test/support/integration_helper.py
parent693957054255b1807ae9c09478a06e191114b7fb (diff)
#96 Mail searches are now paginated, the pages number start at 1 now
Diffstat (limited to 'service/test/support/integration_helper.py')
-rw-r--r--service/test/support/integration_helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/support/integration_helper.py b/service/test/support/integration_helper.py
index 268eb812..f0f3b02a 100644
--- a/service/test/support/integration_helper.py
+++ b/service/test/support/integration_helper.py
@@ -173,8 +173,8 @@ class SoledadTestBase:
app_factory._setup_routes(self.client.application, home_controller, mails_controller, tags_controller,
features_controller)
- def get_mails_by_tag(self, tag):
- response = json.loads(self.client.get("/mails?q=tag:" + tag).data)
+ def get_mails_by_tag(self, tag, page=1, window=100):
+ response = json.loads(self.client.get("/mails?q=tag:%s&w=%s&p=%s" % (tag, window, page)).data)
return [ResponseMail(m) for m in response['mails']]
def post_mail(self, data):