summaryrefslogtreecommitdiff
path: root/tests/blobs
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-06 19:34:32 -0200
committerdrebs <drebs@leap.se>2017-12-13 13:43:47 -0200
commit03b4b4c410252af0a85dd94cb0b3a91eaca9b9a4 (patch)
tree826e000cbf9e6d8bd4808322727368a803c3901d /tests/blobs
parentfc0725b0827b6f5e02f1d155712b106b3c8854c1 (diff)
[refactor] make blobs backend read_blob() agnostic of twisted.web
Diffstat (limited to 'tests/blobs')
-rw-r--r--tests/blobs/test_fs_backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/blobs/test_fs_backend.py b/tests/blobs/test_fs_backend.py
index 5df658ff..58d8690d 100644
--- a/tests/blobs/test_fs_backend.py
+++ b/tests/blobs/test_fs_backend.py
@@ -66,7 +66,8 @@ class FilesystemBackendTestCase(unittest.TestCase):
file_mock.return_value = render_mock
backend = _blobs.FilesystemBlobsBackend(blobs_path=self.tempdir)
request = DummyRequest([''])
- backend.read_blob('user', 'blob_id', request)
+ resource = backend.read_blob('user', 'blob_id')
+ resource.render_GET(request)
backend._get_path.assert_called_once_with('user', 'blob_id', '')
ctype = 'application/octet-stream'