summaryrefslogtreecommitdiff
path: root/testing/tests/blobs/test_blob_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/blobs/test_blob_manager.py')
-rw-r--r--testing/tests/blobs/test_blob_manager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/tests/blobs/test_blob_manager.py b/testing/tests/blobs/test_blob_manager.py
index 4d04e09d..85f08d1e 100644
--- a/testing/tests/blobs/test_blob_manager.py
+++ b/testing/tests/blobs/test_blob_manager.py
@@ -125,8 +125,7 @@ class BlobManagerTestCase(unittest.TestCase):
doc1 = BlobDoc(BytesIO(content), 'existing_id')
yield self.manager.put(doc1, len(content))
doc2 = BlobDoc(BytesIO(content), 'existing_id')
- # reset mock, so we can check that upload wasnt called
- self.manager._encrypt_and_upload = Mock(return_value=None)
+ self.manager._encrypt_and_upload.reset_mock()
with pytest.raises(BlobAlreadyExistsError):
yield self.manager.put(doc2, len(content))
self.assertFalse(self.manager._encrypt_and_upload.called)