From 6f6382bdfa9aac9181b45789e8fa4683111d180c Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 20 Mar 2017 12:26:28 +0100 Subject: [test] patch pinned client in blobs test --- testing/tests/blobs/test_blobs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testing') diff --git a/testing/tests/blobs/test_blobs.py b/testing/tests/blobs/test_blobs.py index b78f6c0f..a36bad1e 100644 --- a/testing/tests/blobs/test_blobs.py +++ b/testing/tests/blobs/test_blobs.py @@ -60,8 +60,9 @@ class BlobTestCase(unittest.TestCase): decrypted = yield decryptor.decrypt() assert decrypted.getvalue() == 'up and up' - manager = _blobs.BlobManager('', '', self.secret, self.secret, 'user') + manager = _blobs.BlobManager( + '', 'http://127.0.0.1/', self.secret, self.secret, 'user') doc_id, rev = self.doc_info.doc_id, self.doc_info.rev fd = BytesIO('up and up') - _blobs.treq.put = _check_result + manager._client.put = _check_result return manager._encrypt_and_upload('blob_id', doc_id, rev, fd) -- cgit v1.2.3