summaryrefslogtreecommitdiff
path: root/service/test/support/integration
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-09-02 12:35:33 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-09-02 12:35:33 +0200
commite5d718f982e0cd3fc85da00d3abdccce1907e488 (patch)
treeebf566a96a2b70c7f234c81065ee48054bf555a3 /service/test/support/integration
parent503c917ede122fc97046e35af8ec30a25adbad32 (diff)
Download attachments from mail store instead of querier
- Issue #435 - Improved error handling of attachment resource
Diffstat (limited to 'service/test/support/integration')
-rw-r--r--service/test/support/integration/app_test_client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py
index fe9eaffd..51fbf483 100644
--- a/service/test/support/integration/app_test_client.py
+++ b/service/test/support/integration/app_test_client.py
@@ -193,9 +193,11 @@ class AppTestClient(object):
res = yield res
defer.returnValue([ResponseMail(m) for m in res['mails']])
+ @defer.inlineCallbacks
def get_attachment(self, ident, encoding):
- res, req = self.get("/attachment/%s" % ident, {'encoding': [encoding]}, as_json=False)
- return res
+ deferred_result, req = self.get("/attachment/%s" % ident, {'encoding': [encoding]}, as_json=False)
+ res = yield deferred_result
+ defer.returnValue((res, req))
def put_mail(self, data):
res, req = self.put('/mails', data)